From 05c38cb2f5780b7b3ccb057fb4aa0e65a7fa9b1a Mon Sep 17 00:00:00 2001 From: Navinkumar Balabakthan Date: Mon, 5 Jun 2023 08:42:35 +0000 Subject: [PATCH] soc: arm64: intel_socfpga: changes in system_manager SOCFPGA_SYSMGR_REG_BASE base address now read from Device tree This commit changes the way the SOCFPGA_SYSMGR_REG_BASE base address is determined. Previously, the address was hard-coded in the system_manager source file. This commit changes the code to read the address from the Device tree. This makes the code more flexible and allows the base address to be different for different boards. Signed-off-by: Navinkumar Balabakthan --- soc/arm64/intel_socfpga/common/socfpga_system_manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/arm64/intel_socfpga/common/socfpga_system_manager.h b/soc/arm64/intel_socfpga/common/socfpga_system_manager.h index 4e56ee5af4f..58f9e0d2c56 100644 --- a/soc/arm64/intel_socfpga/common/socfpga_system_manager.h +++ b/soc/arm64/intel_socfpga/common/socfpga_system_manager.h @@ -8,7 +8,7 @@ #define SOCFPGA_SYSTEMMANAGER_H /* System Manager Register Map */ -#define SOCFPGA_SYSMGR_REG_BASE 0xffd12000 +#define SOCFPGA_SYSMGR_REG_BASE DT_REG_ADDR(DT_NODELABEL(sysmgr)) #define SOCFPGA_SYSMGR_SDMMC 0x28