]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
RAM: Add changes for i.MXRT11xx series
authorJesse Taube <mr.bossman075@gmail.com>
Tue, 26 Jul 2022 05:43:44 +0000 (01:43 -0400)
committerStefano Babic <sbabic@denx.de>
Sun, 18 Sep 2022 18:42:56 +0000 (20:42 +0200)
The i.MXRT11 series has different offsets for IOCR_MUX, it also can
address 64MiB of SDRAM so add a macro for that.

Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
drivers/ram/imxrt_sdram.c
include/dt-bindings/memory/imxrt-sdram.h

index ca2eec767d77af65b95e1aba855c7819644a3bf4..d0a88845cf9bf6e145ce7e68692c54187936fc9f 100644 (file)
@@ -87,12 +87,21 @@ struct imxrt_semc_regs {
        u32 sts[16];
 };
 
+#if !defined(TARGET_IMXRT1170_EVK)
 #define SEMC_IOCR_MUX_A8_SHIFT         0
 #define SEMC_IOCR_MUX_CSX0_SHIFT       3
 #define SEMC_IOCR_MUX_CSX1_SHIFT       6
 #define SEMC_IOCR_MUX_CSX2_SHIFT       9
 #define SEMC_IOCR_MUX_CSX3_SHIFT       12
 #define SEMC_IOCR_MUX_RDY_SHIFT                15
+#else
+#define SEMC_IOCR_MUX_A8_SHIFT         0
+#define SEMC_IOCR_MUX_CSX0_SHIFT       4
+#define SEMC_IOCR_MUX_CSX1_SHIFT       8
+#define SEMC_IOCR_MUX_CSX2_SHIFT       12
+#define SEMC_IOCR_MUX_CSX3_SHIFT       16
+#define SEMC_IOCR_MUX_RDY_SHIFT                20
+#endif
 
 struct imxrt_sdram_mux {
        u8 a8;
index acb35bce277367f62d656a44da4ce7a6661f7d73..4b3b0c2f504e5fe74bcd9377ad82aec03a786377 100644 (file)
@@ -82,6 +82,7 @@
 
 #define MEM_WIDTH_8BITS                0x0
 #define MEM_WIDTH_16BITS       0x1
+#define MEM_WIDTH_32BITS       0x2
 
 #define BL_1                   0x0
 #define BL_2                   0x1