|
@@ -190,3 +190,57 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
|
|
|
|
|
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
|
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
|
|
+ .enable_dma = 0,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
|
|
|
+static const struct ad7877_platform_data bfin_ad7877_ts_info = {
|
|
|
+ .model = 7877,
|
|
|
+ .vref_delay_usecs = 50, /* internal, no capacitor */
|
|
|
+ .x_plate_ohms = 419,
|
|
|
+ .y_plate_ohms = 486,
|
|
|
+ .pressure_max = 1000,
|
|
|
+ .pressure_min = 0,
|
|
|
+ .stopacq_polarity = 1,
|
|
|
+ .first_conversion_delay = 3,
|
|
|
+ .acquisition_time = 1,
|
|
|
+ .averaging = 1,
|
|
|
+ .pen_down_acc_interval = 1,
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|
|
+#if defined(CONFIG_MTD_M25P80) \
|
|
|
+ || defined(CONFIG_MTD_M25P80_MODULE)
|
|
|
+ {
|
|
|
+ /* the modalias must be the same as spi device driver name */
|
|
|
+ .modalias = "m25p80", /* Name of spi_driver for this device */
|
|
|
+ .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
|
+ .bus_num = 0, /* Framework bus number */
|
|
|
+ .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/
|
|
|
+ .platform_data = &bfin_spi_flash_data,
|
|
|
+ .controller_data = &spi_flash_chip_info,
|
|
|
+ .mode = SPI_MODE_3,
|
|
|
+ },
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_SND_BF5XX_SOC_AD183X) \
|
|
|
+ || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
|
|
|
+ {
|
|
|
+ .modalias = "ad183x",
|
|
|
+ .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
|
|
+ .bus_num = 0,
|
|
|
+ .chip_select = 4,
|
|
|
+ },
|
|
|
+#endif
|
|
|
+#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
|
|
+ {
|
|
|
+ .modalias = "mmc_spi",
|
|
|
+ .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
|
+ .bus_num = 0,
|
|
|
+ .chip_select = 5,
|
|
|
+ .controller_data = &mmc_spi_chip_info,
|
|
|
+ .mode = SPI_MODE_3,
|
|
|
+ },
|
|
|
+#endif
|