diff options
author | Yi Li <yi.li@analog.com> | 2010-04-06 01:53:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 03:48:47 -0400 |
commit | a65912ca57886fcfd2568e422fbc58f91b015c9e (patch) | |
tree | d017144963a91443560b235502449dd52303207d /arch/blackfin | |
parent | 92b20f7fb28e541d7f8efb4e3e8d81733aa8adfc (diff) |
Blackfin: bf537-stamp: add example adav801/3 resources
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 832d3007c92e..423916892c9c 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -545,6 +545,14 @@ static struct bfin5xx_spi_chip ad1938_spi_chip_info = { | |||
545 | }; | 545 | }; |
546 | #endif | 546 | #endif |
547 | 547 | ||
548 | #if defined(CONFIG_SND_BF5XX_SOC_ADAV80X) \ | ||
549 | || defined(CONFIG_SND_BF5XX_SOC_ADAV80X_MODULE) | ||
550 | static struct bfin5xx_spi_chip adav801_spi_chip_info = { | ||
551 | .enable_dma = 0, | ||
552 | .bits_per_word = 8, | ||
553 | }; | ||
554 | #endif | ||
555 | |||
548 | #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) | 556 | #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) |
549 | #include <linux/input/ad714x.h> | 557 | #include <linux/input/ad714x.h> |
550 | static struct bfin5xx_spi_chip ad7147_spi_chip_info = { | 558 | static struct bfin5xx_spi_chip ad7147_spi_chip_info = { |
@@ -998,6 +1006,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
998 | }, | 1006 | }, |
999 | #endif | 1007 | #endif |
1000 | 1008 | ||
1009 | #if defined(CONFIG_SND_BF5XX_SOC_ADAV80X) || defined(CONFIG_SND_BF5XX_SOC_ADAV80X_MODULE) | ||
1010 | { | ||
1011 | .modalias = "adav80x", | ||
1012 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
1013 | .bus_num = 0, | ||
1014 | .chip_select = 1, | ||
1015 | .controller_data = &adav801_spi_chip_info, | ||
1016 | .mode = SPI_MODE_3, | ||
1017 | }, | ||
1018 | #endif | ||
1019 | |||
1001 | #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) | 1020 | #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) |
1002 | { | 1021 | { |
1003 | .modalias = "ad714x_captouch", | 1022 | .modalias = "ad714x_captouch", |
@@ -1816,6 +1835,12 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
1816 | }, | 1835 | }, |
1817 | #endif | 1836 | #endif |
1818 | 1837 | ||
1838 | #if defined(CONFIG_SND_BF5XX_SOC_ADAV80X) || defined(CONFIG_SND_BF5XX_SOC_ADAV80X_MODULE) | ||
1839 | { | ||
1840 | I2C_BOARD_INFO("adav803", 0x10), | ||
1841 | }, | ||
1842 | #endif | ||
1843 | |||
1819 | #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE) | 1844 | #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE) |
1820 | { | 1845 | { |
1821 | I2C_BOARD_INFO("ad7142_captouch", 0x2C), | 1846 | I2C_BOARD_INFO("ad7142_captouch", 0x2C), |