summaryrefslogtreecommitdiffstats
path: root/include/configs/tegra-common-post.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-02-05 09:24:59 -0700
committerTom Warren <twarren@nvidia.com>2014-03-05 16:59:08 -0700
commitf940c72e16f7bdebaaed79b290c1bcb6dc015053 (patch)
treeb365b57aba0029808bbb67454467409a28366f5b /include/configs/tegra-common-post.h
parent4d7d2e570a47df28b308bbdbf7c9f265cdcf17ca (diff)
downloadblackbird-obmc-uboot-f940c72e16f7bdebaaed79b290c1bcb6dc015053.tar.gz
blackbird-obmc-uboot-f940c72e16f7bdebaaed79b290c1bcb6dc015053.zip
ARM: tegra: implement bootcmd_pxe
This retrieves a PXE config file over the network, and executes it. This allows an extlinux config file to be retrieved over the network and executed, whereas the existing bootcmd_dhcp retrieves a U-Boot script. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/tegra-common-post.h')
-rw-r--r--include/configs/tegra-common-post.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 3bf55ce428..76dad4e88c 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -66,6 +66,20 @@
#define BOOT_TARGETS_DHCP ""
#endif
+#if defined(CONFIG_CMD_DHCP) && defined(CONFIG_CMD_PXE)
+#define BOOTCMDS_PXE \
+ "bootcmd_pxe=" \
+ BOOTCMD_INIT_USB \
+ "dhcp; " \
+ "if pxe get; then " \
+ "pxe boot; " \
+ "fi\0"
+#define BOOT_TARGETS_PXE "pxe"
+#else
+#define BOOTCMDS_PXE ""
+#define BOOT_TARGETS_PXE ""
+#endif
+
#define BOOTCMDS_COMMON \
"rootpart=1\0" \
\
@@ -108,6 +122,7 @@
"boot_targets=" \
BOOT_TARGETS_MMC " " \
BOOT_TARGETS_USB " " \
+ BOOT_TARGETS_PXE " " \
BOOT_TARGETS_DHCP " " \
"\0" \
\
@@ -117,7 +132,8 @@
\
BOOTCMDS_MMC \
BOOTCMDS_USB \
- BOOTCMDS_DHCP
+ BOOTCMDS_DHCP \
+ BOOTCMDS_PXE
#define CONFIG_BOOTCOMMAND \
"set usb_need_init; " \
OpenPOWER on IntegriCloud