Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162713
b: refs/heads/master
c: 8312440
h: refs/heads/master
i:
  162711: 5e885ff
v: v3
  • Loading branch information
Barry Song authored and Mike Frysinger committed Sep 17, 2009
1 parent 48feb39 commit 1bf1764
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd411b15cc4b3f31f67d15e1afffbd1ec650d5b8
refs/heads/master: 8312440e05ea74feabc648ad8f36c823af4ddd8e
22 changes: 17 additions & 5 deletions trunk/arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
};
#endif

#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
|| defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
.enable_dma = 0,
.bits_per_word = 16,
Expand Down Expand Up @@ -883,14 +883,15 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif

#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
|| defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
{
.modalias = "ad1836-spi",
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
.bus_num = 0,
.chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
.chip_select = 4,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */
.controller_data = &ad1836_spi_chip_info,
.mode = SPI_MODE_3,
},
#endif

Expand Down Expand Up @@ -1628,6 +1629,13 @@ static struct platform_device bfin_dpmc = {
},
};

#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
static struct platform_device bfin_tdm = {
.name = "bfin-tdm",
/* TODO: add platform data here */
};
#endif

static struct platform_device *stamp_devices[] __initdata = {

&bfin_dpmc,
Expand Down Expand Up @@ -1733,6 +1741,10 @@ static struct platform_device *stamp_devices[] __initdata = {
#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
&stamp_flash_device,
#endif

#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
&bfin_tdm,
#endif
};

static int __init stamp_init(void)
Expand Down

0 comments on commit 1bf1764

Please sign in to comment.