diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 21 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/mtd-xip.h | 2 |
2 files changed, 14 insertions, 9 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 |
diff --git a/arch/arm/plat-omap/include/mach/mtd-xip.h b/arch/arm/plat-omap/include/mach/mtd-xip.h index 5cee7e16a1b4..39b591ff54bb 100644 --- a/arch/arm/plat-omap/include/mach/mtd-xip.h +++ b/arch/arm/plat-omap/include/mach/mtd-xip.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Do not include this file directly. It's included from linux/mtd/xip.h | 4 | * Do not include this file directly. It's included from linux/mtd/xip.h |
5 | * | 5 | * |
6 | * Author: Vladimir Barinov <vbarinov@ru.mvista.com> | 6 | * Author: Vladimir Barinov <vbarinov@embeddedalley.com> |
7 | * | 7 | * |
8 | * (c) 2005 MontaVista Software, Inc. This file is licensed under the | 8 | * (c) 2005 MontaVista Software, Inc. This file is licensed under the |
9 | * terms of the GNU General Public License version 2. This program is | 9 | * terms of the GNU General Public License version 2. This program is |