From 4f05d696ad1ca1a85080ece6092d41410ced31ed Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 17 Jul 2014 16:36:13 +0000 Subject: atheros[ar2315-wdt]: update I/O handling * Pass iomem and IRQ via platform device resources * Remap iomem and use iowrite32 accessor function Signed-off-by: Sergey Ryazanov SVN-Revision: 41688 --- target/linux/atheros/patches-3.10/100-board.patch | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'target/linux/atheros/patches-3.10/100-board.patch') diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 316982753c..28c93bee8b 100644 --- a/target/linux/atheros/patches-3.10/100-board.patch +++ b/target/linux/atheros/patches-3.10/100-board.patch @@ -2134,7 +2134,7 @@ + --- /dev/null +++ b/arch/mips/ar231x/ar2315.c -@@ -0,0 +1,624 @@ +@@ -0,0 +1,639 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -2524,9 +2524,24 @@ + .num_resources = ARRAY_SIZE(ar2315_spiflash_res) +}; + ++static struct resource ar2315_wdt_res[] = { ++ { ++ .flags = IORESOURCE_MEM, ++ .start = AR2315_WD, ++ .end = AR2315_WD + 8 - 1, ++ }, ++ { ++ .flags = IORESOURCE_IRQ, ++ .start = AR531X_MISC_IRQ_WATCHDOG, ++ .end = AR531X_MISC_IRQ_WATCHDOG, ++ } ++}; ++ +static struct platform_device ar2315_wdt = { + .id = 0, + .name = "ar2315-wdt", ++ .resource = ar2315_wdt_res, ++ .num_resources = ARRAY_SIZE(ar2315_wdt_res) +}; + +/* -- cgit v1.2.3