aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-dove
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-12-02 16:27:03 -0500
committerGregory CLEMENT <gregory.clement@free-electrons.com>2015-12-07 12:09:32 -0500
commit06f3008a6a7454389a82495eb1fc132c2b0710f6 (patch)
tree9b304f00b1332bcf2dc73bcd9fd76507e8877c2b /arch/arm/mach-dove
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
ARM: orion: move watchdog setup to mach-orion5x
The watchdog device node is created in plat-orion/common.c but depends on the bridge address that is platform specific, so as a preparation for orion multiplatform support, we move it out of the common code into orion5x and dove. At the moment, dove does not use the watchdog, so I'm marking the function as __maybe_unused for the moment. The compiler will be able to compile out the device definition this way, and we can easily add it later. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-dove')
-rw-r--r--arch/arm/mach-dove/common.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 0d1a89298ece..25a682fd444f 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -375,6 +375,23 @@ void __init dove_setup_cpu_wins(void)
375 DOVE_SCRATCHPAD_SIZE); 375 DOVE_SCRATCHPAD_SIZE);
376} 376}
377 377
378static struct resource orion_wdt_resource[] = {
379 DEFINE_RES_MEM(TIMER_PHYS_BASE, 0x04),
380 DEFINE_RES_MEM(RSTOUTn_MASK_PHYS, 0x04),
381};
382
383static struct platform_device orion_wdt_device = {
384 .name = "orion_wdt",
385 .id = -1,
386 .num_resources = ARRAY_SIZE(orion_wdt_resource),
387 .resource = orion_wdt_resource,
388};
389
390static void __init __maybe_unused orion_wdt_init(void)
391{
392 platform_device_register(&orion_wdt_device);
393}
394
378void __init dove_init(void) 395void __init dove_init(void)
379{ 396{
380 pr_info("Dove 88AP510 SoC, TCLK = %d MHz.\n", 397 pr_info("Dove 88AP510 SoC, TCLK = %d MHz.\n",