diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-30 08:05:18 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-30 08:05:18 +0000 |
commit | b66b7bc87e67c332698db2b31ea542bbc6f88911 (patch) | |
tree | 8e6a087386ec26cba87b6e936ed4dc56fda8a138 /target/linux/ar71xx/files/arch | |
parent | 85aaffee6587d6189e1eb011a54b5ca557590e46 (diff) |
[ar71xx] add hardware watchdog driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12810 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c | 9 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 6 |
2 files changed, 15 insertions, 0 deletions
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 <asm/mach-ar71xx/ar71xx.h> 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; |