kernel: bump 4.14 to 4.14.125 (FS#2305 FS#2297)
[openwrt/openwrt.git] / target / linux / mpc85xx / patches-4.14 / 100-powerpc-85xx-tl-wdr4900-v1-support.patch
1 From 53bc6ae5da3b2902581c30ac2568f51ce35e7624 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 | 11 +++++++++++
17 arch/powerpc/platforms/85xx/Makefile | 1 +
18 4 files changed, 19 insertions(+), 1 deletion(-)
19
20 --- a/arch/powerpc/boot/Makefile
21 +++ b/arch/powerpc/boot/Makefile
22 @@ -156,6 +156,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 @@ -335,7 +336,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 @@ -302,6 +302,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,17 @@ 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 + help
65 + This option enables support for the TP-Link TL-WDR4900 v1 board.
66 +
67 + This board is a Concurrent Dual-Band wireless router with a
68 + Freescale P1014 SoC.
69 +
70 config TQM8540
71 bool "TQ Components TQM8540"
72 help
73 --- a/arch/powerpc/platforms/85xx/Makefile
74 +++ b/arch/powerpc/platforms/85xx/Makefile
75 @@ -26,6 +26,7 @@ obj-$(CONFIG_CORENET_GENERIC) += coren
76 obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
77 obj-$(CONFIG_STX_GP3) += stx_gp3.o
78 obj-$(CONFIG_TQM85xx) += tqm85xx.o
79 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
80 obj-$(CONFIG_SBC8548) += sbc8548.o
81 obj-$(CONFIG_PPA8548) += ppa8548.o
82 obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o