/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2014, Allwinner Technology Co., Ltd. * Copyright (c) 2018, Linaro Limited * Copyright (c) 2018, Amit Singh Tomar /* Make stacks aligned to data cache line length */ #define STACK_ALIGNMENT 64 /* 16550 UART */ #define CONSOLE_UART_BASE 0x01c28000 /* UART0 */ #define CONSOLE_UART_CLK_IN_HZ 24000000 #define CONSOLE_BAUDRATE 115200 #define SUNXI_UART_REG_SIZE 0x400 #if defined(PLATFORM_FLAVOR_bpi_zero) #define GIC_BASE 0x01c80000 #define GICC_OFFSET 0x2000 #define GICD_OFFSET 0x1000 #define SUNXI_TZPC_BASE 0x01c23400 #define SUNXI_TZPC_REG_SIZE 0x400 #define SUNXI_CPUCFG_BASE 0x01f01c00 #define SUNXI_CPUCFG_REG_SIZE 0x400 #define SUNXI_PRCM_BASE 0x01f01400 #define SUNXI_PRCM_REG_SIZE 0x400 #define PRCM_CPU_SOFT_ENTRY_REG 0x164 #endif #if defined(PLATFORM_FLAVOR_sun50i_a64) #define SUNXI_SMC_BASE 0x01c1e000 #endif #endif /* PLATFORM_CONFIG_H */