1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2020 Compass Electronics Group, LLC
6 #ifndef __BEACON_RZG2M_H
7 #define __BEACON_RZG2M_H
9 #include "rcar-gen3-common.h"
11 #undef CONFIG_EXTRA_ENV_SETTINGS
13 #define CONFIG_EXTRA_ENV_SETTINGS \
14 "usb_pgood_delay=2000\0" \
17 "console=ttySC0,115200\0" \
18 "fdt_addr=0x48000000\0" \
19 "loadaddr=0x48080000\0" \
21 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
22 "initrd_addr=0x43800000\0" \
26 "finduuid=part uuid mmc ${mmcdev}:${mmcrootpart} uuid\0" \
27 "mmcautodetect=yes\0" \
28 "mmcargs=setenv bootargs console=${console} " \
29 " root=PARTUUID=${uuid} rootwait rw ${optargs}\0" \
30 "loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
31 "bootscript=echo Running bootscript from mmc ...; " \
33 "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
34 "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
35 "mmcboot=echo Booting from mmc ...; " \
36 "run finduuid; run mmcargs; " \
37 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
38 "if run loadfdt; then " \
39 "booti ${loadaddr} - ${fdt_addr}; " \
41 "echo WARN: Cannot load the DT; " \
44 "echo wait for boot; " \
46 "netargs=setenv bootargs ${jh_clk} console=${console} " \
48 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
49 "netboot=echo Booting from net ...; " \
51 "if test ${ip_dyn} = yes; then " \
52 "setenv get_cmd dhcp; " \
54 "setenv get_cmd tftp; " \
56 "${get_cmd} ${loadaddr} ${image}; " \
57 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
58 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
59 "booti ${loadaddr} - ${fdt_addr}; " \
61 "echo WARN: Cannot load the DT; " \
67 #endif /* __BEACON_RZG2M_H */