0028-squash-include-ARCH_BCM2708-ARCH_BCM2709.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. From 06d95a4dd349c4d5f6b52e657ffd1a27e4df3faf Mon Sep 17 00:00:00 2001
  2. From: popcornmix <popcornmix@gmail.com>
  3. Date: Wed, 11 Nov 2015 21:01:15 +0000
  4. Subject: [PATCH 028/381] squash: include ARCH_BCM2708 / ARCH_BCM2709
  5. ---
  6. drivers/char/hw_random/Kconfig | 2 +-
  7. drivers/mailbox/Kconfig | 2 +-
  8. drivers/mailbox/bcm2835-mailbox.c | 18 ++++++++++++++++--
  9. drivers/pinctrl/Makefile | 1 +
  10. drivers/pwm/Kconfig | 2 +-
  11. drivers/spi/Kconfig | 2 +-
  12. drivers/watchdog/Kconfig | 2 +-
  13. sound/soc/bcm/Kconfig | 2 +-
  14. 8 files changed, 23 insertions(+), 8 deletions(-)
  15. --- a/drivers/char/hw_random/Kconfig
  16. +++ b/drivers/char/hw_random/Kconfig
  17. @@ -90,7 +90,7 @@ config HW_RANDOM_BCM63XX
  18. config HW_RANDOM_BCM2835
  19. tristate "Broadcom BCM2835 Random Number Generator support"
  20. - depends on ARCH_BCM2835
  21. + depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
  22. default HW_RANDOM
  23. ---help---
  24. This driver provides kernel-side support for the Random Number
  25. --- a/drivers/mailbox/Kconfig
  26. +++ b/drivers/mailbox/Kconfig
  27. @@ -65,7 +65,7 @@ config ALTERA_MBOX
  28. config BCM2835_MBOX
  29. tristate "BCM2835 Mailbox"
  30. - depends on ARCH_BCM2835
  31. + depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
  32. help
  33. An implementation of the BCM2385 Mailbox. It is used to invoke
  34. the services of the Videocore. Say Y here if you want to use the
  35. --- a/drivers/mailbox/bcm2835-mailbox.c
  36. +++ b/drivers/mailbox/bcm2835-mailbox.c
  37. @@ -51,12 +51,15 @@
  38. #define MAIL1_WRT (ARM_0_MAIL1 + 0x00)
  39. #define MAIL1_STA (ARM_0_MAIL1 + 0x18)
  40. +/* On ARCH_BCM270x these come through <linux/interrupt.h> (arm_control.h ) */
  41. +#ifndef ARM_MS_FULL
  42. /* Status register: FIFO state. */
  43. #define ARM_MS_FULL BIT(31)
  44. #define ARM_MS_EMPTY BIT(30)
  45. /* Configuration register: Enable interrupts. */
  46. #define ARM_MC_IHAVEDATAIRQEN BIT(0)
  47. +#endif
  48. struct bcm2835_mbox {
  49. void __iomem *regs;
  50. @@ -151,7 +154,7 @@ static int bcm2835_mbox_probe(struct pla
  51. return -ENOMEM;
  52. spin_lock_init(&mbox->lock);
  53. - ret = devm_request_irq(dev, irq_of_parse_and_map(dev->of_node, 0),
  54. + ret = devm_request_irq(dev, platform_get_irq(pdev, 0),
  55. bcm2835_mbox_irq, 0, dev_name(dev), mbox);
  56. if (ret) {
  57. dev_err(dev, "Failed to register a mailbox IRQ handler: %d\n",
  58. @@ -209,7 +212,18 @@ static struct platform_driver bcm2835_mb
  59. .probe = bcm2835_mbox_probe,
  60. .remove = bcm2835_mbox_remove,
  61. };
  62. -module_platform_driver(bcm2835_mbox_driver);
  63. +
  64. +static int __init bcm2835_mbox_init(void)
  65. +{
  66. + return platform_driver_register(&bcm2835_mbox_driver);
  67. +}
  68. +arch_initcall(bcm2835_mbox_init);
  69. +
  70. +static void __init bcm2835_mbox_exit(void)
  71. +{
  72. + platform_driver_unregister(&bcm2835_mbox_driver);
  73. +}
  74. +module_exit(bcm2835_mbox_exit);
  75. MODULE_AUTHOR("Lubomir Rintel <lkundrak@v3.sk>");
  76. MODULE_DESCRIPTION("BCM2835 mailbox IPC driver");
  77. --- a/drivers/pinctrl/Makefile
  78. +++ b/drivers/pinctrl/Makefile
  79. @@ -40,6 +40,7 @@ obj-$(CONFIG_PINCTRL_TB10X) += pinctrl-t
  80. obj-$(CONFIG_PINCTRL_ST) += pinctrl-st.o
  81. obj-$(CONFIG_PINCTRL_ZYNQ) += pinctrl-zynq.o
  82. +obj-$(CONFIG_ARCH_BCM2708)$(CONFIG_ARCH_BCM2709) += bcm/
  83. obj-$(CONFIG_ARCH_BCM) += bcm/
  84. obj-$(CONFIG_ARCH_BERLIN) += berlin/
  85. obj-y += freescale/
  86. --- a/drivers/pwm/Kconfig
  87. +++ b/drivers/pwm/Kconfig
  88. @@ -85,7 +85,7 @@ config PWM_BCM_KONA
  89. config PWM_BCM2835
  90. tristate "BCM2835 PWM support"
  91. - depends on ARCH_BCM2835
  92. + depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
  93. help
  94. PWM framework driver for BCM2835 controller (Raspberry Pi)
  95. --- a/drivers/spi/Kconfig
  96. +++ b/drivers/spi/Kconfig
  97. @@ -78,7 +78,7 @@ config SPI_ATMEL
  98. config SPI_BCM2835
  99. tristate "BCM2835 SPI controller"
  100. depends on GPIOLIB
  101. - depends on ARCH_BCM2835 || COMPILE_TEST
  102. + depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709 || COMPILE_TEST
  103. depends on GPIOLIB
  104. help
  105. This selects a driver for the Broadcom BCM2835 SPI master.
  106. --- a/drivers/watchdog/Kconfig
  107. +++ b/drivers/watchdog/Kconfig
  108. @@ -1282,7 +1282,7 @@ config BCM63XX_WDT
  109. config BCM2835_WDT
  110. tristate "Broadcom BCM2835 hardware watchdog"
  111. - depends on ARCH_BCM2835
  112. + depends on ARCH_BCM2835 || ARCH_BCM2708 || ARCH_BCM2709
  113. select WATCHDOG_CORE
  114. help
  115. Watchdog driver for the built in watchdog hardware in Broadcom
  116. --- a/sound/soc/bcm/Kconfig
  117. +++ b/sound/soc/bcm/Kconfig
  118. @@ -1,6 +1,6 @@
  119. config SND_BCM2835_SOC_I2S
  120. tristate "SoC Audio support for the Broadcom BCM2835 I2S module"
  121. - depends on ARCH_BCM2835 || COMPILE_TEST
  122. + depends on ARCH_BCM2835 || MACH_BCM2708 || MACH_BCM2709 || COMPILE_TEST
  123. select SND_SOC_GENERIC_DMAENGINE_PCM
  124. select REGMAP_MMIO
  125. help