|
@@ -591,3 +591,77 @@ static struct platform_device i2c_bfin_twi_device = {
|
|
|
.resource = bfin_twi0_resource,
|
|
|
.dev = {
|
|
|
.platform_data = &bfin_twi0_pins,
|
|
|
+ },
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
|
|
|
+#if defined(CONFIG_TOUCHSCREEN_AD7160) || defined(CONFIG_TOUCHSCREEN_AD7160_MODULE)
|
|
|
+ {
|
|
|
+ I2C_BOARD_INFO("ad7160", 0x33),
|
|
|
+ .irq = IRQ_PH1,
|
|
|
+ .platform_data = (void *)&bfin_ad7160_ts_info,
|
|
|
+ },
|
|
|
+#endif
|
|
|
+};
|
|
|
+
|
|
|
+#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
|
|
|
+#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
|
|
|
+static struct resource bfin_sport0_uart_resources[] = {
|
|
|
+ {
|
|
|
+ .start = SPORT0_TCR1,
|
|
|
+ .end = SPORT0_MRCS3+4,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_SPORT0_RX,
|
|
|
+ .end = IRQ_SPORT0_RX+1,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_SPORT0_ERROR,
|
|
|
+ .end = IRQ_SPORT0_ERROR,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static unsigned short bfin_sport0_peripherals[] = {
|
|
|
+ P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
|
|
|
+ P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device bfin_sport0_uart_device = {
|
|
|
+ .name = "bfin-sport-uart",
|
|
|
+ .id = 0,
|
|
|
+ .num_resources = ARRAY_SIZE(bfin_sport0_uart_resources),
|
|
|
+ .resource = bfin_sport0_uart_resources,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &bfin_sport0_peripherals, /* Passed to driver */
|
|
|
+ },
|
|
|
+};
|
|
|
+#endif
|
|
|
+#ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
|
|
|
+static struct resource bfin_sport1_uart_resources[] = {
|
|
|
+ {
|
|
|
+ .start = SPORT1_TCR1,
|
|
|
+ .end = SPORT1_MRCS3+4,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_SPORT1_RX,
|
|
|
+ .end = IRQ_SPORT1_RX+1,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .start = IRQ_SPORT1_ERROR,
|
|
|
+ .end = IRQ_SPORT1_ERROR,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static unsigned short bfin_sport1_peripherals[] = {
|
|
|
+ P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS,
|
|
|
+ P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device bfin_sport1_uart_device = {
|