100-powerpc-85xx-tl-wdr4900-v1-support.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. This patch adds support for the TP-Link TL-WDR4900 v1
  7. concurrent dual-band wireless router. The devices uses
  8. the Freescale P1014 SoC.
  9. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  10. ---
  11. arch/powerpc/boot/Makefile | 3 +
  12. arch/powerpc/boot/wrapper | 4 +
  13. arch/powerpc/platforms/85xx/Kconfig | 11 ++
  14. arch/powerpc/platforms/85xx/Makefile | 1 +
  15. --- a/arch/powerpc/boot/Makefile
  16. +++ b/arch/powerpc/boot/Makefile
  17. @@ -114,6 +114,7 @@ src-plat-$(CONFIG_PPC_PSERIES) += pserie
  18. src-plat-$(CONFIG_PPC_POWERNV) += pseries-head.S
  19. src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
  20. src-plat-$(CONFIG_PPC_CELL_QPACE) += pseries-head.S
  21. +src-plat-$(CONFIG_TL_WDR4900_V1) += cuboot-tl-wdr4900-v1.c
  22. src-wlib := $(sort $(src-wlib-y))
  23. src-plat := $(sort $(src-plat-y))
  24. @@ -297,6 +298,7 @@ image-$(CONFIG_TQM8555) += cuImage.tqm
  25. image-$(CONFIG_TQM8560) += cuImage.tqm8560
  26. image-$(CONFIG_SBC8548) += cuImage.sbc8548
  27. image-$(CONFIG_KSI8560) += cuImage.ksi8560
  28. +image-$(CONFIG_TL_WDR4900_V1) += cuImage.tl-wdr4900-v1
  29. # Board ports in arch/powerpc/platform/embedded6xx/Kconfig
  30. image-$(CONFIG_STORCENTER) += cuImage.storcenter
  31. --- a/arch/powerpc/boot/wrapper
  32. +++ b/arch/powerpc/boot/wrapper
  33. @@ -235,6 +235,10 @@ cuboot*)
  34. *-mpc85*|*-tqm85*|*-sbc85*)
  35. platformo=$object/cuboot-85xx.o
  36. ;;
  37. + *-tl-wdr4900-v1)
  38. + platformo=$object/cuboot-tl-wdr4900-v1.o
  39. + link_address='0x1000000'
  40. + ;;
  41. *-amigaone)
  42. link_address='0x800000'
  43. ;;
  44. --- a/arch/powerpc/platforms/85xx/Kconfig
  45. +++ b/arch/powerpc/platforms/85xx/Kconfig
  46. @@ -168,6 +168,17 @@ config STX_GP3
  47. select CPM2
  48. select DEFAULT_UIMAGE
  49. +config TL_WDR4900_V1
  50. + bool "TP-Link TL-WDR4900 v1"
  51. + select DEFAULT_UIMAGE
  52. + select ARCH_REQUIRE_GPIOLIB
  53. + select GPIO_MPC8XXX
  54. + help
  55. + This option enables support for the TP-Link TL-WDR4900 v1 board.
  56. +
  57. + This board is a Concurrent Dual-Band wireless router with a
  58. + Freescale P1014 SoC.
  59. +
  60. config TQM8540
  61. bool "TQ Components TQM8540"
  62. help
  63. --- a/arch/powerpc/platforms/85xx/Makefile
  64. +++ b/arch/powerpc/platforms/85xx/Makefile
  65. @@ -23,6 +23,7 @@ obj-$(CONFIG_TWR_P102x) += twr_p102x.o
  66. obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
  67. obj-$(CONFIG_STX_GP3) += stx_gp3.o
  68. obj-$(CONFIG_TQM85xx) += tqm85xx.o
  69. +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
  70. obj-$(CONFIG_SBC8548) += sbc8548.o
  71. obj-$(CONFIG_PPA8548) += ppa8548.o
  72. obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o