diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-26 11:18:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-26 11:19:03 -0400 |
commit | 7fd52392c56361a40f0c630a82b36b95ca31eac6 (patch) | |
tree | 14091de24c6b28ea4cae9826f98aeedb7be091f5 /arch/blackfin/mach-bf537/boards/stamp.c | |
parent | b01c3a0010aabadf745f3e7fdb9cab682e0a28a2 (diff) | |
parent | e22057c8599373e5caef0bc42bdb95d2a361ab0d (diff) |
Merge branch 'linus' into perf/urgent
Merge reason: we need to fix a non-trivial merge conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 2221173e489e..f3562b0922af 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -975,7 +975,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
975 | }, | 975 | }, |
976 | #endif | 976 | #endif |
977 | 977 | ||
978 | #if defined(CONFIG_SND_BF5XX_SOC_AD193X) || defined(CONFIG_SND_BF5XX_SOC_AD193X_MODULE) | 978 | #ifdef CONFIG_SND_SOC_AD193X_SPI |
979 | { | 979 | { |
980 | .modalias = "ad193x", | 980 | .modalias = "ad193x", |
981 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 981 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
@@ -2171,7 +2171,7 @@ static unsigned long adt7316_i2c_data[2] = { | |||
2171 | #endif | 2171 | #endif |
2172 | 2172 | ||
2173 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | 2173 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { |
2174 | #if defined(CONFIG_SND_BF5XX_SOC_AD193X) || defined(CONFIG_SND_BF5XX_SOC_AD193X_MODULE) | 2174 | #ifdef CONFIG_SND_SOC_AD193X_I2C |
2175 | { | 2175 | { |
2176 | I2C_BOARD_INFO("ad1937", 0x04), | 2176 | I2C_BOARD_INFO("ad1937", 0x04), |
2177 | }, | 2177 | }, |
@@ -2593,6 +2593,21 @@ static struct platform_device bfin_ac97_pcm = { | |||
2593 | }; | 2593 | }; |
2594 | #endif | 2594 | #endif |
2595 | 2595 | ||
2596 | #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ | ||
2597 | defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) | ||
2598 | static const unsigned ad73311_gpio[] = { | ||
2599 | GPIO_PF4, | ||
2600 | }; | ||
2601 | |||
2602 | static struct platform_device bfin_ad73311_machine = { | ||
2603 | .name = "bfin-snd-ad73311", | ||
2604 | .id = 1, | ||
2605 | .dev = { | ||
2606 | .platform_data = (void *)ad73311_gpio, | ||
2607 | }, | ||
2608 | }; | ||
2609 | #endif | ||
2610 | |||
2596 | #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) | 2611 | #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) |
2597 | static struct platform_device bfin_ad73311_codec_device = { | 2612 | static struct platform_device bfin_ad73311_codec_device = { |
2598 | .name = "ad73311", | 2613 | .name = "ad73311", |
@@ -2862,6 +2877,11 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
2862 | &bfin_ac97_pcm, | 2877 | &bfin_ac97_pcm, |
2863 | #endif | 2878 | #endif |
2864 | 2879 | ||
2880 | #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ | ||
2881 | defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) | ||
2882 | &bfin_ad73311_machine, | ||
2883 | #endif | ||
2884 | |||
2865 | #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) | 2885 | #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) |
2866 | &bfin_ad73311_codec_device, | 2886 | &bfin_ad73311_codec_device, |
2867 | #endif | 2887 | #endif |
@@ -2993,9 +3013,10 @@ void native_machine_restart(char *cmd) | |||
2993 | * Currently the MAC address is saved in Flash by U-Boot | 3013 | * Currently the MAC address is saved in Flash by U-Boot |
2994 | */ | 3014 | */ |
2995 | #define FLASH_MAC 0x203f0000 | 3015 | #define FLASH_MAC 0x203f0000 |
2996 | void bfin_get_ether_addr(char *addr) | 3016 | int bfin_get_ether_addr(char *addr) |
2997 | { | 3017 | { |
2998 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | 3018 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); |
2999 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | 3019 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); |
3020 | return 0; | ||
3000 | } | 3021 | } |
3001 | EXPORT_SYMBOL(bfin_get_ether_addr); | 3022 | EXPORT_SYMBOL(bfin_get_ether_addr); |