summaryrefslogtreecommitdiff
path: root/include/configs/meson-gxbb-common.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2017-01-15 19:22:30 (GMT)
committerTom Rini <trini@konsulko.com>2017-01-20 20:38:02 (GMT)
commit70b8bd7d3b046dcc2ce7987e156629940b027897 (patch)
treece4402ca8a91f616300a9b201e82c1ee90aa89be /include/configs/meson-gxbb-common.h
parent8c9bfc47ed587df236a813c46cb5611b9c7d0a91 (diff)
downloadu-boot-fsl-qoriq-70b8bd7d3b046dcc2ce7987e156629940b027897.tar.xz
odroid-c2: Enable distro boot
Use the generic "distro" boot framework to enable automatic DHCP boot. MMC and USB are not yet implemented, so this is the only boot option. The fdt and kernel addresses are adopted from downstream; ramdisk and scriptaddr addresses were chosen arbitrarily. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/configs/meson-gxbb-common.h')
-rw-r--r--include/configs/meson-gxbb-common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h
index ab62cff..17e81b4 100644
--- a/include/configs/meson-gxbb-common.h
+++ b/include/configs/meson-gxbb-common.h
@@ -39,4 +39,18 @@
#include <config_distro_defaults.h>
+#define BOOT_TARGET_DEVICES(func) \
+ func(DHCP, dhcp, na)
+
+#include <config_distro_bootcmd.h>
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "fdt_addr_r=0x01000000\0" \
+ "scriptaddr=0x1f000000\0" \
+ "kernel_addr_r=0x01080000\0" \
+ "pxefile_addr_r=0x01080000\0" \
+ "ramdisk_addr_r=0x10000000\0" \
+ MESON_FDTFILE_SETTING \
+ BOOTENV
+
#endif /* __MESON_GXBB_COMMON_CONFIG_H */