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