kernel: bump 5.4 to 5.4.24
[openwrt/openwrt.git] / target / linux / mpc85xx / patches-5.4 / 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 --- a/arch/powerpc/boot/Makefile
21 +++ b/arch/powerpc/boot/Makefile
22 @@ -161,6 +161,7 @@ src-plat-$(CONFIG_PPC_PSERIES) += pserie
23 src-plat-$(CONFIG_PPC_POWERNV) += pseries-head.S
24 src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
25 src-plat-$(CONFIG_MVME7100) += motload-head.S mvme7100.c
26 +src-plat-$(CONFIG_TL_WDR4900_V1) += simpleboot.c fixed-head.S
27
28 src-wlib := $(sort $(src-wlib-y))
29 src-plat := $(sort $(src-plat-y))
30 @@ -342,7 +343,7 @@ image-$(CONFIG_TQM8555) += cuImage.tqm
31 image-$(CONFIG_TQM8560) += cuImage.tqm8560
32 image-$(CONFIG_SBC8548) += cuImage.sbc8548
33 image-$(CONFIG_KSI8560) += cuImage.ksi8560
34 -
35 +image-$(CONFIG_TL_WDR4900_V1) += simpleImage.tl-wdr4900-v1
36 # Board ports in arch/powerpc/platform/86xx/Kconfig
37 image-$(CONFIG_MVME7100) += dtbImage.mvme7100
38
39 --- a/arch/powerpc/boot/wrapper
40 +++ b/arch/powerpc/boot/wrapper
41 @@ -323,6 +323,11 @@ adder875-redboot)
42 platformo="$object/fixed-head.o $object/redboot-8xx.o"
43 binary=y
44 ;;
45 +simpleboot-tl-wdr4900-v1)
46 + platformo="$object/fixed-head.o $object/simpleboot.o"
47 + link_address='0x1000000'
48 + binary=y
49 + ;;
50 simpleboot-virtex405-*)
51 platformo="$object/virtex405-head.o $object/simpleboot.o $object/virtex.o"
52 binary=y
53 --- a/arch/powerpc/platforms/85xx/Kconfig
54 +++ b/arch/powerpc/platforms/85xx/Kconfig
55 @@ -170,6 +170,18 @@ config STX_GP3
56 select CPM2
57 select DEFAULT_UIMAGE
58
59 +config TL_WDR4900_V1
60 + bool "TP-Link TL-WDR4900 v1"
61 + select DEFAULT_UIMAGE
62 + select ARCH_REQUIRE_GPIOLIB
63 + select GPIO_MPC8XXX
64 + select SWIOTLB
65 + help
66 + This option enables support for the TP-Link TL-WDR4900 v1 board.
67 +
68 + This board is a Concurrent Dual-Band wireless router with a
69 + Freescale P1014 SoC.
70 +
71 config TQM8540
72 bool "TQ Components TQM8540"
73 help
74 --- a/arch/powerpc/platforms/85xx/Makefile
75 +++ b/arch/powerpc/platforms/85xx/Makefile
76 @@ -26,6 +26,7 @@ obj-$(CONFIG_CORENET_GENERIC) += coren
77 obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
78 obj-$(CONFIG_STX_GP3) += stx_gp3.o
79 obj-$(CONFIG_TQM85xx) += tqm85xx.o
80 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
81 obj-$(CONFIG_SBC8548) += sbc8548.o
82 obj-$(CONFIG_PPA8548) += ppa8548.o
83 obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o