summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-3.10/100-board.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:13 +0000
commit4f05d696ad1ca1a85080ece6092d41410ced31ed (patch)
treea4397ea7ae94b07325f25d92cdba9fe0f6190baa /target/linux/atheros/patches-3.10/100-board.patch
parent5ea0cff89c553b008fa20d6af1ea1cb6972ab2d5 (diff)
downloadmtk-20170518-4f05d696ad1ca1a85080ece6092d41410ced31ed.zip
mtk-20170518-4f05d696ad1ca1a85080ece6092d41410ced31ed.tar.gz
mtk-20170518-4f05d696ad1ca1a85080ece6092d41410ced31ed.tar.bz2
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 <ryazanov.s.a@gmail.com> SVN-Revision: 41688
Diffstat (limited to 'target/linux/atheros/patches-3.10/100-board.patch')
-rw-r--r--target/linux/atheros/patches-3.10/100-board.patch17
1 files changed, 16 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch
index 3169827..28c93be 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)
+};
+
+/*