engicam: Add fdt_addr env value based on cpu_type
authorJagan Teki <jagan@amarulasolutions.com>
Fri, 12 May 2017 11:48:27 +0000 (17:18 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 31 May 2017 08:34:00 +0000 (10:34 +0200)
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
include/configs/imx6qdl_icore_rqs.h
include/configs/imx6ul_geam.h
include/configs/imx6ul_isiot.h

index f3e8481c9433481807ab1907f400cc163a35a76a..531631d378212d7f599449eef13f673c7de43ee9 100644 (file)
@@ -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" \
 #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
index 8f0128e250fa46684812264cf37682196237f73c..4bc105546a5db69422d4fb636c681c8498b582b4 100644 (file)
@@ -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
index f7c48240c21912ea666111fd39658986ceeabf5f..2617c8a9945e0f8e6b38b0b7b1f6519b66530ead 100644 (file)
@@ -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" \
 #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
index 2dff5ee78e1cde94806cff2208e83b105a8846f6..5de3e1d4bd63a82d37c2bc8fd7f0dc8192e085a1 100644 (file)
@@ -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" \
 #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