diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/arm/mach-davinci/devices.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'arch/arm/mach-davinci/devices.c')
-rw-r--r-- | arch/arm/mach-davinci/devices.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c index 8b7201e4c79c..806a2f02b980 100644 --- a/arch/arm/mach-davinci/devices.c +++ b/arch/arm/mach-davinci/devices.c | |||
@@ -33,6 +33,9 @@ | |||
33 | #define DM365_MMCSD0_BASE 0x01D11000 | 33 | #define DM365_MMCSD0_BASE 0x01D11000 |
34 | #define DM365_MMCSD1_BASE 0x01D00000 | 34 | #define DM365_MMCSD1_BASE 0x01D00000 |
35 | 35 | ||
36 | /* System control register offsets */ | ||
37 | #define DM64XX_VDD3P3V_PWDN 0x48 | ||
38 | |||
36 | static struct resource i2c_resources[] = { | 39 | static struct resource i2c_resources[] = { |
37 | { | 40 | { |
38 | .start = DAVINCI_I2C_BASE, | 41 | .start = DAVINCI_I2C_BASE, |
@@ -213,7 +216,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config) | |||
213 | IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE + 0x7c); | 216 | IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE + 0x7c); |
214 | 217 | ||
215 | /* Configure pull down control */ | 218 | /* Configure pull down control */ |
216 | __raw_writel((__raw_readl(pupdctl1) & ~0x400), | 219 | __raw_writel((__raw_readl(pupdctl1) & ~0xfc0), |
217 | pupdctl1); | 220 | pupdctl1); |
218 | 221 | ||
219 | mmcsd1_resources[0].start = DM365_MMCSD1_BASE; | 222 | mmcsd1_resources[0].start = DM365_MMCSD1_BASE; |
@@ -295,6 +298,18 @@ static void davinci_init_wdt(void) | |||
295 | 298 | ||
296 | /*-------------------------------------------------------------------------*/ | 299 | /*-------------------------------------------------------------------------*/ |
297 | 300 | ||
301 | static struct platform_device davinci_pcm_device = { | ||
302 | .name = "davinci-pcm-audio", | ||
303 | .id = -1, | ||
304 | }; | ||
305 | |||
306 | static void davinci_init_pcm(void) | ||
307 | { | ||
308 | platform_device_register(&davinci_pcm_device); | ||
309 | } | ||
310 | |||
311 | /*-------------------------------------------------------------------------*/ | ||
312 | |||
298 | struct davinci_timer_instance davinci_timer_instance[2] = { | 313 | struct davinci_timer_instance davinci_timer_instance[2] = { |
299 | { | 314 | { |
300 | .base = DAVINCI_TIMER0_BASE, | 315 | .base = DAVINCI_TIMER0_BASE, |
@@ -315,6 +330,7 @@ static int __init davinci_init_devices(void) | |||
315 | /* please keep these calls, and their implementations above, | 330 | /* please keep these calls, and their implementations above, |
316 | * in alphabetical order so they're easier to sort through. | 331 | * in alphabetical order so they're easier to sort through. |
317 | */ | 332 | */ |
333 | davinci_init_pcm(); | ||
318 | davinci_init_wdt(); | 334 | davinci_init_wdt(); |
319 | 335 | ||
320 | return 0; | 336 | return 0; |