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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. From 1d9f596e572917772b87a2a37e1680902964782f Mon Sep 17 00:00:00 2001
  2. From: Gabor Juhos <[email protected]>
  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 <[email protected]>
  10. Signed-off-by: Pawel Dembicki <[email protected]>
  11. ---
  12. arch/powerpc/boot/Makefile | 3 ++-
  13. arch/powerpc/boot/wrapper | 5 +++++
  14. arch/powerpc/platforms/85xx/Kconfig | 12 ++++++++++++
  15. arch/powerpc/platforms/85xx/Makefile | 1 +
  16. 4 files changed, 20 insertions(+), 1 deletion(-)
  17. --- a/arch/powerpc/boot/Makefile
  18. +++ b/arch/powerpc/boot/Makefile
  19. @@ -179,6 +179,7 @@ src-plat-$(CONFIG_PPC_PSERIES) += pserie
  20. src-plat-$(CONFIG_PPC_POWERNV) += pseries-head.S
  21. src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
  22. src-plat-$(CONFIG_MVME7100) += motload-head.S mvme7100.c
  23. +src-plat-$(CONFIG_TL_WDR4900_V1) += simpleboot.c fixed-head.S
  24. src-plat-$(CONFIG_PPC_MICROWATT) += fixed-head.S microwatt.c
  25. @@ -359,7 +360,7 @@ image-$(CONFIG_TQM8548) += cuImage.tqm
  26. image-$(CONFIG_TQM8555) += cuImage.tqm8555
  27. image-$(CONFIG_TQM8560) += cuImage.tqm8560
  28. image-$(CONFIG_KSI8560) += cuImage.ksi8560
  29. -
  30. +image-$(CONFIG_TL_WDR4900_V1) += simpleImage.tl-wdr4900-v1
  31. # Board ports in arch/powerpc/platform/86xx/Kconfig
  32. image-$(CONFIG_MVME7100) += dtbImage.mvme7100
  33. --- a/arch/powerpc/boot/wrapper
  34. +++ b/arch/powerpc/boot/wrapper
  35. @@ -341,6 +341,11 @@ adder875-redboot)
  36. platformo="$object/fixed-head.o $object/redboot-8xx.o"
  37. binary=y
  38. ;;
  39. +simpleboot-tl-wdr4900-v1)
  40. + platformo="$object/fixed-head.o $object/simpleboot.o"
  41. + link_address='0x1500000'
  42. + binary=y
  43. + ;;
  44. simpleboot-*)
  45. platformo="$object/fixed-head.o $object/simpleboot.o"
  46. binary=y
  47. --- a/arch/powerpc/platforms/85xx/Kconfig
  48. +++ b/arch/powerpc/platforms/85xx/Kconfig
  49. @@ -163,6 +163,18 @@ config STX_GP3
  50. select CPM2
  51. select DEFAULT_UIMAGE
  52. +config TL_WDR4900_V1
  53. + bool "TP-Link TL-WDR4900 v1"
  54. + select DEFAULT_UIMAGE
  55. + select ARCH_REQUIRE_GPIOLIB
  56. + select GPIO_MPC8XXX
  57. + select SWIOTLB
  58. + help
  59. + This option enables support for the TP-Link TL-WDR4900 v1 board.
  60. +
  61. + This board is a Concurrent Dual-Band wireless router with a
  62. + Freescale P1014 SoC.
  63. +
  64. config TQM8540
  65. bool "TQ Components TQM8540"
  66. help
  67. --- a/arch/powerpc/platforms/85xx/Makefile
  68. +++ b/arch/powerpc/platforms/85xx/Makefile
  69. @@ -27,6 +27,7 @@ obj-$(CONFIG_TWR_P102x) += twr_p102x.o
  70. obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
  71. obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
  72. obj-$(CONFIG_STX_GP3) += stx_gp3.o
  73. +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
  74. obj-$(CONFIG_TQM85xx) += tqm85xx.o
  75. obj-$(CONFIG_PPA8548) += ppa8548.o
  76. obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o