1 /* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright (c) 2021 ASPEED Technology Inc. 5 */ 6 7 #ifndef ZEPHYR_SOC_ARM_ASPEED_AST10X0_SOC_H_ 8 #define ZEPHYR_SOC_ARM_ASPEED_AST10X0_SOC_H_ 9 #include <aspeed_util.h> 10 11 #define __VTOR_PRESENT 1U 12 #define __FPU_PRESENT CONFIG_CPU_HAS_FPU 13 #define __MPU_PRESENT CONFIG_CPU_HAS_ARM_MPU 14 15 #define PHY_SRAM_ADDR 0x80000000UL 16 #define TO_PHY_ADDR(addr) (PHY_SRAM_ADDR + (uint32_t)(addr)) 17 #define TO_VIR_ADDR(addr) ((uint32_t)(addr) - PHY_SRAM_ADDR) 18 19 #define SYS_RESET_LOG_REG1 0x7e6e2074 20 #define SYS_RESET_LOG_REG2 0x7e6e2078 21 22 #define HW_STRAP1_SCU500 0x7e6e2500 23 #define HW_STRAP2_SCU510 0x7e6e2510 24 #define ASPEED_FMC_WDT2_CTRL 0x7e620064 25 26 void aspeed_print_sysrst_info(void); 27 28 #endif /* ZEPHYR_SOC_ARM_ASPEED_AST10X0_SOC_H_*/ 29