Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm / mach-bcm / board_bcmbca.c
blobb510d959870ae35ddfd505a69ba00f1fd4896ddf
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),
12 .length = SZ_4K,
13 .type = MT_DEVICE,
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 */
24 "brcm,bcm6846",
25 NULL,
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