With the upcoming riscv64 support, it is best to use "riscv" as the subdirectory name and common symbols as riscv32 and riscv64 support code is almost identical. Then later decide whether 32-bit or 64-bit compilation is wanted. Redirects for the web documentation are also included. Then zephyrbot complained about this: " New files added that are not covered in CODEOWNERS: dts/riscv/microsemi-miv.dtsi dts/riscv/riscv32-fe310.dtsi Please add one or more entries in the CODEOWNERS file to cover those files " So I assigned them to those who created them. Feel free to readjust as necessary. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2018 Foundries.io Ltd
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/*
|
|
* Extra definitions required for CONFIG_RISCV_SOC_OFFSETS.
|
|
*/
|
|
|
|
#ifndef SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_
|
|
#define SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_
|
|
|
|
#ifdef CONFIG_SOC_OPENISA_RV32M1_RI5CY
|
|
|
|
/*
|
|
* Ensure offset macros are available in <offsets.h>.
|
|
*
|
|
* Also create a macro which contains the value of &EVENT0->INTPTPENDCLEAR,
|
|
* for use in assembly.
|
|
*/
|
|
#define GEN_SOC_OFFSET_SYMS() \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpstart0); \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpend0); \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpcount0); \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpstart1); \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpend1); \
|
|
GEN_OFFSET_SYM(soc_esf_t, lpcount1); \
|
|
GEN_ABSOLUTE_SYM(__EVENT_INTPTPENDCLEAR, \
|
|
(uint32_t)&EVENT0->INTPTPENDCLEAR)
|
|
|
|
#endif /* CONFIG_SOC_OPENISA_RV32M1_RI5CY */
|
|
|
|
#ifdef CONFIG_SOC_OPENISA_RV32M1_ZERO_RISCY
|
|
|
|
#define GEN_SOC_OFFSET_SYMS() \
|
|
GEN_ABSOLUTE_SYM(__EVENT_INTPTPENDCLEAR, \
|
|
(uint32_t)&EVENT1->INTPTPENDCLEAR)
|
|
|
|
#endif /* CONFIG_SOC_OPENISA_RV32M1_ZERO_RISCY */
|
|
|
|
#endif /* SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_ */
|