diff options
author | Wolfgang Denk <wd@fifi.denx.de> | 2006-06-16 16:40:54 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@fifi.denx.de> | 2006-06-16 16:40:54 +0200 |
commit | bc8bb6d458a2dfb5ae220b7df057e0f508c538ad (patch) | |
tree | 25c7d1016aa00b2b5be2c84dba99bed0ae0f9f5f /drivers/keyboard.c | |
parent | cebd1fcec0f7a484ca7e8ecce76c6d9c211368ec (diff) | |
download | u-boot-imx-bc8bb6d458a2dfb5ae220b7df057e0f508c538ad.zip u-boot-imx-bc8bb6d458a2dfb5ae220b7df057e0f508c538ad.tar.gz u-boot-imx-bc8bb6d458a2dfb5ae220b7df057e0f508c538ad.tar.bz2 |
Add support for PS/2 keyboard on TQM85xx board
Patch by Martin Krause, 07 Nov 2005
Tested on a STK85XX baseboard. Make sure the PS/2 controller
has been programmed. Jumper Settings: X66 1-2, 9-10; X61 2-3
Diffstat (limited to 'drivers/keyboard.c')
-rw-r--r-- | drivers/keyboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/keyboard.c b/drivers/keyboard.c index 1579095..41eccf2 100644 --- a/drivers/keyboard.c +++ b/drivers/keyboard.c @@ -33,7 +33,7 @@ #define KBD_BUFFER_LEN 0x20 /* size of the keyboardbuffer */ -#ifdef CONFIG_MPC5xxx +#if defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC85xx) int ps2ser_check(void); #endif @@ -75,7 +75,7 @@ static void kbd_put_queue(char data) /* test if a character is in the queue */ static int kbd_testc(void) { -#ifdef CONFIG_MPC5xxx +#if defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC85xx) /* no ISR is used, so received chars must be polled */ ps2ser_check(); #endif @@ -90,7 +90,7 @@ static int kbd_getc(void) { char c; while(in_pointer==out_pointer) { -#ifdef CONFIG_MPC5xxx +#if defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC85xx) /* no ISR is used, so received chars must be polled */ ps2ser_check(); #endif |