diff options
author | Stefan Roese <sr@denx.de> | 2007-08-21 16:27:57 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-08-21 16:27:57 +0200 |
commit | 3ad63878737a5a2b1e60825bf0a7d601d7a695e7 (patch) | |
tree | cfdd991815a7be20bb612a0f505833542a720bad /board/lwmon5/lwmon5.c | |
parent | 537223afa61f64480df31ce440a9cb386df4a814 (diff) | |
download | u-boot-imx-3ad63878737a5a2b1e60825bf0a7d601d7a695e7.zip u-boot-imx-3ad63878737a5a2b1e60825bf0a7d601d7a695e7.tar.gz u-boot-imx-3ad63878737a5a2b1e60825bf0a7d601d7a695e7.tar.bz2 |
ppc4xx: Add matrix kbd support to lwmon5 board (440EPx based)
This patch adds support for the matrix keyboard on the lwmon5 board.
Since the implementation in the dsPCI is kind of compatible with the
"old" lwmon board, most of the code is copied from the lwmon
board directory.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/lwmon5/lwmon5.c')
-rw-r--r-- | board/lwmon5/lwmon5.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c index 830ec19..0958194 100644 --- a/board/lwmon5/lwmon5.c +++ b/board/lwmon5/lwmon5.c @@ -28,7 +28,8 @@ DECLARE_GLOBAL_DATA_PTR; extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */ -ulong flash_get_size (ulong base, int banknum); +ulong flash_get_size(ulong base, int banknum); +int misc_init_r_kbd(void); int board_early_init_f(void) { @@ -295,6 +296,11 @@ int misc_init_r(void) out_be32((void *)0xc4000024, 0x64); out_be32((void *)0xc4000020, 0x701); + /* + * Init matrix keyboard + */ + misc_init_r_kbd(); + return 0; } @@ -521,14 +527,3 @@ void hw_watchdog_reset(void) val = gpio_read_out_bit(CFG_GPIO_WATCHDOG) == 0 ? 1 : 0; gpio_write_bit(CFG_GPIO_WATCHDOG, val); } - -#ifdef CONFIG_POST -/* - * Returns 1 if keys pressed to start the power-on long-running tests - * Called from board_init_f(). - */ -int post_hotkeys_pressed(void) -{ - return (ctrlc()); -} -#endif |