diff options
author | Marc Zyngier <maz@misterjones.org> | 2010-02-18 15:31:43 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-03-01 18:40:59 -0500 |
commit | fcfdc67ff2b104355683f7264a6559a0cc360646 (patch) | |
tree | 108d4d044a67e83fe59d074dbb427e0ad43d1fd0 /arch/arm/mach-pxa/zeus.c | |
parent | 90ac0dfd9f5931c9011b35ced0ba576e32656fb2 (diff) |
[ARM] pxa/zeus: Add support for onboard max6369 watchdog
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/zeus.c')
-rw-r--r-- | arch/arm/mach-pxa/zeus.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index 82070e376617..9ba8fccd98ff 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -457,6 +457,19 @@ static struct platform_device zeus_pcmcia_device = { | |||
457 | }, | 457 | }, |
458 | }; | 458 | }; |
459 | 459 | ||
460 | static struct resource zeus_max6369_resource = { | ||
461 | .start = ZEUS_CPLD_EXTWDOG_PHYS, | ||
462 | .end = ZEUS_CPLD_EXTWDOG_PHYS, | ||
463 | .flags = IORESOURCE_MEM, | ||
464 | }; | ||
465 | |||
466 | struct platform_device zeus_max6369_device = { | ||
467 | .name = "max6369_wdt", | ||
468 | .id = -1, | ||
469 | .resource = &zeus_max6369_resource, | ||
470 | .num_resources = 1, | ||
471 | }; | ||
472 | |||
460 | static struct platform_device *zeus_devices[] __initdata = { | 473 | static struct platform_device *zeus_devices[] __initdata = { |
461 | &zeus_serial_device, | 474 | &zeus_serial_device, |
462 | &zeus_mtd_devices[0], | 475 | &zeus_mtd_devices[0], |
@@ -466,6 +479,7 @@ static struct platform_device *zeus_devices[] __initdata = { | |||
466 | &pxa2xx_spi_ssp3_device, | 479 | &pxa2xx_spi_ssp3_device, |
467 | &zeus_leds_device, | 480 | &zeus_leds_device, |
468 | &zeus_pcmcia_device, | 481 | &zeus_pcmcia_device, |
482 | &zeus_max6369_device, | ||
469 | }; | 483 | }; |
470 | 484 | ||
471 | /* AC'97 */ | 485 | /* AC'97 */ |
@@ -819,12 +833,6 @@ static struct map_desc zeus_io_desc[] __initdata = { | |||
819 | .type = MT_DEVICE, | 833 | .type = MT_DEVICE, |
820 | }, | 834 | }, |
821 | { | 835 | { |
822 | .virtual = ZEUS_CPLD_EXTWDOG, | ||
823 | .pfn = __phys_to_pfn(ZEUS_CPLD_EXTWDOG_PHYS), | ||
824 | .length = 0x1000, | ||
825 | .type = MT_DEVICE, | ||
826 | }, | ||
827 | { | ||
828 | .virtual = ZEUS_PC104IO, | 836 | .virtual = ZEUS_PC104IO, |
829 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), | 837 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), |
830 | .length = 0x00800000, | 838 | .length = 0x00800000, |