|
@@ -697,3 +697,66 @@ static unsigned short ad7816_platform_data[] = {
|
|
|
|
|
|
static struct bfin5xx_spi_chip ad7816_spi_chip_info = {
|
|
|
.enable_dma = 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
|
|
|
+static unsigned long adt7310_platform_data[3] = {
|
|
|
+/* INT bound temperature alarm event. line 1 */
|
|
|
+ IRQ_PG4, IRQF_TRIGGER_LOW,
|
|
|
+/* CT bound temperature alarm event irq_flags. line 0 */
|
|
|
+ IRQF_TRIGGER_LOW,
|
|
|
+};
|
|
|
+
|
|
|
+static struct bfin5xx_spi_chip adt7310_spi_chip_info = {
|
|
|
+ .enable_dma = 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE)
|
|
|
+static unsigned short ad7298_platform_data[] = {
|
|
|
+ GPIO_PF7, /* busy_pin */
|
|
|
+ 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE)
|
|
|
+static unsigned long adt7316_spi_data[2] = {
|
|
|
+ IRQF_TRIGGER_LOW, /* interrupt flags */
|
|
|
+ GPIO_PF7, /* ldac_pin, 0 means DAC/LDAC registers control DAC update */
|
|
|
+};
|
|
|
+
|
|
|
+static struct bfin5xx_spi_chip adt7316_spi_chip_info = {
|
|
|
+ .enable_dma = 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
|
|
+#define MMC_SPI_CARD_DETECT_INT IRQ_PF5
|
|
|
+
|
|
|
+static int bfin_mmc_spi_init(struct device *dev,
|
|
|
+ irqreturn_t (*detect_int)(int, void *), void *data)
|
|
|
+{
|
|
|
+ return request_irq(MMC_SPI_CARD_DETECT_INT, detect_int,
|
|
|
+ IRQF_TRIGGER_FALLING, "mmc-spi-detect", data);
|
|
|
+}
|
|
|
+
|
|
|
+static void bfin_mmc_spi_exit(struct device *dev, void *data)
|
|
|
+{
|
|
|
+ free_irq(MMC_SPI_CARD_DETECT_INT, data);
|
|
|
+}
|
|
|
+
|
|
|
+static struct mmc_spi_platform_data bfin_mmc_spi_pdata = {
|
|
|
+ .init = bfin_mmc_spi_init,
|
|
|
+ .exit = bfin_mmc_spi_exit,
|
|
|
+ .detect_delay = 100, /* msecs */
|
|
|
+};
|
|
|
+
|
|
|
+static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
|
|
+ .enable_dma = 0,
|
|
|
+ .pio_interrupt = 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
|
|
|
+#include <linux/spi/ad7877.h>
|