1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2024 Linus Walleij <linus.walleij@linaro.org>
4 #include <asm/mach/arch.h>
5 #include <asm/mach/map.h>
7 /* This is needed for LL-debug/earlyprintk/debug-macro.S */
8 static struct map_desc bcmbca_io_desc
[] __initdata
= {
10 .virtual = CONFIG_DEBUG_UART_VIRT
,
11 .pfn
= __phys_to_pfn(CONFIG_DEBUG_UART_PHYS
),
17 static void __init
bcmbca_map_io(void)
19 iotable_init(bcmbca_io_desc
, ARRAY_SIZE(bcmbca_io_desc
));
22 static const char * const bcmbca_dt_compat
[] = {
23 /* TODO: Add other BCMBCA SoCs here to get debug UART support */
28 DT_MACHINE_START(BCMBCA_DT
, "BCMBCA Broadband Access Processors")
29 .map_io
= bcmbca_map_io
,
30 .dt_compat
= bcmbca_dt_compat
,