Lines Matching +full:fn +full:- +full:keymap

1 // SPDX-License-Identifier: GPL-2.0+
6 * (C) Copyright 2011-2012
13 * (C) Copyright 2004-2008
20 * Richard Woodruff <r-woodruff2@ti.com>
33 #include <asm/mach-types.h>
47 "Nokia RX-51",
70 OMAP_TAG_WLAN_CX3110X_CONFIG(0x25, 0xff, 87, 42, -1),
84 OMAP_TAG_VERSION_STR_CONFIG("product", "RX-51"),
85 OMAP_TAG_VERSION_STR_CONFIG("hw-build", "2101"),
87 OMAP_TAG_VERSION_STR_CONFIG("boot-mode", "normal"),
113 if (strcmp(component, "hw-build") == 0) in init_omap_tags()
117 else if (strcmp(component, "boot-mode") == 0) in init_omap_tags()
131 while (t->hdr.tag) { in reuse_omap_atags()
132 switch (t->hdr.tag) { in reuse_omap_atags()
135 strcpy(boot_reason_ptr, t->u.boot_reason.reason_str); in reuse_omap_atags()
138 component = t->u.version.component; in reuse_omap_atags()
139 version = t->u.version.version; in reuse_omap_atags()
140 if (strcmp(component, "hw-build") == 0) { in reuse_omap_atags()
146 } else if (strcmp(component, "boot-mode") == 0) { in reuse_omap_atags()
165 struct tag *t = (struct tag *)gd->bd->bi_boot_params; in reuse_atags()
168 if (t->hdr.tag != ATAG_CORE) in reuse_atags()
175 while (t->hdr.tag != ATAG_NONE) { in reuse_atags()
176 switch (t->hdr.tag) { in reuse_atags()
179 sprintf(hw_build_ptr, "%x", t->u.revision.rev); in reuse_atags()
182 reuse_omap_atags((struct tag_omap *)&t->u); in reuse_atags()
200 gd->bd->bi_boot_params = OMAP34XX_SDRC_CS0 + 0x100; in board_init()
229 params = (struct tag *)gd->bd->bi_boot_params; in setup_board_tags()
231 params->u.core.flags = 0x0; in setup_board_tags()
232 params->u.core.pagesize = 0x1000; in setup_board_tags()
233 params->u.core.rootdev = 0x0; in setup_board_tags()
250 t = (struct tag_omap *)&params->u; in setup_board_tags()
263 /* set uart tag to 0 - disable serial console */ in setup_board_tags()
265 t->u.uart.enabled_uarts = 0; in setup_board_tags()
270 memset(t->u.boot_reason.reason_str, 0, 12); in setup_board_tags()
271 strcpy(t->u.boot_reason.reason_str, in setup_board_tags()
278 strcmp(omap[i].u.version.component, "boot-mode") == 0) { in setup_board_tags()
279 memset(t->u.version.version, 0, 12); in setup_board_tags()
280 strcpy(t->u.version.version, setup_boot_mode_atag); in setup_board_tags()
288 params->hdr.tag = ATAG_BOARD; in setup_board_tags()
289 params->hdr.size = total_size >> 2; in setup_board_tags()
330 * copy the parameters to an un-cached area to avoid coherency in omap3_emu_romcode_call()
358 * set_bits - bits to set in ACR
359 * clr_bits - bits to clear in ACR
404 /* set VAUX3, VSIM and VMMC1 state to active - enable eMMC memory */ in misc_init_r()
427 * Cortex-A8(r1p0..r1p2) errata 430973 workaround in misc_init_r()
461 /* do not reset watchdog too often - max every 4s */ in hw_watchdog_reset()
490 static const char keymap[] = { variable
500 /* fn */
502 '2', '#', '-', '_', '(', ')', '&', '!',
553 /* check if some cursor key without meta fn key was pressed */ in rx51_kp_fill()
571 if (mods & 2) { /* fn meta key was pressed */ in rx51_kp_fill()
572 k = keymap[k+64]; in rx51_kp_fill()
574 k = keymap[k]; in rx51_kp_fill()
577 k -= 'a' - 1; in rx51_kp_fill()
581 k += 'A' - 'a'; in rx51_kp_fill()
645 return (KEYBUF_SIZE + keybuf_tail - keybuf_head)%KEYBUF_SIZE; in rx51_kp_tstc()
666 omap_mmc_init(0, 0, 0, -1, -1); in board_mmc_init()
667 omap_mmc_init(1, 0, 0, -1, -1); in board_mmc_init()