summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-02 22:37:54 +0000
committerwdenk <wdenk>2005-04-02 22:37:54 +0000
commit414eec35e3832f4f9ce8a25ace7ead638be1f76f (patch)
treea599df7a979e35b52494cfcd0d3f11d4270bc755 /common
parentbe6b6e4e2de5fc857fb8207b5fce3f463c33f793 (diff)
downloadu-boot-imx-414eec35e3832f4f9ce8a25ace7ead638be1f76f.zip
u-boot-imx-414eec35e3832f4f9ce8a25ace7ead638be1f76f.tar.gz
u-boot-imx-414eec35e3832f4f9ce8a25ace7ead638be1f76f.tar.bz2
Fix problems with SNTP support;
enable SNTP support in some boards.
Diffstat (limited to 'common')
-rw-r--r--common/cmd_net.c4
-rw-r--r--common/cmd_usb.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index b6d436e..18ea4b9 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -137,13 +137,13 @@ static void netboot_update_env (void)
if (NetOurNISDomain[0])
setenv ("domain", NetOurNISDomain);
-#if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_TIMEOFFSET)
+#if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_TIMEOFFSET)
if (NetTimeOffset) {
sprintf (tmp, "%d", NetTimeOffset);
setenv ("timeoffset", tmp);
}
#endif
-#if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_NTPSERVER)
+#if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_NTPSERVER)
if (NetNtpServerIP) {
ip_to_string (NetNtpServerIP, tmp);
setenv ("ntpserverip", tmp);
diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index 25a3cc4..fbddb12 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -27,6 +27,7 @@
#include <common.h>
#include <command.h>
+#include <asm/byteorder.h>
#if (CONFIG_COMMANDS & CFG_CMD_USB)