|
@@ -17,6 +17,7 @@
|
|
|
#include <linux/usb/isp1362.h>
|
|
|
#endif
|
|
|
#include <linux/irq.h>
|
|
|
+#include <linux/i2c.h>
|
|
|
#include <asm/dma.h>
|
|
|
#include <asm/bfin5xx_spi.h>
|
|
|
#include <asm/portmux.h>
|
|
@@ -34,12 +35,6 @@ static struct platform_device rtc_device = {
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
-#if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
|
|
|
-static struct platform_device bfin_fb_adv7393_device = {
|
|
|
- .name = "bfin-adv7393",
|
|
|
-};
|
|
|
-#endif
|
|
|
-
|
|
|
/*
|
|
|
* USB-LAN EzExtender board
|
|
|
* Driver needs to know address, irq and flag pin.
|
|
@@ -438,6 +433,14 @@ static struct platform_device bfin_dpmc = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
|
|
+#if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
|
|
|
+ {
|
|
|
+ I2C_BOARD_INFO("bfin-adv7393", 0x2B),
|
|
|
+ },
|
|
|
+#endif
|
|
|
+};
|
|
|
+
|
|
|
static struct platform_device *ezkit_devices[] __initdata = {
|
|
|
|
|
|
&bfin_dpmc,
|
|
@@ -460,10 +463,6 @@ static struct platform_device *ezkit_devices[] __initdata = {
|
|
|
&bfin_spi0_device,
|
|
|
#endif
|
|
|
|
|
|
-#if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
|
|
|
- &bfin_fb_adv7393_device,
|
|
|
-#endif
|
|
|
-
|
|
|
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
|
|
|
&rtc_device,
|
|
|
#endif
|
|
@@ -494,6 +493,8 @@ static int __init ezkit_init(void)
|
|
|
printk(KERN_INFO "%s(): registering device resources\n", __func__);
|
|
|
platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
|
|
|
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
|
|
|
+ i2c_register_board_info(0, bfin_i2c_board_info,
|
|
|
+ ARRAY_SIZE(bfin_i2c_board_info));
|
|
|
return 0;
|
|
|
}
|
|
|
|