aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:04 +0000
commit892ef42a7701a50dd05168575f6b13650a1bc9a1 (patch)
tree83329867de519de92560c71221db59024f917c85 /target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
parentcd4462326c2870d40d6aca47f5fa93d318718c87 (diff)
downloadupstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.tar.gz
upstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.tar.bz2
upstream-892ef42a7701a50dd05168575f6b13650a1bc9a1.zip
atheros: v3.18: remap main SoC MMR memory
Honestly remap main SoC MMR mem and use accessor functions to interact with registers. Now registers defined relatively to base address (e.g. SDRAM controller base address). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44723
Diffstat (limited to 'target/linux/atheros/patches-3.18/103-ar2315_gpio.patch')
-rw-r--r--target/linux/atheros/patches-3.18/103-ar2315_gpio.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
index 5c72ee1fbf..f0ab110400 100644
--- a/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
+++ b/target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
@@ -8,7 +8,7 @@
default y
--- a/arch/mips/ath25/ar2315.c
+++ b/arch/mips/ath25/ar2315.c
-@@ -204,6 +204,34 @@ static struct platform_device ar2315_wdt
+@@ -225,6 +225,34 @@ static struct platform_device ar2315_wdt
.num_resources = ARRAY_SIZE(ar2315_wdt_res)
};
@@ -16,8 +16,8 @@
+ {
+ .name = "ar2315-gpio",
+ .flags = IORESOURCE_MEM,
-+ .start = AR2315_GPIO,
-+ .end = AR2315_GPIO + 0x10 - 1,
++ .start = AR2315_RST_BASE + AR2315_GPIO,
++ .end = AR2315_RST_BASE + AR2315_GPIO + 0x10 - 1,
+ },
+ {
+ .name = "ar2315-gpio",
@@ -43,7 +43,7 @@
/*
* NB: We use mapping size that is larger than the actual flash size,
* but this shouldn't be a problem here, because the flash will simply
-@@ -264,6 +292,7 @@ void __init ar2315_init_devices(void)
+@@ -285,6 +313,7 @@ void __init ar2315_init_devices(void)
ath25_find_config(ar2315_flash_limit());
ar2315_eth_data.macaddr = ath25_board.config->enet0_mac;