mpc85xx: Copy over kernel 5.10 patches and config to 5.15
[openwrt/openwrt.git] / target / linux / mpc85xx / patches-5.15 / 100-powerpc-85xx-tl-wdr4900-v1-support.patch
1 From 1d9f596e572917772b87a2a37e1680902964782f Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 20 Feb 2013 08:40:33 +0100
4 Subject: [PATCH] powerpc: 85xx: add support for the TP-Link TL-WDR4900 v1
5 board
6
7 This patch adds support for the TP-Link TL-WDR4900 v1
8 concurrent dual-band wireless router. The devices uses
9 the Freescale P1014 SoC.
10
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
13 ---
14 arch/powerpc/boot/Makefile | 3 ++-
15 arch/powerpc/boot/wrapper | 5 +++++
16 arch/powerpc/platforms/85xx/Kconfig | 12 ++++++++++++
17 arch/powerpc/platforms/85xx/Makefile | 1 +
18 4 files changed, 20 insertions(+), 1 deletion(-)
19
20 Index: linux-5.15.67/arch/powerpc/boot/Makefile
21 ===================================================================
22 --- linux-5.15.67.orig/arch/powerpc/boot/Makefile
23 +++ linux-5.15.67/arch/powerpc/boot/Makefile
24 @@ -162,6 +162,7 @@ src-plat-$(CONFIG_PPC_PSERIES) += pserie
25 src-plat-$(CONFIG_PPC_POWERNV) += pseries-head.S
26 src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
27 src-plat-$(CONFIG_MVME7100) += motload-head.S mvme7100.c
28 +src-plat-$(CONFIG_TL_WDR4900_V1) += simpleboot.c fixed-head.S
29
30 src-plat-$(CONFIG_PPC_MICROWATT) += fixed-head.S microwatt.c
31
32 @@ -342,7 +343,7 @@ image-$(CONFIG_TQM8548) += cuImage.tqm
33 image-$(CONFIG_TQM8555) += cuImage.tqm8555
34 image-$(CONFIG_TQM8560) += cuImage.tqm8560
35 image-$(CONFIG_KSI8560) += cuImage.ksi8560
36 -
37 +image-$(CONFIG_TL_WDR4900_V1) += simpleImage.tl-wdr4900-v1
38 # Board ports in arch/powerpc/platform/86xx/Kconfig
39 image-$(CONFIG_MVME7100) += dtbImage.mvme7100
40
41 Index: linux-5.15.67/arch/powerpc/boot/wrapper
42 ===================================================================
43 --- linux-5.15.67.orig/arch/powerpc/boot/wrapper
44 +++ linux-5.15.67/arch/powerpc/boot/wrapper
45 @@ -326,6 +326,11 @@ adder875-redboot)
46 platformo="$object/fixed-head.o $object/redboot-8xx.o"
47 binary=y
48 ;;
49 +simpleboot-tl-wdr4900-v1)
50 + platformo="$object/fixed-head.o $object/simpleboot.o"
51 + link_address='0x1000000'
52 + binary=y
53 + ;;
54 simpleboot-*)
55 platformo="$object/fixed-head.o $object/simpleboot.o"
56 binary=y
57 Index: linux-5.15.67/arch/powerpc/platforms/85xx/Kconfig
58 ===================================================================
59 --- linux-5.15.67.orig/arch/powerpc/platforms/85xx/Kconfig
60 +++ linux-5.15.67/arch/powerpc/platforms/85xx/Kconfig
61 @@ -170,6 +170,18 @@ config STX_GP3
62 select CPM2
63 select DEFAULT_UIMAGE
64
65 +config TL_WDR4900_V1
66 + bool "TP-Link TL-WDR4900 v1"
67 + select DEFAULT_UIMAGE
68 + select ARCH_REQUIRE_GPIOLIB
69 + select GPIO_MPC8XXX
70 + select SWIOTLB
71 + help
72 + This option enables support for the TP-Link TL-WDR4900 v1 board.
73 +
74 + This board is a Concurrent Dual-Band wireless router with a
75 + Freescale P1014 SoC.
76 +
77 config TQM8540
78 bool "TQ Components TQM8540"
79 help
80 Index: linux-5.15.67/arch/powerpc/platforms/85xx/Makefile
81 ===================================================================
82 --- linux-5.15.67.orig/arch/powerpc/platforms/85xx/Makefile
83 +++ linux-5.15.67/arch/powerpc/platforms/85xx/Makefile
84 @@ -27,6 +27,7 @@ obj-$(CONFIG_TWR_P102x) += twr_p102x.o
85 obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
86 obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
87 obj-$(CONFIG_STX_GP3) += stx_gp3.o
88 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
89 obj-$(CONFIG_TQM85xx) += tqm85xx.o
90 obj-$(CONFIG_PPA8548) += ppa8548.o
91 obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o