summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/include/uboot-control.inc
diff options
context:
space:
mode:
authorThuy Tran <thuy.tran.xh@rvc.renesas.com>2018-04-12 15:28:54 +0700
committerThuy Tran <thuy.tran.xh@rvc.renesas.com>2018-04-21 09:04:25 +0700
commitea79aabf3d6975c829488c6367ccbff745164703 (patch)
treebadcdf4569e1f12fe084ff65b635a1224a3cca06 /meta-rcar-gen3/include/uboot-control.inc
parent9fb019b704003afc186d8ec3eca13b6822af8d24 (diff)
rcar-gen3: u-boot: Update SRCREV to follow the latest version
This commit updates u-boot SRCREV to follow the latest version for following updates: - Fix XTAL clock for Salvator-XS board. - Use packed structures for networking. As a result, “dcache off” command works fine. It also adds u-boot build options to support each H3 device trees as below: - For R-Car H3 SiP DDR 8GiB (2GiB x 4ch), specify RCAR_DRAM_MAP4_2. - For R-Car H3 SiP DDR 4GiB (2GiB x 2ch), specify RCAR_DRAM_MAP2_2. - For R-Car H3 SiP DDR 4GiB (1GiB x 4ch), specify RCAR_DRAM_MAP4_1. In Yv3.7.0, we will support R-Car H3 SiP DDR 8GiB by default. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
Diffstat (limited to 'meta-rcar-gen3/include/uboot-control.inc')
-rw-r--r--meta-rcar-gen3/include/uboot-control.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-rcar-gen3/include/uboot-control.inc b/meta-rcar-gen3/include/uboot-control.inc
new file mode 100644
index 0000000..859295b
--- /dev/null
+++ b/meta-rcar-gen3/include/uboot-control.inc
@@ -0,0 +1,11 @@
+# This function is to add more U-Boot options to build with H3 (SoC: r8a7795)
+
+def get_uboot_config_opt(d):
+ option = d.getVar('H3_OPTION')
+ if option == "1":
+ d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP4_2 KAFLAGS+=-DRCAR_DRAM_MAP4_2')
+ elif option == "2":
+ d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP2_2 KAFLAGS+=-DRCAR_DRAM_MAP2_2')
+ else:
+ d.setVar('UBOOT_CONFIG_OPT','')
+ return d.getVar('UBOOT_CONFIG_OPT')