ARM: at91: make watchdog drivers soc independent
switch the watchdog drivers to resource and pass it via platform_device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
@@ -1133,10 +1133,19 @@ static void __init at91_add_device_trng(void) {}
|
||||
* -------------------------------------------------------------------- */
|
||||
|
||||
#if defined(CONFIG_AT91SAM9X_WATCHDOG) || defined(CONFIG_AT91SAM9X_WATCHDOG_MODULE)
|
||||
static struct resource wdt_resources[] = {
|
||||
{
|
||||
.start = AT91SAM9G45_BASE_WDT,
|
||||
.end = AT91SAM9G45_BASE_WDT + SZ_16 - 1,
|
||||
.flags = IORESOURCE_MEM,
|
||||
}
|
||||
};
|
||||
|
||||
static struct platform_device at91sam9g45_wdt_device = {
|
||||
.name = "at91_wdt",
|
||||
.id = -1,
|
||||
.num_resources = 0,
|
||||
.resource = wdt_resources,
|
||||
.num_resources = ARRAY_SIZE(wdt_resources),
|
||||
};
|
||||
|
||||
static void __init at91_add_device_watchdog(void)
|
||||
|
Reference in New Issue
Block a user