brcmstb.c 959 B

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