From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/9] engicam: Add fdt_addr env value based on cpu_type
Date: Fri, 12 May 2017 17:18:27 +0530 [thread overview]
Message-ID: <1494589708-15276-9-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1494589708-15276-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
Define FDT_ADDR based on the respective SOM, and later patches
will make use of this fdt_addr in single config file.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
include/configs/imx6qdl_icore.h | 5 ++++-
include/configs/imx6qdl_icore_rqs.h | 5 ++++-
include/configs/imx6ul_geam.h | 5 ++++-
include/configs/imx6ul_isiot.h | 5 ++++-
4 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/include/configs/imx6qdl_icore.h b/include/configs/imx6qdl_icore.h
index 7e4d0c1..4f7029d 100644
--- a/include/configs/imx6qdl_icore.h
+++ b/include/configs/imx6qdl_icore.h
@@ -41,7 +41,7 @@
"image=uImage\0" \
"fit_image=fit.itb\0" \
"fdt_high=0xffffffff\0" \
- "fdt_addr=0x18000000\0" \
+ "fdt_addr=" FDT_ADDR "\0" \
"boot_fdt=try\0" \
"mmcpart=1\0" \
"nandroot=ubi0:rootfs rootfstype=ubifs\0" \
@@ -109,6 +109,9 @@
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_SYS_HZ 1000
+#define DRAM_OFFSET(x) 0x1##x
+#define FDT_ADDR __stringify(DRAM_OFFSET(8000000))
+
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
diff --git a/include/configs/imx6qdl_icore_rqs.h b/include/configs/imx6qdl_icore_rqs.h
index 525901b..d1e482d 100644
--- a/include/configs/imx6qdl_icore_rqs.h
+++ b/include/configs/imx6qdl_icore_rqs.h
@@ -36,7 +36,7 @@
"image=uImage\0" \
"fit_image=fit.itb\0" \
"fdt_high=0xffffffff\0" \
- "fdt_addr=0x18000000\0" \
+ "fdt_addr=" FDT_ADDR "\0" \
"boot_fdt=try\0" \
"mmcpart=1\0" \
"mmcautodetect=yes\0" \
@@ -91,6 +91,9 @@
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_SYS_HZ 1000
+#define DRAM_OFFSET(x) 0x1##x
+#define FDT_ADDR __stringify(DRAM_OFFSET(8000000))
+
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
diff --git a/include/configs/imx6ul_geam.h b/include/configs/imx6ul_geam.h
index 9841686..0502e1b 100644
--- a/include/configs/imx6ul_geam.h
+++ b/include/configs/imx6ul_geam.h
@@ -40,7 +40,7 @@
"image=uImage\0" \
"fit_image=fit.itb\0" \
"fdt_high=0xffffffff\0" \
- "fdt_addr=0x87800000\0" \
+ "fdt_addr=" FDT_ADDR "\0" \
"boot_fdt=try\0" \
"mmcpart=1\0" \
"nandroot=ubi0:rootfs rootfstype=ubifs\0" \
@@ -108,6 +108,9 @@
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_SYS_HZ 1000
+#define DRAM_OFFSET(x) 0x87##x
+#define FDT_ADDR __stringify(DRAM_OFFSET(800000))
+
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
diff --git a/include/configs/imx6ul_isiot.h b/include/configs/imx6ul_isiot.h
index f7fbaf2..23aabed 100644
--- a/include/configs/imx6ul_isiot.h
+++ b/include/configs/imx6ul_isiot.h
@@ -41,7 +41,7 @@
"fit_image=fit.itb\0" \
"splashpos=m,m\0" \
"fdt_high=0xffffffff\0" \
- "fdt_addr=0x87800000\0" \
+ "fdt_addr=" FDT_ADDR "\0" \
"boot_fdt=try\0" \
"mmcpart=1\0" \
"nandroot=ubi0:rootfs rootfstype=ubifs\0" \
@@ -108,6 +108,9 @@
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_SYS_HZ 1000
+#define DRAM_OFFSET(x) 0x87##x
+#define FDT_ADDR __stringify(DRAM_OFFSET(800000))
+
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
--
1.9.1
next prev parent reply other threads:[~2017-05-12 11:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 11:48 [U-Boot] [PATCH 0/9] i.MX6: Engicam: Move common config code Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 1/9] mmc: fsl_esdhc: Move non DM_MMC code in #ifndef CONFIG_DM_MMC Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 2/9] engicam: Move SPL mmc configs under CONFIG_SPL_BUILD Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 3/9] icorem6: Recover missing nand defconfig Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 4/9] drivers: net: Kconfig: Add PHY_MICREL_KSZ9021 entry Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 5/9] engicam: Move PHY configs to defconfig Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 6/9] icorem6: Remove unused FEC configs Jagan Teki
2017-05-12 11:48 ` [U-Boot] [PATCH 7/9] engicam: Set console env on board_late_init Jagan Teki
2017-05-12 11:48 ` Jagan Teki [this message]
2017-05-12 11:48 ` [U-Boot] [PATCH 9/9] engicam: Generate single config file Jagan Teki
2017-05-22 10:35 ` [U-Boot] [PATCH 0/9] i.MX6: Engicam: Move common config code Jagan Teki
2017-05-31 8:48 ` Stefano Babic
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=1494589708-15276-9-git-send-email-jagan@openedev.com \
--to=jagan@openedev.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