[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>
This commit is contained in:
parent
d7e5dd41e3
commit
72268689cf
@ -39,6 +39,7 @@
|
|||||||
#include <linux/usb/isp1362.h>
|
#include <linux/usb/isp1362.h>
|
||||||
#endif
|
#endif
|
||||||
#include <linux/ata_platform.h>
|
#include <linux/ata_platform.h>
|
||||||
|
#include <linux/i2c.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/usb/sl811.h>
|
#include <linux/usb/sl811.h>
|
||||||
@ -797,6 +798,24 @@ static struct platform_device i2c_bfin_twi_device = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_I2C_BOARDINFO
|
||||||
|
static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
||||||
|
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("pcf8574_lcd", 0x22),
|
||||||
|
.type = "pcf8574_lcd",
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE)
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("pcf8574_keypad", 0x27),
|
||||||
|
.type = "pcf8574_keypad",
|
||||||
|
.irq = IRQ_PF8,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
||||||
static struct platform_device bfin_sport0_uart_device = {
|
static struct platform_device bfin_sport0_uart_device = {
|
||||||
.name = "bfin-sport-uart",
|
.name = "bfin-sport-uart",
|
||||||
@ -998,6 +1017,12 @@ static struct platform_device *stamp_devices[] __initdata = {
|
|||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
||||||
|
|
||||||
|
#ifdef CONFIG_I2C_BOARDINFO
|
||||||
|
i2c_register_board_info(0, bfin_i2c_board_info,
|
||||||
|
ARRAY_SIZE(bfin_i2c_board_info));
|
||||||
|
#endif
|
||||||
|
|
||||||
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
|
||||||
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
|
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
|
||||||
spi_register_board_info(bfin_spi_board_info,
|
spi_register_board_info(bfin_spi_board_info,
|
||||||
|
Loading…
Reference in New Issue
Block a user