diff options
author | Bryan Wu <cooloney@kernel.org> | 2008-05-06 23:41:26 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-05-06 23:41:26 -0400 |
commit | 72268689cf28091ba202d7c5f4e7c5d613edd4ac (patch) | |
tree | 946a4b8bd387bc78e24f22975b985dd4b2caf4ac /arch/blackfin/mach-bf527/boards/ezkit.c | |
parent | d7e5dd41e394397aefd25ea412aeb47cf1b54d80 (diff) |
[Blackfin] arch: add twi_lcd and twi_keypad i2c board info to bf527-ezkit
- JP3 should be installed for STAMP enable
- IRQ for twi_keypad driver is IRQ_PF8
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 75acd4d37a11..452b4b16daee 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/usb/isp1362.h> | 39 | #include <linux/usb/isp1362.h> |
40 | #endif | 40 | #endif |
41 | #include <linux/ata_platform.h> | 41 | #include <linux/ata_platform.h> |
42 | #include <linux/i2c.h> | ||
42 | #include <linux/irq.h> | 43 | #include <linux/irq.h> |
43 | #include <linux/interrupt.h> | 44 | #include <linux/interrupt.h> |
44 | #include <linux/usb/sl811.h> | 45 | #include <linux/usb/sl811.h> |
@@ -797,6 +798,24 @@ static struct platform_device i2c_bfin_twi_device = { | |||
797 | }; | 798 | }; |
798 | #endif | 799 | #endif |
799 | 800 | ||
801 | #ifdef CONFIG_I2C_BOARDINFO | ||
802 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | ||
803 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) | ||
804 | { | ||
805 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | ||
806 | .type = "pcf8574_lcd", | ||
807 | }, | ||
808 | #endif | ||
809 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) | ||
810 | { | ||
811 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), | ||
812 | .type = "pcf8574_keypad", | ||
813 | .irq = IRQ_PF8, | ||
814 | }, | ||
815 | #endif | ||
816 | }; | ||
817 | #endif | ||
818 | |||
800 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 819 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
801 | static struct platform_device bfin_sport0_uart_device = { | 820 | static struct platform_device bfin_sport0_uart_device = { |
802 | .name = "bfin-sport-uart", | 821 | .name = "bfin-sport-uart", |
@@ -998,6 +1017,12 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
998 | static int __init stamp_init(void) | 1017 | static int __init stamp_init(void) |
999 | { | 1018 | { |
1000 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | 1019 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
1020 | |||
1021 | #ifdef CONFIG_I2C_BOARDINFO | ||
1022 | i2c_register_board_info(0, bfin_i2c_board_info, | ||
1023 | ARRAY_SIZE(bfin_i2c_board_info)); | ||
1024 | #endif | ||
1025 | |||
1001 | platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); | 1026 | platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); |
1002 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 1027 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
1003 | spi_register_board_info(bfin_spi_board_info, | 1028 | spi_register_board_info(bfin_spi_board_info, |