mpc85xx: move newly created files from patch files to files directory
[openwrt.git] / target / linux / mpc85xx / patches-3.18 / 140-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 @@ -112,6 +112,7 @@ src-plat-$(CONFIG_PPC_POWERNV) += pserie
21  src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
22  src-plat-$(CONFIG_PPC_CELLEB) += pseries-head.S
23  src-plat-$(CONFIG_PPC_CELL_QPACE) += pseries-head.S
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 @@ -296,6 +297,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 +image-$(CONFIG_TL_WDR4900_V1)          += cuImage.tl-wdr4900-v1
33  
34  # Board ports in arch/powerpc/platform/embedded6xx/Kconfig
35  image-$(CONFIG_STORCENTER)             += cuImage.storcenter
36 --- a/arch/powerpc/boot/wrapper
37 +++ b/arch/powerpc/boot/wrapper
38 @@ -218,6 +218,10 @@ cuboot*)
39      *-mpc85*|*-tqm85*|*-sbc85*)
40          platformo=$object/cuboot-85xx.o
41          ;;
42 +    *-tl-wdr4900-v1)
43 +        platformo=$object/cuboot-tl-wdr4900-v1.o
44 +       link_address='0x1000000'
45 +        ;;
46      *-amigaone)
47          link_address='0x800000'
48          ;;
49 --- a/arch/powerpc/platforms/85xx/Kconfig
50 +++ b/arch/powerpc/platforms/85xx/Kconfig
51 @@ -168,6 +168,17 @@ config STX_GP3
52         select CPM2
53         select DEFAULT_UIMAGE
54  
55 +config TL_WDR4900_V1
56 +       bool "TP-Link TL-WDR4900 v1"
57 +       select DEFAULT_UIMAGE
58 +       select ARCH_REQUIRE_GPIOLIB
59 +       select GPIO_MPC8XXX
60 +       help
61 +         This option enables support for the TP-Link TL-WDR4900 v1 board.
62 +
63 +         This board is a Concurrent Dual-Band wireless router with a
64 +         Freescale P1014 SoC.
65 +
66  config TQM8540
67         bool "TQ Components TQM8540"
68         help
69 --- a/arch/powerpc/platforms/85xx/Makefile
70 +++ b/arch/powerpc/platforms/85xx/Makefile
71 @@ -23,6 +23,7 @@ obj-$(CONFIG_TWR_P102x)   += twr_p102x.o
72  obj-$(CONFIG_CORENET_GENERIC)   += corenet_generic.o
73  obj-$(CONFIG_STX_GP3)    += stx_gp3.o
74  obj-$(CONFIG_TQM85xx)    += tqm85xx.o
75 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
76  obj-$(CONFIG_SBC8548)     += sbc8548.o
77  obj-$(CONFIG_PPA8548)     += ppa8548.o
78  obj-$(CONFIG_SOCRATES)    += socrates.o socrates_fpga_pic.o