diff mbox series

[U-Boot,v2] armv8: ls2080ardb: enable eSDHC pin mux support

Message ID 20181122090111.19870-1-yinbo.zhu@nxp.com
State Not Applicable
Delegated to: Prabhakar Kushwaha
Headers show
Series [U-Boot,v2] armv8: ls2080ardb: enable eSDHC pin mux support | expand

Commit Message

Yinbo Zhu Nov. 22, 2018, 9:01 a.m. UTC
CONFIG_FSL_ESDHC_PIN_MUX should be enabled for ls2080ardb
whose eSDHC has pin mux with DSPI. This config makes sure
esdhc dts node would be fixed with disabled status if
DSPI is used, in case of any mmc issue in linux. Also,
esdhc should be added in default hwconfig since eSDHC is
used in default.

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v2:
		Update the commit information.

 include/configs/ls2080ardb.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Comments

York Sun Dec. 12, 2018, 9:35 p.m. UTC | #1
On 11/22/18 1:06 AM, Yinbo Zhu wrote:
> CONFIG_FSL_ESDHC_PIN_MUX should be enabled for ls2080ardb
> whose eSDHC has pin mux with DSPI. This config makes sure
> esdhc dts node would be fixed with disabled status if
> DSPI is used, in case of any mmc issue in linux. Also,
> esdhc should be added in default hwconfig since eSDHC is
> used in default.
> 
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
> Change in v2:
> 		Update the commit information.
> 
>  include/configs/ls2080ardb.h |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h
> index f6aa4ed..d2e80a8 100644
> --- a/include/configs/ls2080ardb.h
> +++ b/include/configs/ls2080ardb.h
> @@ -331,6 +331,7 @@ unsigned long get_board_sys_clk(void);
>  /*  MMC  */
>  #ifdef CONFIG_MMC
>  #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
> +#define CONFIG_FSL_ESDHC_PIN_MUX
>  #endif
>  

Please consider to detect pin mux at run time. We are moving to TFA boot
flow.

York
diff mbox series

Patch

diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h
index f6aa4ed..d2e80a8 100644
--- a/include/configs/ls2080ardb.h
+++ b/include/configs/ls2080ardb.h
@@ -331,6 +331,7 @@  unsigned long get_board_sys_clk(void);
 /*  MMC  */
 #ifdef CONFIG_MMC
 #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
+#define CONFIG_FSL_ESDHC_PIN_MUX
 #endif
 
 #define BOOT_TARGET_DEVICES(func) \
@@ -390,7 +391,7 @@  unsigned long get_board_sys_clk(void);
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #ifdef CONFIG_TFABOOT
 #define CONFIG_EXTRA_ENV_SETTINGS		\
-	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
+	"hwconfig=fsl_ddr:bank_intlv=auto;esdhc\0"	\
 	"ramdisk_addr=0x800000\0"		\
 	"ramdisk_size=0x2000000\0"		\
 	"fdt_high=0xa0000000\0"			\
@@ -459,7 +460,7 @@  unsigned long get_board_sys_clk(void);
 		"bootm $load_addr#$board\0"
 #else
 #define CONFIG_EXTRA_ENV_SETTINGS		\
-	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
+	"hwconfig=fsl_ddr:bank_intlv=auto;esdhc\0"	\
 	"ramdisk_addr=0x800000\0"		\
 	"ramdisk_size=0x2000000\0"		\
 	"fdt_high=0xa0000000\0"			\