diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-09-30 08:05:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-09-30 08:05:18 +0000 |
commit | 3994f8e4c3eff9b3569de0845c5e0094542e5548 (patch) | |
tree | 95159abf823bd71061938990014ccc1fe0735d0d /target/linux/ar71xx/files/arch/mips | |
parent | 5ff6932c66ce9b2b5e05c833d3d886be0b28ee17 (diff) | |
download | mtk-20170518-3994f8e4c3eff9b3569de0845c5e0094542e5548.zip mtk-20170518-3994f8e4c3eff9b3569de0845c5e0094542e5548.tar.gz mtk-20170518-3994f8e4c3eff9b3569de0845c5e0094542e5548.tar.bz2 |
add hardware watchdog driver
SVN-Revision: 12810
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-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 c88225c..52fcf50 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 ce98084..b131ec1 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; |