0032-MIPS-ath79-sanitize-symbols.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. From 3fc8585cf76022dba7496627074d42af88c30718 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <john@phrozen.org>
  3. Date: Sat, 23 Jun 2018 15:16:55 +0200
  4. Subject: [PATCH 32/33] MIPS: ath79: sanitize symbols
  5. We no longer need to select which SoCs are supported as the whole arch
  6. code is always built. So lets drop all the SoC symbols
  7. Signed-off-by: John Crispin <john@phrozen.org>
  8. ---
  9. arch/mips/Kconfig | 2 ++
  10. arch/mips/ath79/Kconfig | 44 +++++---------------------------------------
  11. arch/mips/pci/Makefile | 2 +-
  12. 3 files changed, 8 insertions(+), 40 deletions(-)
  13. --- a/arch/mips/Kconfig
  14. +++ b/arch/mips/Kconfig
  15. @@ -203,6 +203,8 @@ config ATH79
  16. select SYS_SUPPORTS_BIG_ENDIAN
  17. select SYS_SUPPORTS_MIPS16
  18. select SYS_SUPPORTS_ZBOOT_UART_PROM
  19. + select HW_HAS_PCI
  20. + select USB_ARCH_HAS_EHCI
  21. select USE_OF
  22. help
  23. Support for the Atheros AR71XX/AR724X/AR913X SoCs.
  24. --- a/arch/mips/ath79/Kconfig
  25. +++ b/arch/mips/ath79/Kconfig
  26. @@ -1,48 +1,14 @@
  27. # SPDX-License-Identifier: GPL-2.0
  28. if ATH79
  29. -config SOC_AR71XX
  30. - select HW_HAS_PCI
  31. - def_bool n
  32. -
  33. -config SOC_AR724X
  34. - select HW_HAS_PCI
  35. - select PCI_AR724X if PCI
  36. - def_bool n
  37. -
  38. -config SOC_AR913X
  39. - def_bool n
  40. -
  41. -config SOC_AR933X
  42. - def_bool n
  43. -
  44. -config SOC_AR934X
  45. - select HW_HAS_PCI
  46. - select PCI_AR724X if PCI
  47. - def_bool n
  48. -
  49. -config SOC_QCA955X
  50. - select HW_HAS_PCI
  51. - select PCI_AR724X if PCI
  52. +config PCI_AR71XX
  53. + bool "PCI support for AR7100 type SoCs"
  54. + depends on PCI
  55. def_bool n
  56. config PCI_AR724X
  57. - def_bool n
  58. -
  59. -config ATH79_DEV_GPIO_BUTTONS
  60. - def_bool n
  61. -
  62. -config ATH79_DEV_LEDS_GPIO
  63. - def_bool n
  64. -
  65. -config ATH79_DEV_SPI
  66. - def_bool n
  67. -
  68. -config ATH79_DEV_USB
  69. - def_bool n
  70. -
  71. -config ATH79_DEV_WMAC
  72. - depends on (SOC_AR913X || SOC_AR933X || SOC_AR934X || SOC_QCA955X)
  73. + bool "PCI support for AR724x type SoCs"
  74. + depends on PCI
  75. def_bool n
  76. endif
  77. --- a/arch/mips/pci/Makefile
  78. +++ b/arch/mips/pci/Makefile
  79. @@ -23,7 +23,7 @@ obj-$(CONFIG_BCM63XX) += pci-bcm63xx.o
  80. ops-bcm63xx.o
  81. obj-$(CONFIG_MIPS_ALCHEMY) += pci-alchemy.o
  82. obj-$(CONFIG_PCI_AR2315) += pci-ar2315.o
  83. -obj-$(CONFIG_SOC_AR71XX) += pci-ar71xx.o
  84. +obj-$(CONFIG_PCI_AR71XX) += pci-ar71xx.o
  85. obj-$(CONFIG_PCI_AR724X) += pci-ar724x.o
  86. obj-$(CONFIG_MIPS_PCI_VIRTIO) += pci-virtio-guest.o
  87. #