diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-10-15 18:16:07 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-10-15 18:16:07 -0400 |
commit | 2502991560dc8244dbe10e48473d85722c1e2ec1 (patch) | |
tree | 63b1f3be2ed56ff06f1e8db709e4ce85d69c3add /arch/arm/plat-omap/devices.c | |
parent | 7e69a8c4d06b7ecb874f571e82b715a9f79bc3c4 (diff) | |
parent | a9ff8f6462635c8d9f8d64b7b10ddcea8404d77b (diff) |
Merge branch 'fixes' into for-linus
Conflicts:
arch/arm/mach-versatile/core.c
Diffstat (limited to 'arch/arm/plat-omap/devices.c')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index ed94dee326ca..0cb2b22388e9 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
@@ -438,16 +438,8 @@ static inline void omap_init_uwire(void) {} | |||
438 | 438 | ||
439 | #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) | 439 | #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) |
440 | 440 | ||
441 | #ifdef CONFIG_ARCH_OMAP24XX | ||
442 | #define OMAP_WDT_BASE 0x48022000 | ||
443 | #else | ||
444 | #define OMAP_WDT_BASE 0xfffeb000 | ||
445 | #endif | ||
446 | |||
447 | static struct resource wdt_resources[] = { | 441 | static struct resource wdt_resources[] = { |
448 | { | 442 | { |
449 | .start = OMAP_WDT_BASE, | ||
450 | .end = OMAP_WDT_BASE + 0x4f, | ||
451 | .flags = IORESOURCE_MEM, | 443 | .flags = IORESOURCE_MEM, |
452 | }, | 444 | }, |
453 | }; | 445 | }; |
@@ -461,6 +453,19 @@ static struct platform_device omap_wdt_device = { | |||
461 | 453 | ||
462 | static void omap_init_wdt(void) | 454 | static void omap_init_wdt(void) |
463 | { | 455 | { |
456 | if (cpu_is_omap16xx()) | ||
457 | wdt_resources[0].start = 0xfffeb000; | ||
458 | else if (cpu_is_omap2420()) | ||
459 | wdt_resources[0].start = 0x48022000; /* WDT2 */ | ||
460 | else if (cpu_is_omap2430()) | ||
461 | wdt_resources[0].start = 0x49016000; /* WDT2 */ | ||
462 | else if (cpu_is_omap343x()) | ||
463 | wdt_resources[0].start = 0x48314000; /* WDT2 */ | ||
464 | else | ||
465 | return; | ||
466 | |||
467 | wdt_resources[0].end = wdt_resources[0].start + 0x4f; | ||
468 | |||
464 | (void) platform_device_register(&omap_wdt_device); | 469 | (void) platform_device_register(&omap_wdt_device); |
465 | } | 470 | } |
466 | #else | 471 | #else |