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