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 <kumar.gala@linaro.org>
This commit is contained in:
parent
88469b7010
commit
a92d61a316
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
||||||
#include <devicetree.h>
|
#include <devicetree.h>
|
||||||
|
|
||||||
/* lib-c hooks required RAM defined variables */
|
/* lib-c hooks required RAM defined variables */
|
||||||
#define RISCV_RAM_BASE DT_INST_0_MMIO_SRAM_BASE_ADDRESS
|
#define RISCV_RAM_BASE DT_REG_ADDR(DT_INST(0, mmio_sram))
|
||||||
#define RISCV_RAM_SIZE DT_INST_0_MMIO_SRAM_SIZE
|
#define RISCV_RAM_SIZE DT_REG_SIZE(DT_INST(0, mmio_sram))
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
/* CSR access helpers */
|
/* CSR access helpers */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue