[ARM] tegra: add tegra_wdt_device to devices.c
authorGary King <gking@nvidia.com>
Fri, 27 Aug 2010 03:00:29 +0000 (20:00 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:28:16 +0000 (16:28 -0700)
Change-Id: I8098fa38ebef8636a6eeb1179e679201445e5237
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h

index 4e84e7dcea5dfdd441d79a7eb7de82c12ac635ec..6e65d0eff87cdb7e06ebff38578964f7c45ba499 100644 (file)
@@ -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,
+};
index 7088eb9612653058ac05e9806de17072f62cb0b6..b86832a1dbaedebc7e73f7896d79b02b4a23f031 100644 (file)
@@ -44,4 +44,5 @@ extern struct platform_device tegra_i2s_device1;
 extern struct platform_device tegra_i2s_device2;
 extern struct platform_device tegra_gart_device;
 extern struct platform_device pmu_device;
+extern struct platform_device tegra_wdt_device;
 #endif