020-bcma-from-4.4.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. commit 55acca90da52b85299c033354e51ddaa7b73e019
  2. Author: Hante Meuleman <[email protected]>
  3. Date: Fri Sep 18 22:08:17 2015 +0200
  4. brcmfmac: Add support for the BCM4365 and BCM4366 PCIE devices.
  5. This patch adds support for the BCM4365 and BCM4366 11ac Wave2
  6. PCIE devices.
  7. Reviewed-by: Arend Van Spriel <[email protected]>
  8. Reviewed-by: Pieter-Paul Giesberts <[email protected]>
  9. Signed-off-by: Hante Meuleman <[email protected]>
  10. Signed-off-by: Arend van Spriel <[email protected]>
  11. Signed-off-by: Kalle Valo <[email protected]>
  12. --- a/include/linux/bcma/bcma.h
  13. +++ b/include/linux/bcma/bcma.h
  14. @@ -151,6 +151,8 @@ struct bcma_host_ops {
  15. #define BCMA_CORE_PCIE2 0x83C /* PCI Express Gen2 */
  16. #define BCMA_CORE_USB30_DEV 0x83D
  17. #define BCMA_CORE_ARM_CR4 0x83E
  18. +#define BCMA_CORE_ARM_CA7 0x847
  19. +#define BCMA_CORE_SYS_MEM 0x849
  20. #define BCMA_CORE_DEFAULT 0xFFF
  21. #define BCMA_MAX_NR_CORES 16
  22. --- a/drivers/bcma/main.c
  23. +++ b/drivers/bcma/main.c
  24. @@ -436,13 +436,8 @@ int bcma_bus_register(struct bcma_bus *b
  25. }
  26. dev = bcma_bus_get_host_dev(bus);
  27. - /* TODO: remove check for IS_BUILTIN(CONFIG_BCMA) check when
  28. - * of_default_bus_match_table is exported or in some other way
  29. - * accessible. This is just a temporary workaround.
  30. - */
  31. - if (IS_BUILTIN(CONFIG_BCMA) && dev) {
  32. - of_platform_populate(dev->of_node, of_default_bus_match_table,
  33. - NULL, dev);
  34. + if (dev) {
  35. + of_platform_default_populate(dev->of_node, NULL, dev);
  36. }
  37. /* Cores providing flash access go before SPROM init */