diff mbox series

[U-Boot,v2,5/6] stm32mp1: Add Ethernet support for stm32mp1board

Message ID 20190517130847.13144-6-christophe.roullier@st.com
State Accepted
Commit b4d4fe7b9efcee134113b96e128f4f814b5c1237
Delegated to: Patrice Chotard
Headers show
Series - Add Ethernet support for stm32mpu | expand

Commit Message

Christophe Roullier May 17, 2019, 1:08 p.m. UTC
Add default SERVERIP address
Enable noncached memory region required by ethernet driver
Add PXE support

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
---

Changes in v2: None

 include/configs/stm32mp1.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Comments

Patrice CHOTARD June 11, 2019, 7:35 a.m. UTC | #1
On 5/17/19 3:08 PM, Christophe Roullier wrote:
> Add default SERVERIP address
> Enable noncached memory region required by ethernet driver
> Add PXE support
> 
> Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
> ---
> 
> Changes in v2: None
> 
>  include/configs/stm32mp1.h | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
> index fd6c97a0c61..cc14f6169b9 100644
> --- a/include/configs/stm32mp1.h
> +++ b/include/configs/stm32mp1.h
> @@ -78,6 +78,14 @@
>  /*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
>  /*****************************************************************************/
> @@ -87,7 +95,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
> 

Applied

Thanks
diff mbox series

Patch

diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index fd6c97a0c61..cc14f6169b9 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -78,6 +78,14 @@ 
 /*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
 /*****************************************************************************/
@@ -87,7 +95,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