.flags = IORESOURCE_IRQ,
},
};
-#else
-static struct resource tegra_wdt_resources[] = {
- [0] = {
- .start = TEGRA_WDT0_BASE,
- .end = TEGRA_WDT0_BASE + TEGRA_WDT0_SIZE - 1,
- .flags = IORESOURCE_MEM,
- },
- [1] = {
- .start = TEGRA_TMR10_BASE,
- .end = TEGRA_TMR10_BASE + TEGRA_TMR10_SIZE - 1,
- .flags = IORESOURCE_MEM,
- },
- [2] = {
- .start = INT_WDT_CPU,
- .end = INT_WDT_CPU,
- .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,
+};
+#else
static struct resource tegra_wdt0_resources[] = {
[0] = {
.start = TEGRA_WDT0_BASE,
};
#endif
-struct platform_device tegra_wdt_device = {
- .name = "tegra_wdt",
- .id = -1,
- .num_resources = ARRAY_SIZE(tegra_wdt_resources),
- .resource = tegra_wdt_resources,
-};
-
static struct resource tegra_pwfm_resource = {
.start = TEGRA_PWFM_BASE,
.end = TEGRA_PWFM_BASE + TEGRA_PWFM_SIZE - 1,
#else
extern struct platform_device tegra_smmu_device;
#endif
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
extern struct platform_device tegra_wdt_device;
-#if !defined(CONFIG_ARCH_TEGRA_2x_SOC)
+#else
extern struct platform_device tegra_wdt0_device;
extern struct platform_device tegra_wdt1_device;
extern struct platform_device tegra_wdt2_device;