diff options
author | vdumpa <vdumpa@nvidia.com> | 2011-02-23 16:10:27 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:52:09 -0700 |
commit | ba38db02454681e45cd26a021d101e58e0c959e9 (patch) | |
tree | 7a271c7737337431a055512419060d93fe316da2 /arch/arm/mach-tegra/devices.c | |
parent | d72539835f9b942ffd87156c0528106b8b5c6e57 (diff) |
tegra:watchdog: Change timer src to timer10 for watchdog.
Fix wdt resource definition issue either.
Bug 790458
Original-Change-Id: I7c80d6c243c42a0e632603dfcc255b70995358b2
Reviewed-on: http://git-master/r/20646
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Change-Id: I9897fb6614d75508bd0ffd6e866acf27a24a0cb5
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 6d1aef8e926b..c307dbc4ea86 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -802,6 +802,26 @@ struct platform_device pmu_device = { .resource = pmu_resources, }; +#if defined(CONFIG_ARCH_TEGRA_2x_SOC) +#define CLK_RESET_RST_SOURCE 0x0 +static struct resource tegra_wdt_resources[] = { + [0] = { + .start = TEGRA_CLK_RESET_BASE + CLK_RESET_RST_SOURCE, + .end = TEGRA_CLK_RESET_BASE + CLK_RESET_RST_SOURCE + 4 - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = TEGRA_TMR1_BASE, + .end = TEGRA_TMR1_BASE + TEGRA_TMR1_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + [2] = { + .start = INT_TMR1, + .end = INT_TMR1, + .flags = IORESOURCE_IRQ, + }, +}; +#elif defined(CONFIG_ARCH_TEGRA_3x_SOC) static struct resource tegra_wdt_resources[] = { [0] = { .start = TEGRA_WDT0_BASE, @@ -809,8 +829,8 @@ static struct resource tegra_wdt_resources[] = { .flags = IORESOURCE_MEM, }, [1] = { - .start = TEGRA_TMR6_BASE, - .end = TEGRA_TMR6_BASE + TEGRA_TMR6_SIZE - 1, + .start = TEGRA_TMR10_BASE, + .end = TEGRA_TMR10_BASE + TEGRA_TMR10_SIZE - 1, .flags = IORESOURCE_MEM, }, [2] = { @@ -819,6 +839,7 @@ static struct resource tegra_wdt_resources[] = { .flags = IORESOURCE_IRQ, }, }; +#endif struct platform_device tegra_wdt_device = { .name = "tegra_wdt", |