From b66b7bc87e67c332698db2b31ea542bbc6f88911 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 30 Sep 2008 08:05:18 +0000 Subject: [ar71xx] add hardware watchdog driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12810 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c | 9 +++++++++ target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 6 ++++++ 2 files changed, 15 insertions(+) (limited to 'target/linux/ar71xx/files/arch') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c index c88225c5f..52fcf5084 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c @@ -16,10 +16,19 @@ #include void __iomem *ar71xx_ddr_base; +EXPORT_SYMBOL_GPL(ar71xx_ddr_base); + void __iomem *ar71xx_pll_base; +EXPORT_SYMBOL_GPL(ar71xx_pll_base); + void __iomem *ar71xx_reset_base; +EXPORT_SYMBOL_GPL(ar71xx_reset_base); + void __iomem *ar71xx_gpio_base; +EXPORT_SYMBOL_GPL(ar71xx_gpio_base); + void __iomem *ar71xx_usb_ctrl_base; +EXPORT_SYMBOL_GPL(ar71xx_usb_ctrl_base); void ar71xx_device_stop(u32 mask) { diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c index ce98084d6..b131ec1e2 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c @@ -414,6 +414,11 @@ err_free_buttons: kfree(p); } +void __init ar71xx_add_device_wdt(void) +{ + platform_device_register_simple("ar71xx-wdt", -1, NULL, 0); +} + void __init ar71xx_set_mac_base(unsigned char *mac) { memcpy(ar71xx_mac_base, mac, ETH_ALEN); @@ -439,6 +444,7 @@ static int __init ar71xx_machine_setup(void) ar71xx_gpio_init(); ar71xx_add_device_uart(); + ar71xx_add_device_wdt(); mips_machine_setup(); return 0; -- cgit v1.2.3