public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] imx: mmdc_size: Allow building it for i.MX7ULP
Date: Thu, 18 Jul 2019 15:04:24 -0300	[thread overview]
Message-ID: <20190718180425.29472-3-festevam@gmail.com> (raw)
In-Reply-To: <20190718180425.29472-1-festevam@gmail.com>

i.MX7ULP uses the same MMDC controller IP as found on i.MX53
and i.MX6, so build mmdc_size.c for i.MX7ULP as well.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/mach-imx/Makefile    | 2 +-
 arch/arm/mach-imx/mmdc_size.c | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index 0c8519be94..b29f90b024 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -48,7 +48,7 @@ obj-$(CONFIG_SECURE_BOOT)    += hab.o
 obj-$(CONFIG_SYSCOUNTER_TIMER) += syscounter.o
 endif
 ifeq ($(SOC),$(filter $(SOC),mx7ulp))
-obj-y  += cache.o
+obj-y  += cache.o mmdc_size.o
 obj-$(CONFIG_SECURE_BOOT) += hab.o
 endif
 ifeq ($(SOC),$(filter $(SOC),vf610))
diff --git a/arch/arm/mach-imx/mmdc_size.c b/arch/arm/mach-imx/mmdc_size.c
index 13f587c38a..1a094726aa 100644
--- a/arch/arm/mach-imx/mmdc_size.c
+++ b/arch/arm/mach-imx/mmdc_size.c
@@ -5,8 +5,10 @@
 
 #if defined(CONFIG_MX53)
 #define MEMCTL_BASE	ESDCTL_BASE_ADDR
-#else
+#elif defined(CONFIG_MX6)
 #define MEMCTL_BASE	MMDC_P0_BASE_ADDR
+#elif defined(CONFIG_MX7ULP)
+#define MEMCTL_BASE	MMDC0_RBASE
 #endif
 static const unsigned char col_lookup[] = {9, 10, 11, 8, 12, 9, 9, 9};
 static const unsigned char bank_lookup[] = {3, 2};
-- 
2.17.1

  parent reply	other threads:[~2019-07-18 18:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-18 18:04 [U-Boot] [PATCH 1/4] imx: Place imx_ddr_size() into a separate file Fabio Estevam
2019-07-18 18:04 ` [U-Boot] [PATCH 2/4] imx: mmdc_size: Fix checkpatch warnings Fabio Estevam
2019-10-14 12:40   ` sbabic at denx.de
2019-07-18 18:04 ` Fabio Estevam [this message]
2019-10-14 12:40   ` [U-Boot] [PATCH 3/4] imx: mmdc_size: Allow building it for i.MX7ULP sbabic at denx.de
2019-07-18 18:04 ` [U-Boot] [PATCH 4/4] mx7ulp_evk: Use imx_ddr_size() Fabio Estevam
2019-10-14 12:40   ` sbabic at denx.de
2019-10-13 20:44 ` [U-Boot] [PATCH 1/4] imx: Place imx_ddr_size() into a separate file Stefano Babic
2019-10-13 22:34   ` Fabio Estevam
2019-10-14 12:40 ` sbabic at denx.de

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=20190718180425.29472-3-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=u-boot@lists.denx.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