From a92d61a316ddc3079ac7dac9404af965d81f4e5d Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 24 Mar 2020 16:45:26 -0500 Subject: [PATCH] soc: litex: Convert to new DT_INST macros Convert older DT_INST_ macro use the new include/devicetree.h DT_INST macro APIs. Signed-off-by: Kumar Gala --- soc/riscv/litex-vexriscv/soc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/riscv/litex-vexriscv/soc.h b/soc/riscv/litex-vexriscv/soc.h index 02567237c7b..827633088b7 100644 --- a/soc/riscv/litex-vexriscv/soc.h +++ b/soc/riscv/litex-vexriscv/soc.h @@ -11,8 +11,8 @@ #include /* lib-c hooks required RAM defined variables */ -#define RISCV_RAM_BASE DT_INST_0_MMIO_SRAM_BASE_ADDRESS -#define RISCV_RAM_SIZE DT_INST_0_MMIO_SRAM_SIZE +#define RISCV_RAM_BASE DT_REG_ADDR(DT_INST(0, mmio_sram)) +#define RISCV_RAM_SIZE DT_REG_SIZE(DT_INST(0, mmio_sram)) #ifndef _ASMLANGUAGE /* CSR access helpers */