[WATCHDOG] ep93xx: added platform side support for TS-72xx WDT driver

Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by Mika Westerberg and committed by Wim Van Sebroeck 12926dc4 c90bf2aa

+23
+2
arch/arm/mach-ep93xx/include/mach/ts72xx.h
··· 65 #define TS72XX_RTC_DATA_PHYS_BASE 0x11700000 66 #define TS72XX_RTC_DATA_SIZE 0x00001000 67 68 69 #ifndef __ASSEMBLY__ 70
··· 65 #define TS72XX_RTC_DATA_PHYS_BASE 0x11700000 66 #define TS72XX_RTC_DATA_SIZE 0x00001000 67 68 + #define TS72XX_WDT_CONTROL_PHYS_BASE 0x23800000 69 + #define TS72XX_WDT_FEED_PHYS_BASE 0x23c00000 70 71 #ifndef __ASSEMBLY__ 72
+21
arch/arm/mach-ep93xx/ts72xx.c
··· 166 .num_resources = 0, 167 }; 168 169 static struct ep93xx_eth_data ts72xx_eth_data = { 170 .phy_id = 1, 171 }; ··· 195 ep93xx_init_devices(); 196 ts72xx_register_flash(); 197 platform_device_register(&ts72xx_rtc_device); 198 199 ep93xx_register_eth(&ts72xx_eth_data, 1); 200 }
··· 166 .num_resources = 0, 167 }; 168 169 + static struct resource ts72xx_wdt_resources[] = { 170 + { 171 + .start = TS72XX_WDT_CONTROL_PHYS_BASE, 172 + .end = TS72XX_WDT_CONTROL_PHYS_BASE + SZ_4K - 1, 173 + .flags = IORESOURCE_MEM, 174 + }, 175 + { 176 + .start = TS72XX_WDT_FEED_PHYS_BASE, 177 + .end = TS72XX_WDT_FEED_PHYS_BASE + SZ_4K - 1, 178 + .flags = IORESOURCE_MEM, 179 + }, 180 + }; 181 + 182 + static struct platform_device ts72xx_wdt_device = { 183 + .name = "ts72xx-wdt", 184 + .id = -1, 185 + .num_resources = ARRAY_SIZE(ts72xx_wdt_resources), 186 + .resource = ts72xx_wdt_resources, 187 + }; 188 + 189 static struct ep93xx_eth_data ts72xx_eth_data = { 190 .phy_id = 1, 191 }; ··· 175 ep93xx_init_devices(); 176 ts72xx_register_flash(); 177 platform_device_register(&ts72xx_rtc_device); 178 + platform_device_register(&ts72xx_wdt_device); 179 180 ep93xx_register_eth(&ts72xx_eth_data, 1); 181 }