diff options
author | Gary King <gking@nvidia.com> | 2010-08-26 20:00:29 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-10-06 16:28:16 -0700 |
commit | 7e9bd8ff3f1a770ca3451bfbc701074cf2270bfa (patch) | |
tree | 3aed8c0f92e0c0718726ad14eeadabd2af5068f1 /arch/arm/mach-tegra/devices.c | |
parent | 2b3a85e0785ecb20d764d04109bf707de4a99892 (diff) |
[ARM] tegra: add tegra_wdt_device to devices.c
Change-Id: I8098fa38ebef8636a6eeb1179e679201445e5237
Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 4e84e7dcea5d..6e65d0eff87c 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -513,3 +513,29 @@ struct platform_device pmu_device = { .num_resources = ARRAY_SIZE(pmu_resources), .resource = pmu_resources, }; + +#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, + }, +}; + +struct platform_device tegra_wdt_device = { + .name = "tegra_wdt", + .id = -1, + .num_resources = ARRAY_SIZE(tegra_wdt_resources), + .resource = tegra_wdt_resources, +}; |