u-boot/board/trab
wdenk 400558b561 Prepare for SoC rework of ARM code:
- rename CONFIG_BOOTBINFUNC into  CONFIG_INIT_CRITICAL
- rename memsetup into lowlevel_init (function name and source files)
2005-04-02 23:52:25 +00:00
..
auto_update.c * Add support for ext2 filesystems and image timestamps to TQM5200 board 2005-02-24 22:44:16 +00:00
cmd_trab.c * Add support for ext2 filesystems and image timestamps to TQM5200 board 2005-02-24 22:44:16 +00:00
config.mk * Patch by Gleb Natapov, 19 Sep 2003: 2003-12-06 19:49:23 +00:00
flash.c Code cleanup for GCC-3.3.x compilers 2004-10-17 21:12:06 +00:00
lowlevel_init.S Prepare for SoC rework of ARM code: 2005-04-02 23:52:25 +00:00
Makefile Prepare for SoC rework of ARM code: 2005-04-02 23:52:25 +00:00
memory.c Code cleanup for GCC-3.3.x compilers 2004-10-17 21:12:06 +00:00
Pt1000_temp_data.h * Patch by Martin Krause, 11 Sep 2003: 2003-09-11 23:06:34 +00:00
README.kbd Initial revision 2002-11-03 00:24:07 +00:00
rs485.c * Patch by Martin Krause, 09 Oct 2003: 2003-10-09 13:16:55 +00:00
rs485.h Move TRAB burn-in tests to TRAB board directory 2003-09-12 15:35:15 +00:00
trab_fkt.c Code cleanup for GCC-3.3.x compilers 2004-10-17 21:12:06 +00:00
trab.c Patch by George G. Davis, 24 Aug 2004: 2004-10-10 18:41:04 +00:00
tsc2000.c * Add support for ext2 filesystems and image timestamps to TQM5200 board 2005-02-24 22:44:16 +00:00
tsc2000.h * Patches by Xianghua Xiao, 15 Oct 2003: 2003-10-15 23:53:47 +00:00
u-boot.lds Patch by Anders Larsen, 09 Jan 2004: 2004-02-08 19:38:38 +00:00
vfd.c Patch by Hinko Kocevar, 21 Aug 2004: 2004-10-09 23:28:40 +00:00

The TRAB keyboard implementation is similar to that for LWMON and
R360MPI boards. The only difference concerns key naming. There are 4
keys on TRAB: 1, 2, 3, 4.

1) The "kbd" command provides information about the current state of
   the keys. For example,

	TRAB # kbd
	Keys: 1 0 1 0

   means that keys 1 and 3 are pressed. The keyboard status is also
   stored in the "keybd" environment variable. In this example we get

	keybd=1010

2) The "preboot" variable is set according to current environment
   settings and keys pressed. This is an example:

	TRAB # setenv magic_keys XY
	TRAB # setenv key_magicX 12
	TRAB # setenv key_cmdX echo ## Keys 1 + 2 pressed ##\;echo
	TRAB # setenv key_magicY 13
	TRAB # setenv key_cmdY echo ## Keys 1 + 3 pressed ##\;echo

   Here "magic_keys=XY" means that the "key_magicX" and "key_magicY"
   variables will be checked for a match. Each variable "key_magic*"
   defines a set of keys. In the our example, if keys 1 and 3 are
   pressed during reset, then "key_magicY" matches, so the "preboot"
   variable will be set to the contents of "key_cmdY":

	preboot=echo ## Keys 1 + 3 pressed ##;echo

3) The TRAB board has optional modem support. When a certain key
   combination is pressed on the keyboard at power-on, the firmware
   performs the necessary initialization of the modem and allows for
   dial-in. The key combination is specified in the
   "include/configs/trab.h" file. For example:

	#define        CONFIG_MODEM_KEY_MAGIC  "23"

   means that modem will be initialized if and only if both keys 2, 3
   are pressed. Note that the format of this string is similar to the
   format of "key_magic*" environment variables described above.