board_bcmbca.c 792 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. // Copyright (C) 2024 Linus Walleij <linus.walleij@linaro.org>
  3. #include <asm/mach/arch.h>
  4. #include <asm/mach/map.h>
  5. /* This is needed for LL-debug/earlyprintk/debug-macro.S */
  6. static struct map_desc bcmbca_io_desc[] __initdata = {
  7. {
  8. .virtual = CONFIG_DEBUG_UART_VIRT,
  9. .pfn = __phys_to_pfn(CONFIG_DEBUG_UART_PHYS),
  10. .length = SZ_4K,
  11. .type = MT_DEVICE,
  12. },
  13. };
  14. static void __init bcmbca_map_io(void)
  15. {
  16. iotable_init(bcmbca_io_desc, ARRAY_SIZE(bcmbca_io_desc));
  17. }
  18. static const char * const bcmbca_dt_compat[] = {
  19. /* TODO: Add other BCMBCA SoCs here to get debug UART support */
  20. "brcm,bcm6846",
  21. NULL,
  22. };
  23. DT_MACHINE_START(BCMBCA_DT, "BCMBCA Broadband Access Processors")
  24. .map_io = bcmbca_map_io,
  25. .dt_compat = bcmbca_dt_compat,
  26. MACHINE_END