1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2015, Linaro Limited 4 * Copyright (c) 2022, Huawei Technologies Co., Ltd 5 */ 6 7 #ifndef PLATFORM_CONFIG_H 8 #define PLATFORM_CONFIG_H 9 10 #include <mm/generic_ram_layout.h> 11 12 /* Make stacks aligned to data cache line length */ 13 #define STACK_ALIGNMENT 64 14 15 /* UART */ 16 #if defined(PLATFORM_FLAVOR_d06) 17 #define UART_BASE 0x2f8 18 #define CONSOLE_UART_CLK_IN_HZ 200 19 #endif 20 21 #if defined(PLATFORM_FLAVOR_HIP08A) 22 #define UART_BASE 0x94080000 23 #define CONSOLE_UART_CLK_IN_HZ 200000000 24 #endif 25 26 #define CONSOLE_BAUDRATE 115200 27 28 /* HISI_TRNG */ 29 #define HISI_TRNG_BASE 0x2010C0000 30 #define HISI_TRNG_SIZE 0x100 31 32 /* SEC */ 33 #define HISI_SEC_BASE 0x141800000 34 #define HISI_SEC_SIZE 0x400000 35 36 #endif /* PLATFORM_CONFIG_H */ 37