mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 07:13:03 +00:00
beeace9ba1
At the moment we have each SoC's memory map defined in its own cpu.h, which is included in include/configs/sunxi_common.h. This will be a problem with the introduction of Allwinner RISC-V support. Remove the inclusion of that header file from the common config header, instead move the required serial base addresses (for the SPL) into a separate header file. Then include the original cpu.h file only where we really need it, which is only under arch/arm now. This disentangles the architecture specific header files from the generic code. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
32 lines
920 B
C
32 lines
920 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* hardcoded UART base addresses for early SPL use
|
|
*
|
|
* Copyright (c) 2022 Arm Ltd.
|
|
*/
|
|
|
|
#ifndef SUNXI_SERIAL_MEMMAP_H
|
|
#define SUNXI_SERIAL_MEMMAP_H
|
|
|
|
#if defined(CONFIG_MACH_SUN9I)
|
|
#define SUNXI_UART0_BASE 0x07000000
|
|
#define SUNXI_R_UART_BASE 0x08002800
|
|
#elif defined(CONFIG_SUN50I_GEN_H6)
|
|
#define SUNXI_UART0_BASE 0x05000000
|
|
#define SUNXI_R_UART_BASE 0x07080000
|
|
#elif defined(CONFIG_MACH_SUNIV)
|
|
#define SUNXI_UART0_BASE 0x01c25000
|
|
#define SUNXI_R_UART_BASE 0
|
|
#elif defined(CONFIG_SUNXI_GEN_NCAT2)
|
|
#define SUNXI_UART0_BASE 0x02500000
|
|
#define SUNXI_R_UART_BASE 0 // 0x07080000 (?>
|
|
#else
|
|
#define SUNXI_UART0_BASE 0x01c28000
|
|
#define SUNXI_R_UART_BASE 0x01f02800
|
|
#endif
|
|
|
|
#define SUNXI_UART1_BASE (SUNXI_UART0_BASE + 0x400)
|
|
#define SUNXI_UART2_BASE (SUNXI_UART0_BASE + 0x800)
|
|
#define SUNXI_UART3_BASE (SUNXI_UART0_BASE + 0xc00)
|
|
|
|
#endif /* SUNXI_SERIAL_MEMMAP_H */
|