aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/orion/patches-4.14/210-wn802t_support.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-05-11 13:51:08 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-08 16:45:08 +0100
commit2a0e0dec02accb77163d8251e1be4fdaa538d8e9 (patch)
tree89a24bd7e6b0ae422c3ed1a345177d6b1fe95cf0 /target/linux/orion/patches-4.14/210-wn802t_support.patch
parent0a85fcc627098f078b997e9b8b74d1839710bc49 (diff)
downloadupstream-2a0e0dec02accb77163d8251e1be4fdaa538d8e9.tar.gz
upstream-2a0e0dec02accb77163d8251e1be4fdaa538d8e9.tar.bz2
upstream-2a0e0dec02accb77163d8251e1be4fdaa538d8e9.zip
orion: update kernel to version 4.14
This adds support for kernel 4.14 to the target and directly make it the default kernel version to use. This patch is build-tested only, but has never been device-tested. It is only added to preserve the changes in Git history prior to removing this target. Use it with care. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [rebased and extended commit message, refreshed patches for 4.14.162] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/orion/patches-4.14/210-wn802t_support.patch')
-rw-r--r--target/linux/orion/patches-4.14/210-wn802t_support.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/target/linux/orion/patches-4.14/210-wn802t_support.patch b/target/linux/orion/patches-4.14/210-wn802t_support.patch
new file mode 100644
index 0000000000..2a3393f283
--- /dev/null
+++ b/target/linux/orion/patches-4.14/210-wn802t_support.patch
@@ -0,0 +1,72 @@
+--- a/arch/arm/mach-orion5x/Kconfig
++++ b/arch/arm/mach-orion5x/Kconfig
+@@ -150,10 +150,13 @@ config MACH_MSS2_DT
+ Maxtor Shared Storage II platform.
+
+ config MACH_WNR854T
+- bool "Netgear WNR854T"
++ bool "Netgear WNR854T / WN802T"
+ help
+ Say 'Y' here if you want your kernel to support the
+- Netgear WNR854T platform.
++ Netgear WNR854T or WN802T platform.
++
++config MACH_WN802T
++ def_bool MACH_WNR854T
+
+ config MACH_RD88F5181L_GE
+ bool "Marvell Orion-VoIP GE Reference Design"
+--- a/arch/arm/mach-orion5x/wnr854t-setup.c
++++ b/arch/arm/mach-orion5x/wnr854t-setup.c
+@@ -110,6 +110,11 @@ static struct dsa_chip_data wnr854t_swit
+ .port_names[7] = "lan2",
+ };
+
++static struct dsa_chip_data wn802t_switch_chip_data = {
++ .port_names[2] = "wan",
++ .port_names[3] = "cpu",
++};
++
+ static void __init wnr854t_init(void)
+ {
+ /*
+@@ -123,7 +128,10 @@ static void __init wnr854t_init(void)
+ * Configure peripherals.
+ */
+ orion5x_eth_init(&wnr854t_eth_data);
+- orion5x_eth_switch_init(&wnr854t_switch_chip_data);
++ if (machine_is_wn802t())
++ orion5x_eth_switch_init(&wn802t_switch_chip_data);
++ else
++ orion5x_eth_switch_init(&wnr854t_switch_chip_data);
+ orion5x_uart0_init();
+
+ mvebu_mbus_add_window_by_id(ORION_MBUS_DEVBUS_BOOT_TARGET,
+@@ -163,7 +171,7 @@ static struct hw_pci wnr854t_pci __initd
+
+ static int __init wnr854t_pci_init(void)
+ {
+- if (machine_is_wnr854t())
++ if (machine_is_wnr854t() || machine_is_wn802t())
+ pci_common_init(&wnr854t_pci);
+
+ return 0;
+@@ -177,6 +185,18 @@ MACHINE_START(WNR854T, "Netgear WNR854T"
+ .init_machine = wnr854t_init,
+ .map_io = orion5x_map_io,
+ .init_early = orion5x_init_early,
++ .init_irq = orion5x_init_irq,
++ .init_time = orion5x_timer_init,
++ .fixup = tag_fixup_mem32,
++ .restart = orion5x_restart,
++MACHINE_END
++
++MACHINE_START(WN802T, "Netgear WN802T")
++ /* Maintainer: Imre Kaloz <kaloz@openwrt.org> */
++ .atag_offset = 0x100,
++ .init_machine = wnr854t_init,
++ .map_io = orion5x_map_io,
++ .init_early = orion5x_init_early,
+ .init_irq = orion5x_init_irq,
+ .init_time = orion5x_timer_init,
+ .fixup = tag_fixup_mem32,