diff options
author | Simon Glass <sjg@chromium.org> | 2018-03-19 15:20:25 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 17:04:33 -0400 |
commit | b79b9f198bad2c2ad58319a88bd5adca3a54b864 (patch) | |
tree | 213b2fa103821bb5723550f3f8d68680b9e9edef /include | |
parent | 22fc7b6cd6e66911c58848d03eb0f1ddee024137 (diff) | |
download | u-boot-b79b9f198bad2c2ad58319a88bd5adca3a54b864.tar.gz |
input: Drop PS/2 keyboard support
This is not used by any current board and has not been converted to driver
model. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/keyboard.h | 27 | ||||
-rw-r--r-- | include/pc_keyb.h | 121 | ||||
-rw-r--r-- | include/ps2mult.h | 56 |
3 files changed, 0 insertions, 204 deletions
diff --git a/include/keyboard.h b/include/keyboard.h index 9b51e20322..7561954f75 100644 --- a/include/keyboard.h +++ b/include/keyboard.h @@ -1,7 +1,6 @@ #ifndef __KEYBOARD_H #define __KEYBOARD_H -#ifdef CONFIG_DM_KEYBOARD #include <input.h> #include <stdio_dev.h> @@ -77,30 +76,4 @@ struct keyboard_ops { #define keyboard_get_ops(dev) ((struct keyboard_ops *)(dev)->driver->ops) -#else - -#ifdef CONFIG_PS2MULT -#include <ps2mult.h> -#endif - -#if !defined(kbd_request_region) || \ - !defined(kbd_request_irq) || \ - !defined(kbd_read_input) || \ - !defined(kbd_read_status) || \ - !defined(kbd_write_output) || \ - !defined(kbd_write_command) -#error PS/2 low level routines not defined -#endif - -extern int kbd_init (void); -extern void handle_scancode(unsigned char scancode); -extern int kbd_init_hw(void); -extern void pckbd_leds(unsigned char leds); -#endif /* !CONFIG_DM_KEYBOARD */ - -#if defined(CONFIG_ARCH_MPC8540) || \ - defined(CONFIG_ARCH_MPC8541) || defined(CONFIG_ARCH_MPC8555) -int ps2ser_check(void); -#endif - #endif /* __KEYBOARD_H */ diff --git a/include/pc_keyb.h b/include/pc_keyb.h deleted file mode 100644 index 5ba99e35a2..0000000000 --- a/include/pc_keyb.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * include/linux/pc_keyb.h - * - * PC Keyboard And Keyboard Controller - * - * (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz> - */ - -/* - * Configuration Switches - */ -#undef KBD_REPORT_ERR /* Report keyboard errors */ -#define KBD_REPORT_UNKN /* Report unknown scan codes */ -#define KBD_REPORT_TIMEOUTS /* Report keyboard timeouts */ -#undef KBD_IS_FOCUS_9000 /* We have the brain-damaged FOCUS-9000 keyboard */ -#undef INITIALIZE_MOUSE /* Define if your PS/2 mouse needs initialization. */ - -#define KBD_INIT_TIMEOUT 1000 /* Timeout in ms for initializing the keyboard */ -#define KBC_TIMEOUT 250 /* Timeout in ms for sending to keyboard controller */ -#define KBD_TIMEOUT 1000 /* Timeout in ms for keyboard command acknowledge */ - -/* - * Internal variables of the driver - */ -extern unsigned char pckbd_read_mask; -extern unsigned char aux_device_present; - -/* - * Keyboard Controller Registers on normal PCs. - */ -#define KBD_STATUS_REG 0x64 /* Status register (R) */ -#define KBD_CNTL_REG 0x64 /* Controller command register (W) */ -#define KBD_DATA_REG 0x60 /* Keyboard data register (R/W) */ - -/* - * Keyboard Controller Commands - */ -#define KBD_CCMD_READ_MODE 0x20 /* Read mode bits */ -#define KBD_CCMD_WRITE_MODE 0x60 /* Write mode bits */ -#define KBD_CCMD_GET_VERSION 0xA1 /* Get controller version */ -#define KBD_CCMD_MOUSE_DISABLE 0xA7 /* Disable mouse interface */ -#define KBD_CCMD_MOUSE_ENABLE 0xA8 /* Enable mouse interface */ -#define KBD_CCMD_TEST_MOUSE 0xA9 /* Mouse interface test */ -#define KBD_CCMD_SELF_TEST 0xAA /* Controller self test */ -#define KBD_CCMD_KBD_TEST 0xAB /* Keyboard interface test */ -#define KBD_CCMD_KBD_DISABLE 0xAD /* Keyboard interface disable */ -#define KBD_CCMD_KBD_ENABLE 0xAE /* Keyboard interface enable */ -#define KBD_CCMD_WRITE_AUX_OBUF 0xD3 /* Write to output buffer as if - initiated by the auxiliary device */ -#define KBD_CCMD_WRITE_MOUSE 0xD4 /* Write the following byte to the mouse */ - -/* - * Keyboard Commands - */ -#define KBD_CMD_SET_LEDS 0xED /* Set keyboard leds */ -#define KBD_CMD_SET_RATE 0xF3 /* Set typematic rate */ -#define KBD_CMD_ENABLE 0xF4 /* Enable scanning */ -#define KBD_CMD_DISABLE 0xF5 /* Disable scanning */ -#define KBD_CMD_RESET 0xFF /* Reset */ - -/* - * Keyboard Replies - */ -#define KBD_REPLY_POR 0xAA /* Power on reset */ -#define KBD_REPLY_ACK 0xFA /* Command ACK */ -#define KBD_REPLY_RESEND 0xFE /* Command NACK, send the cmd again */ - -/* - * Status Register Bits - */ -#define KBD_STAT_OBF 0x01 /* Keyboard output buffer full */ -#define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */ -#define KBD_STAT_SELFTEST 0x04 /* Self test successful */ -#define KBD_STAT_CMD 0x08 /* Last write was a command write (0=data) */ -#define KBD_STAT_UNLOCKED 0x10 /* Zero if keyboard locked */ -#define KBD_STAT_MOUSE_OBF 0x20 /* Mouse output buffer full */ -#define KBD_STAT_GTO 0x40 /* General receive/xmit timeout */ -#define KBD_STAT_PERR 0x80 /* Parity error */ - -#define AUX_STAT_OBF (KBD_STAT_OBF | KBD_STAT_MOUSE_OBF) - -/* - * Controller Mode Register Bits - */ -#define KBD_MODE_KBD_INT 0x01 /* Keyboard data generate IRQ1 */ -#define KBD_MODE_MOUSE_INT 0x02 /* Mouse data generate IRQ12 */ -#define KBD_MODE_SYS 0x04 /* The system flag (?) */ -#define KBD_MODE_NO_KEYLOCK 0x08 /* The keylock doesn't affect the keyboard if set */ -#define KBD_MODE_DISABLE_KBD 0x10 /* Disable keyboard interface */ -#define KBD_MODE_DISABLE_MOUSE 0x20 /* Disable mouse interface */ -#define KBD_MODE_KCC 0x40 /* Scan code conversion to PC format */ -#define KBD_MODE_RFU 0x80 - -/* - * Mouse Commands - */ -#define AUX_SET_RES 0xE8 /* Set resolution */ -#define AUX_SET_SCALE11 0xE6 /* Set 1:1 scaling */ -#define AUX_SET_SCALE21 0xE7 /* Set 2:1 scaling */ -#define AUX_GET_SCALE 0xE9 /* Get scaling factor */ -#define AUX_SET_STREAM 0xEA /* Set stream mode */ -#define AUX_SET_SAMPLE 0xF3 /* Set sample rate */ -#define AUX_ENABLE_DEV 0xF4 /* Enable aux device */ -#define AUX_DISABLE_DEV 0xF5 /* Disable aux device */ -#define AUX_RESET 0xFF /* Reset aux device */ -#define AUX_ACK 0xFA /* Command byte ACK. */ - -#define AUX_BUF_SIZE 2048 /* This might be better divisible by - three to make overruns stay in sync - but then the read function would need - a lock etc - ick */ - -#if 0 -struct aux_queue { - unsigned long head; - unsigned long tail; - wait_queue_head_t proc_list; - struct fasync_struct *fasync; - unsigned char buf[AUX_BUF_SIZE]; -}; -#endif diff --git a/include/ps2mult.h b/include/ps2mult.h deleted file mode 100644 index 1a38733b76..0000000000 --- a/include/ps2mult.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __LINUX_PS2MULT_H -#define __LINUX_PS2MULT_H - -#define kbd_request_region() ps2mult_init() -#define kbd_request_irq(handler) ps2mult_request_irq(handler) - -#define kbd_read_input() ps2mult_read_input() -#define kbd_read_status() ps2mult_read_status() -#define kbd_write_output(val) ps2mult_write_output(val) -#define kbd_write_command(val) ps2mult_write_command(val) - -#define aux_request_irq(hand, dev_id) 0 -#define aux_free_irq(dev_id) - -#define PS2MULT_KB_SELECTOR 0xA0 -#define PS2MULT_MS_SELECTOR 0xA1 -#define PS2MULT_ESCAPE 0x7D -#define PS2MULT_BSYNC 0x7E -#define PS2MULT_SESSION_START 0x55 -#define PS2MULT_SESSION_END 0x56 - -#define PS2BUF_SIZE 512 /* power of 2, please */ - -#ifndef CONFIG_PS2MULT_DELAY -#define CONFIG_PS2MULT_DELAY (CONFIG_SYS_HZ/2) /* Initial delay */ -#endif - - /* PS/2 controller interface (include/asm/keyboard.h) - */ -extern int ps2mult_init (void); -extern int ps2mult_request_irq(void (*handler)(void *)); -extern u_char ps2mult_read_input(void); -extern u_char ps2mult_read_status(void); -extern void ps2mult_write_output(u_char val); -extern void ps2mult_write_command(u_char val); - -extern void ps2mult_early_init (void); -extern void ps2mult_callback (int in_cnt); - - /* Simple serial interface - */ -extern int ps2ser_init(void); -extern void ps2ser_putc(int chr); -extern int ps2ser_getc(void); -extern int ps2ser_check(void); - - - /* Serial related stuff - */ -struct serial_state { - int baud_base; - int irq; - u8 *iomem_base; -}; - -#endif /* __LINUX_PS2MULT_H */ |