mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers
@ 2022-03-21  9:21 Oleksij Rempel
  2022-03-21  9:21 ` [PATCH v1 2/2] ARM: boards: protonic-imx6: properly configure RGMII direction for the FEC MAC Oleksij Rempel
  2022-03-28  8:48 ` [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Oleksij Rempel @ 2022-03-21  9:21 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

Add barebox update handler for the SD ports.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/arm/boards/protonic-imx6/board.c | 34 +++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
index adde1be8d9..5ca80bd306 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -74,6 +74,7 @@ struct prt_machine_data {
 	unsigned int i2c_addr;
 	unsigned int i2c_adapter;
 	unsigned int emmc_usdhc;
+	unsigned int sd_usdhc;
 	unsigned int flags;
 	int (*init)(struct prt_imx6_priv *priv);
 };
@@ -442,6 +443,16 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
 	if (ret)
 		goto exit_bbu;
 
+	devicefile = basprintf("mmc%d", dcfg->sd_usdhc);
+	if (!devicefile) {
+		ret = -ENOMEM;
+		goto exit_bbu;
+	}
+
+	ret = imx6_bbu_internal_mmc_register_handler("SD", devicefile, 0);
+	if (ret)
+		goto exit_bbu;
+
 	return 0;
 exit_bbu:
 	dev_err(priv->dev, "Failed to register bbu: %pe\n", ERR_PTR(ret));
@@ -850,6 +861,7 @@ static const struct prt_machine_data prt_imx6_cfg_alti6p[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_EMMC,
 	}, {
 		.hw_id = UINT_MAX
@@ -863,6 +875,7 @@ static const struct prt_machine_data prt_imx6_cfg_victgo[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_victgo,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -877,6 +890,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
 		.i2c_addr = 0x50,
 		.i2c_adapter = 1,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = HW_TYPE_VICUT1,
@@ -884,6 +898,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_yaco,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -892,6 +907,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_new,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -906,6 +922,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
 		.i2c_addr = 0x50,
 		.i2c_adapter = 1,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = HW_TYPE_VICUT1,
@@ -913,6 +930,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_yaco,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -921,6 +939,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_yaco,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -929,6 +948,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_new,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -943,6 +963,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicutp[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_kvg_new,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
@@ -957,6 +978,7 @@ static const struct prt_machine_data prt_imx6_cfg_lanmcu[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
 	}, {
 		.hw_id = UINT_MAX
@@ -970,6 +992,7 @@ static const struct prt_machine_data prt_imx6_cfg_plybas[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR | PRT_IMX6_USB_LONG_DELAY,
 	}, {
 		.hw_id = UINT_MAX
@@ -983,6 +1006,7 @@ static const struct prt_machine_data prt_imx6_cfg_plym2m[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR | PRT_IMX6_USB_LONG_DELAY,
 	}, {
 		.hw_id = UINT_MAX
@@ -996,6 +1020,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6g[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 1,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_prti6g,
 		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
 	}, {
@@ -1010,6 +1035,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6q[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 2,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = HW_TYPE_PRTI6Q,
@@ -1017,6 +1043,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6q[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = UINT_MAX
@@ -1030,6 +1057,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtmvt[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = UINT_MAX
@@ -1043,6 +1071,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtrvt[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
 	}, {
 		.hw_id = UINT_MAX
@@ -1056,6 +1085,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtvt7[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.init = prt_imx6_init_prtvt7,
 		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER |
 			PRT_IMX6_USB_LONG_DELAY,
@@ -1071,6 +1101,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtwd2[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_EMMC,
 	}, {
 		.hw_id = UINT_MAX
@@ -1084,6 +1115,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtwd3[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
+		.sd_usdhc = 0,
 		.flags = PRT_IMX6_BOOTSRC_EMMC,
 	}, {
 		.hw_id = UINT_MAX
@@ -1097,6 +1129,7 @@ static const struct prt_machine_data prt_imx6_cfg_jozacp[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 0,
+		.sd_usdhc = 2,
 		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
 	}, {
 		.hw_id = HW_TYPE_JOZACPP,
@@ -1104,6 +1137,7 @@ static const struct prt_machine_data prt_imx6_cfg_jozacp[] = {
 		.i2c_addr = 0x51,
 		.i2c_adapter = 0,
 		.emmc_usdhc = 0,
+		.sd_usdhc = 2,
 		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
 	}, {
 		.hw_id = UINT_MAX
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v1 2/2] ARM: boards: protonic-imx6: properly configure RGMII direction for the FEC MAC
  2022-03-21  9:21 [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Oleksij Rempel
@ 2022-03-21  9:21 ` Oleksij Rempel
  2022-03-28  8:48 ` [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Oleksij Rempel @ 2022-03-21  9:21 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

To make SJA1105 switch work properly with bareobx, we need to configure
RGMII ref_clk.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/arm/boards/protonic-imx6/board.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
index 5ca80bd306..1a5c1a7bbd 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -654,6 +654,18 @@ static int prt_imx6_init_prtvt7(struct prt_imx6_priv *priv)
 	return 0;
 }
 
+static int prt_imx6_init_prtwd3(struct prt_imx6_priv *priv)
+{
+	void __iomem *iomux = (void *)MX6_IOMUXC_BASE_ADDR;
+	uint32_t val;
+
+	val = readl(iomux + IOMUXC_GPR1);
+	val |= IMX6Q_GPR1_ENET_CLK_SEL_ANATOP;
+	writel(val, iomux + IOMUXC_GPR1);
+
+	return 0;
+}
+
 static int prt_imx6_rfid_fixup(struct prt_imx6_priv *priv,
 			       struct device_node *root)
 {
@@ -1116,6 +1128,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtwd3[] = {
 		.i2c_adapter = 0,
 		.emmc_usdhc = 2,
 		.sd_usdhc = 0,
+		.init = prt_imx6_init_prtwd3,
 		.flags = PRT_IMX6_BOOTSRC_EMMC,
 	}, {
 		.hw_id = UINT_MAX
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers
  2022-03-21  9:21 [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Oleksij Rempel
  2022-03-21  9:21 ` [PATCH v1 2/2] ARM: boards: protonic-imx6: properly configure RGMII direction for the FEC MAC Oleksij Rempel
@ 2022-03-28  8:48 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2022-03-28  8:48 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Mon, Mar 21, 2022 at 10:21:02AM +0100, Oleksij Rempel wrote:
> Add barebox update handler for the SD ports.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  arch/arm/boards/protonic-imx6/board.c | 34 +++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
> index adde1be8d9..5ca80bd306 100644
> --- a/arch/arm/boards/protonic-imx6/board.c
> +++ b/arch/arm/boards/protonic-imx6/board.c
> @@ -74,6 +74,7 @@ struct prt_machine_data {
>  	unsigned int i2c_addr;
>  	unsigned int i2c_adapter;
>  	unsigned int emmc_usdhc;
> +	unsigned int sd_usdhc;
>  	unsigned int flags;
>  	int (*init)(struct prt_imx6_priv *priv);
>  };
> @@ -442,6 +443,16 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
>  	if (ret)
>  		goto exit_bbu;
>  
> +	devicefile = basprintf("mmc%d", dcfg->sd_usdhc);
> +	if (!devicefile) {
> +		ret = -ENOMEM;
> +		goto exit_bbu;
> +	}
> +
> +	ret = imx6_bbu_internal_mmc_register_handler("SD", devicefile, 0);
> +	if (ret)
> +		goto exit_bbu;
> +
>  	return 0;
>  exit_bbu:
>  	dev_err(priv->dev, "Failed to register bbu: %pe\n", ERR_PTR(ret));
> @@ -850,6 +861,7 @@ static const struct prt_machine_data prt_imx6_cfg_alti6p[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -863,6 +875,7 @@ static const struct prt_machine_data prt_imx6_cfg_victgo[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_victgo,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -877,6 +890,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
>  		.i2c_addr = 0x50,
>  		.i2c_adapter = 1,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = HW_TYPE_VICUT1,
> @@ -884,6 +898,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_yaco,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -892,6 +907,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_new,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -906,6 +922,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
>  		.i2c_addr = 0x50,
>  		.i2c_adapter = 1,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = HW_TYPE_VICUT1,
> @@ -913,6 +930,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_yaco,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -921,6 +939,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_yaco,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -929,6 +948,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicut1q[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_new,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -943,6 +963,7 @@ static const struct prt_machine_data prt_imx6_cfg_vicutp[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_kvg_new,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
> @@ -957,6 +978,7 @@ static const struct prt_machine_data prt_imx6_cfg_lanmcu[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -970,6 +992,7 @@ static const struct prt_machine_data prt_imx6_cfg_plybas[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR | PRT_IMX6_USB_LONG_DELAY,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -983,6 +1006,7 @@ static const struct prt_machine_data prt_imx6_cfg_plym2m[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR | PRT_IMX6_USB_LONG_DELAY,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -996,6 +1020,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6g[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 1,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_prti6g,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
>  	}, {
> @@ -1010,6 +1035,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6q[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 2,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = HW_TYPE_PRTI6Q,
> @@ -1017,6 +1043,7 @@ static const struct prt_machine_data prt_imx6_cfg_prti6q[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -1030,6 +1057,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtmvt[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -1043,6 +1071,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtrvt[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_SPI_NOR,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -1056,6 +1085,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtvt7[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.init = prt_imx6_init_prtvt7,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER |
>  			PRT_IMX6_USB_LONG_DELAY,
> @@ -1071,6 +1101,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtwd2[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -1084,6 +1115,7 @@ static const struct prt_machine_data prt_imx6_cfg_prtwd3[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 2,
> +		.sd_usdhc = 0,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC,
>  	}, {
>  		.hw_id = UINT_MAX
> @@ -1097,6 +1129,7 @@ static const struct prt_machine_data prt_imx6_cfg_jozacp[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 0,
> +		.sd_usdhc = 2,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
>  	}, {
>  		.hw_id = HW_TYPE_JOZACPP,
> @@ -1104,6 +1137,7 @@ static const struct prt_machine_data prt_imx6_cfg_jozacp[] = {
>  		.i2c_addr = 0x51,
>  		.i2c_adapter = 0,
>  		.emmc_usdhc = 0,
> +		.sd_usdhc = 2,
>  		.flags = PRT_IMX6_BOOTSRC_EMMC | PRT_IMX6_BOOTCHOOSER,
>  	}, {
>  		.hw_id = UINT_MAX
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-28  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21  9:21 [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Oleksij Rempel
2022-03-21  9:21 ` [PATCH v1 2/2] ARM: boards: protonic-imx6: properly configure RGMII direction for the FEC MAC Oleksij Rempel
2022-03-28  8:48 ` [PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox