From: Jesse Taube <mr.bossman075@gmail.com>
To: u-boot@lists.denx.de
Cc: sbabic@denx.de, festevam@gmail.com, xypron.glpk@gmx.de,
uboot-imx@nxp.com, lukma@denx.de, seanga2@gmail.com,
giulio.benetti@benettiengineering.com, Mr.Bossman075@gmail.com,
andre.przywara@arm.com
Subject: [PATCH v3 6/8] RAM: Add changes for i.MXRT11xx series
Date: Tue, 26 Jul 2022 01:43:44 -0400 [thread overview]
Message-ID: <20220726054346.288090-7-Mr.Bossman075@gmail.com> (raw)
In-Reply-To: <20220726054346.288090-1-Mr.Bossman075@gmail.com>
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>
---
V1 -> V2:
* Nothing done
V2 -> V3:
* Nothing done
---
drivers/ram/imxrt_sdram.c | 9 +++++++++
include/dt-bindings/memory/imxrt-sdram.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c
index ca2eec767d..d0a88845cf 100644
--- a/drivers/ram/imxrt_sdram.c
+++ b/drivers/ram/imxrt_sdram.c
@@ -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;
diff --git a/include/dt-bindings/memory/imxrt-sdram.h b/include/dt-bindings/memory/imxrt-sdram.h
index acb35bce27..4b3b0c2f50 100644
--- a/include/dt-bindings/memory/imxrt-sdram.h
+++ b/include/dt-bindings/memory/imxrt-sdram.h
@@ -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
--
2.36.1
next prev parent reply other threads:[~2022-07-26 5:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 5:43 [PATCH v3 0/8] Add support for the i.MXRT1170 Jesse Taube
2022-07-26 5:43 ` [PATCH v3 1/8] imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK Jesse Taube
2022-07-27 17:18 ` sbabic
2022-07-26 5:43 ` [PATCH v3 2/8] ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header Jesse Taube
2022-07-27 17:19 ` sbabic
2022-07-26 5:43 ` [PATCH v3 3/8] dt-bindings: imx: Add clock binding for i.MXRT1170 Jesse Taube
2022-07-27 17:19 ` sbabic
2022-07-26 5:43 ` [PATCH v3 4/8] clk: imx: Add i.MXRT11xx pllv3 variant Jesse Taube
2022-07-27 17:19 ` sbabic
2022-07-26 5:43 ` [PATCH v3 5/8] clk: imx: Add initial support for i.MXRT1170 clock driver Jesse Taube
2022-07-27 17:19 ` sbabic
2022-07-26 5:43 ` Jesse Taube [this message]
2022-07-27 17:18 ` [PATCH v3 6/8] RAM: Add changes for i.MXRT11xx series sbabic
2022-07-26 5:43 ` [PATCH v3 7/8] ARM: dts: imx: add i.MXRT1170-EVK support Jesse Taube
2022-07-27 17:19 ` sbabic
2022-07-26 5:43 ` [PATCH v3 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig Jesse Taube
2022-07-27 17:18 ` sbabic
[not found] <62e17389.1c69fb81.b2db8.c74cSMTPIN_ADDED_MISSING@mx.google.com>
2022-09-01 6:24 ` [PATCH v3 6/8] RAM: Add changes for i.MXRT11xx series Jesse Taube
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220726054346.288090-7-Mr.Bossman075@gmail.com \
--to=mr.bossman075@gmail.com \
--cc=andre.przywara@arm.com \
--cc=festevam@gmail.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=lukma@denx.de \
--cc=sbabic@denx.de \
--cc=seanga2@gmail.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox