brcmstb.c 928 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. // Copyright (C) 2013-2014 Broadcom Corporation
  3. #include <linux/init.h>
  4. #include <linux/irqchip.h>
  5. #include <asm/mach-types.h>
  6. #include <asm/mach/arch.h>
  7. /*
  8. * Storage for debug-macro.S's state.
  9. *
  10. * This must be in .data not .bss so that it gets initialized each time the
  11. * kernel is loaded. The data is declared here rather than debug-macro.S so
  12. * that multiple inclusions of debug-macro.S point at the same data.
  13. */
  14. u32 brcmstb_uart_config[3] = {
  15. /* Debug UART initialization required */
  16. 1,
  17. /* Debug UART physical address */
  18. 0,
  19. /* Debug UART virtual address */
  20. 0,
  21. };
  22. static void __init brcmstb_init_irq(void)
  23. {
  24. irqchip_init();
  25. }
  26. static const char *const brcmstb_match[] __initconst = {
  27. "brcm,bcm7445",
  28. "brcm,brcmstb",
  29. NULL
  30. };
  31. DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
  32. .dt_compat = brcmstb_match,
  33. .init_irq = brcmstb_init_irq,
  34. MACHINE_END