From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick DELAUNAY Date: Fri, 19 Apr 2019 15:16:33 +0000 Subject: [U-Boot] [PATCH 5/6] stm32mp1: Add Ethernet support for stm32mp1 board In-Reply-To: <1551780552-23339-6-git-send-email-christophe.roullier@st.com> References: <1551780552-23339-1-git-send-email-christophe.roullier@st.com> <1551780552-23339-6-git-send-email-christophe.roullier@st.com> Message-ID: <4b0ca25dbae947d0ac910f2f4f8c03d3@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Christophe, > Add default SERVERIP address > Enable noncached memory region required by ethernet driver Add PXE support > > Signed-off-by: Christophe Roullier > --- > > include/configs/stm32mp1.h | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index > 701298c..8469529 100644 > --- a/include/configs/stm32mp1.h > +++ b/include/configs/stm32mp1.h > @@ -73,12 +73,21 @@ > #define CONFIG_SYS_MMC_MAX_DEVICE 3 > #define CONFIG_SUPPORT_EMMC_BOOT > > +/* 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 > + > #if !defined(CONFIG_SPL) || !defined(CONFIG_SPL_BUILD) > > #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) > > #include > > -- > 2.7.4 For stm32mp1 boards EV1 and DK2 Test done with master (SHA1 = 75ce8c938d39bd22460be66e6bf318bd2410c17b) Tested-by: Patrick Delaunay Acked-by: Patrick Delaunay One minor remark: you can add "boot_net_usb_start=true" in CONFIG_EXTRA_ENV_SETTINGS to avoid unnecessary usb start when ethernet is started. I will push a patch when the serie will be accepted. Regards Patrick