boards: arm: Use DT_SIZE macros for nxp external memories

Refactors nxp i.mx, kinetis, and lpc board-level device trees to use
DT_SIZE_K and DT_SIZE_M macros to define external memory sizes. This is
self documenting and easier to read.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2020-10-21 13:47:17 -05:00
commit 2edfb89db8
9 changed files with 13 additions and 13 deletions

View file

@ -27,7 +27,7 @@
sdram0: memory@80000000 {
/* ISSI IS42S16160J-6TLI */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {
@ -79,7 +79,7 @@
arduino_serial: &lpuart2 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;