soc: sifive: 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:
Kumar Gala 2020-03-24 16:45:00 -05:00 committed by Kumar Gala
commit 8e65c69bb4

View file

@ -15,7 +15,7 @@
#include <devicetree.h> #include <devicetree.h>
/* PINMUX Configuration */ /* PINMUX Configuration */
#define SIFIVE_PINMUX_0_BASE_ADDR (DT_INST_0_SIFIVE_GPIO0_BASE_ADDRESS + 0x38) #define SIFIVE_PINMUX_0_BASE_ADDR (DT_REG_ADDR(DT_INST(0, sifive_gpio0)) + 0x38)
/* PINMUX IO Hardware Functions */ /* PINMUX IO Hardware Functions */
#define SIFIVE_PINMUX_IOF0 0x00 #define SIFIVE_PINMUX_IOF0 0x00