]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: Add Ethernet support for stm32mp1 board
authorChristophe Roullier <christophe.roullier@st.com>
Fri, 17 May 2019 13:08:46 +0000 (15:08 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 6 Jun 2019 15:40:19 +0000 (17:40 +0200)
Add default SERVERIP address
Enable noncached memory region required by ethernet driver
Add PXE support

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
include/configs/stm32mp1.h

index a3f84900f212a8cc2953468bad9ac1a4410ac14b..1d385e0985c443c77ba699e234a2920a448570aa 100644 (file)
 /*MMC SD*/
 #define CONFIG_SYS_MMC_MAX_DEVICE      3
 
+/* Ethernet need */
+#ifdef CONFIG_DWC_ETH_QOS
+#define CONFIG_SYS_NONCACHED_MEMORY    (1 * SZ_1M)     /* 1M */
+#define CONFIG_SERVERIP                 192.168.1.1
+#define CONFIG_BOOTP_SERVERIP
+#define CONFIG_SYS_AUTOLOAD            "no"
+#endif
+
 /*****************************************************************************/
 #ifdef CONFIG_DISTRO_DEFAULTS
 /*****************************************************************************/
@@ -89,7 +97,9 @@
 #define BOOT_TARGET_DEVICES(func) \
        func(MMC, mmc, 1) \
        func(MMC, mmc, 0) \
-       func(MMC, mmc, 2)
+       func(MMC, mmc, 2) \
+       func(PXE, pxe, na)
+
 /*
  * bootcmd for stm32mp1:
  * for serial/usb: execute the stm32prog command