xref: /optee_os/core/arch/riscv/plat-sifive/platform_config.h (revision 49c6ad2a7049a54a54b0e2b657694f3264a559e4)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2025 SiFive, Inc
4  */
5 
6 #ifndef PLATFORM_CONFIG_H
7 #define PLATFORM_CONFIG_H
8 
9 #include <mm/generic_ram_layout.h>
10 #include <riscv.h>
11 
12 /* SiFive UART */
13 #define CONSOLE_UART_BASE	0x10010000
14 #define CONSOLE_BAUDRATE	115200
15 #define CONSOLE_UART_CLK_IN_HZ	0
16 
17 #define PLAT_THREAD_EXCP_FOREIGN_INTR	\
18 	(CSR_XIE_EIE | CSR_XIE_TIE | CSR_XIE_SIE)
19 #define PLAT_THREAD_EXCP_NATIVE_INTR	(0)
20 
21 #endif /*PLATFORM_CONFIG_H*/
22