From: John Tobias <john.tobias.ph@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] imx6: add macro define inclusion
Date: Sun, 9 Nov 2014 09:51:22 -0800 [thread overview]
Message-ID: <1415555488-37665-2-git-send-email-john.tobias.ph@gmail.com> (raw)
In-Reply-To: <1415555488-37665-1-git-send-email-john.tobias.ph@gmail.com>
add a macro define inclusion to compile the function.
iMX6SL doesn't have an MMDC_P1_BASE_ADDR in the header.
It will break the build if the SPL features is enabled
for iMX6SL.
---
arch/arm/cpu/armv7/mx6/ddr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
index 7a9b03a..3beeded 100644
--- a/arch/arm/cpu/armv7/mx6/ddr.c
+++ b/arch/arm/cpu/armv7/mx6/ddr.c
@@ -182,6 +182,7 @@ void mx6sdl_dram_iocfg(unsigned width,
* For details on each register, refer to the IMX6DQRM and/or IMX6SDLRM
* section titled MMDC initialization
*/
+#if defined(CONFIG_MX6QDL) || defined(CONFIG_MX6Q) || defined(CONFIG_MX6D)
#define MR(val, ba, cmd, cs1) \
((val << 16) | (1 << 15) | (cmd << 4) | (cs1 << 3) | ba)
void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,
@@ -489,3 +490,4 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,
/* wait for auto-ZQ calibration to complete */
mdelay(1);
}
+#endif
--
1.9.1
next prev parent reply other threads:[~2014-11-09 17:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-09 17:51 [U-Boot] [PATCH 0/7] *** iMX6SL-evk SPL Support *** John Tobias
2014-11-09 17:51 ` John Tobias [this message]
2014-11-09 23:26 ` [U-Boot] [PATCH 1/7] imx6: add macro define inclusion Fabio Estevam
2014-11-09 23:42 ` John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 2/7] imx6sl: update DCD configuration file John Tobias
2014-11-09 21:31 ` Stefano Babic
2014-11-10 0:33 ` John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 3/7] imx6sl: add spl on board configuration John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 4/7] imx6: add additional flexibility for defining macros John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 5/7] imx6sl: add spl in include header file John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 6/7] imx6sl: add SPL support for iMX6SL-evk John Tobias
2014-11-09 17:51 ` [U-Boot] [PATCH 7/7] kconfig: imx6sl: add add SUPPORT_SPL John Tobias
2014-11-09 22:59 ` [U-Boot] [PATCH 0/7] *** iMX6SL-evk SPL Support *** Andreas Färber
2014-11-09 23:22 ` John Tobias
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=1415555488-37665-2-git-send-email-john.tobias.ph@gmail.com \
--to=john.tobias.ph@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