* [PATCH] ARM: i.MX8M: bbu: fix variable name to used semantic
@ 2021-03-02 7:34 Alexander Kurz
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kurz @ 2021-03-02 7:34 UTC (permalink / raw)
To: barebox, Sascha Hauer; +Cc: Alexander Kurz, Ahmad Fatoum
From: Alexander Kurz <akurz@blala.de>
Both flags handle BBU behavior and should be bbu_flags.
Signed-off-by: Alexander Kurz <akurz@blala.de>
---
arch/arm/boards/nxp-imx8mm-evk/board.c | 6 +++---
arch/arm/boards/nxp-imx8mp-evk/board.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boards/nxp-imx8mm-evk/board.c b/arch/arm/boards/nxp-imx8mm-evk/board.c
index 2603a2ab0..6e4df6006 100644
--- a/arch/arm/boards/nxp-imx8mm-evk/board.c
+++ b/arch/arm/boards/nxp-imx8mm-evk/board.c
@@ -33,7 +33,7 @@ static int ar8031_phy_fixup(struct phy_device *phydev)
static int nxp_imx8mm_evk_init(void)
{
int emmc_bbu_flag = 0;
- int emmc_sd_flag = 0;
+ int sd_bbu_flag = 0;
if (!of_machine_is_compatible("fsl,imx8mm-evk"))
return 0;
@@ -46,14 +46,14 @@ static int nxp_imx8mm_evk_init(void)
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
} else {
of_device_enable_path("/chosen/environment-sd");
- emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
+ sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
} else {
of_device_enable_path("/chosen/environment-emmc");
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
- imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
+ imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
imx8m_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
phy_register_fixup_for_uid(PHY_ID_AR8031, AR_PHY_ID_MASK,
diff --git a/arch/arm/boards/nxp-imx8mp-evk/board.c b/arch/arm/boards/nxp-imx8mp-evk/board.c
index f64f46681..a3ff59810 100644
--- a/arch/arm/boards/nxp-imx8mp-evk/board.c
+++ b/arch/arm/boards/nxp-imx8mp-evk/board.c
@@ -17,7 +17,7 @@
static int nxp_imx8mp_evk_init(void)
{
int emmc_bbu_flag = 0;
- int emmc_sd_flag = 0;
+ int sd_bbu_flag = 0;
u32 val;
if (!of_machine_is_compatible("fsl,imx8mp-evk"))
@@ -29,14 +29,14 @@ static int nxp_imx8mp_evk_init(void)
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
} else {
of_device_enable_path("/chosen/environment-sd");
- emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
+ sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
} else {
of_device_enable_path("/chosen/environment-emmc");
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
- imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
+ imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
imx8m_bbu_internal_mmc_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
val = readl(MX8MP_IOMUXC_GPR_BASE_ADDR + MX8MP_IOMUXC_GPR1);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: i.MX8M: bbu: fix variable name to used semantic
@ 2021-03-04 6:32 Alexander Kurz
2021-03-04 11:14 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kurz @ 2021-03-04 6:32 UTC (permalink / raw)
To: barebox, Sascha Hauer; +Cc: Ahmad Fatoum, Alexander Kurz
From: Alexander Kurz <akurz@blala.de>
Both flags handle BBU behavior and should be bbu_flags.
Signed-off-by: Alexander Kurz <akurz@blala.de>
---
arch/arm/boards/nxp-imx8mm-evk/board.c | 6 +++---
arch/arm/boards/nxp-imx8mp-evk/board.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boards/nxp-imx8mm-evk/board.c b/arch/arm/boards/nxp-imx8mm-evk/board.c
index 2603a2ab0..6e4df6006 100644
--- a/arch/arm/boards/nxp-imx8mm-evk/board.c
+++ b/arch/arm/boards/nxp-imx8mm-evk/board.c
@@ -33,7 +33,7 @@ static int ar8031_phy_fixup(struct phy_device *phydev)
static int nxp_imx8mm_evk_init(void)
{
int emmc_bbu_flag = 0;
- int emmc_sd_flag = 0;
+ int sd_bbu_flag = 0;
if (!of_machine_is_compatible("fsl,imx8mm-evk"))
return 0;
@@ -46,14 +46,14 @@ static int nxp_imx8mm_evk_init(void)
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
} else {
of_device_enable_path("/chosen/environment-sd");
- emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
+ sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
} else {
of_device_enable_path("/chosen/environment-emmc");
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
- imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
+ imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
imx8m_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
phy_register_fixup_for_uid(PHY_ID_AR8031, AR_PHY_ID_MASK,
diff --git a/arch/arm/boards/nxp-imx8mp-evk/board.c b/arch/arm/boards/nxp-imx8mp-evk/board.c
index f64f46681..a3ff59810 100644
--- a/arch/arm/boards/nxp-imx8mp-evk/board.c
+++ b/arch/arm/boards/nxp-imx8mp-evk/board.c
@@ -17,7 +17,7 @@
static int nxp_imx8mp_evk_init(void)
{
int emmc_bbu_flag = 0;
- int emmc_sd_flag = 0;
+ int sd_bbu_flag = 0;
u32 val;
if (!of_machine_is_compatible("fsl,imx8mp-evk"))
@@ -29,14 +29,14 @@ static int nxp_imx8mp_evk_init(void)
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
} else {
of_device_enable_path("/chosen/environment-sd");
- emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
+ sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
} else {
of_device_enable_path("/chosen/environment-emmc");
emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
}
- imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
+ imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
imx8m_bbu_internal_mmc_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
val = readl(MX8MP_IOMUXC_GPR_BASE_ADDR + MX8MP_IOMUXC_GPR1);
--
2.20.1
_______________________________________________
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] ARM: i.MX8M: bbu: fix variable name to used semantic
2021-03-04 6:32 Alexander Kurz
@ 2021-03-04 11:14 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2021-03-04 11:14 UTC (permalink / raw)
To: Alexander Kurz; +Cc: barebox, Ahmad Fatoum
On Thu, Mar 04, 2021 at 06:32:58AM +0000, Alexander Kurz wrote:
> From: Alexander Kurz <akurz@blala.de>
>
> Both flags handle BBU behavior and should be bbu_flags.
>
> Signed-off-by: Alexander Kurz <akurz@blala.de>
> ---
> arch/arm/boards/nxp-imx8mm-evk/board.c | 6 +++---
> arch/arm/boards/nxp-imx8mp-evk/board.c | 6 +++---
> 2 files changed, 6 insertions(+), 6 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/boards/nxp-imx8mm-evk/board.c b/arch/arm/boards/nxp-imx8mm-evk/board.c
> index 2603a2ab0..6e4df6006 100644
> --- a/arch/arm/boards/nxp-imx8mm-evk/board.c
> +++ b/arch/arm/boards/nxp-imx8mm-evk/board.c
> @@ -33,7 +33,7 @@ static int ar8031_phy_fixup(struct phy_device *phydev)
> static int nxp_imx8mm_evk_init(void)
> {
> int emmc_bbu_flag = 0;
> - int emmc_sd_flag = 0;
> + int sd_bbu_flag = 0;
>
> if (!of_machine_is_compatible("fsl,imx8mm-evk"))
> return 0;
> @@ -46,14 +46,14 @@ static int nxp_imx8mm_evk_init(void)
> emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> } else {
> of_device_enable_path("/chosen/environment-sd");
> - emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
> + sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> }
> } else {
> of_device_enable_path("/chosen/environment-emmc");
> emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> }
>
> - imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
> + imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
> imx8m_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
>
> phy_register_fixup_for_uid(PHY_ID_AR8031, AR_PHY_ID_MASK,
> diff --git a/arch/arm/boards/nxp-imx8mp-evk/board.c b/arch/arm/boards/nxp-imx8mp-evk/board.c
> index f64f46681..a3ff59810 100644
> --- a/arch/arm/boards/nxp-imx8mp-evk/board.c
> +++ b/arch/arm/boards/nxp-imx8mp-evk/board.c
> @@ -17,7 +17,7 @@
> static int nxp_imx8mp_evk_init(void)
> {
> int emmc_bbu_flag = 0;
> - int emmc_sd_flag = 0;
> + int sd_bbu_flag = 0;
> u32 val;
>
> if (!of_machine_is_compatible("fsl,imx8mp-evk"))
> @@ -29,14 +29,14 @@ static int nxp_imx8mp_evk_init(void)
> emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> } else {
> of_device_enable_path("/chosen/environment-sd");
> - emmc_sd_flag = BBU_HANDLER_FLAG_DEFAULT;
> + sd_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> }
> } else {
> of_device_enable_path("/chosen/environment-emmc");
> emmc_bbu_flag = BBU_HANDLER_FLAG_DEFAULT;
> }
>
> - imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", emmc_sd_flag);
> + imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
> imx8m_bbu_internal_mmc_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
>
> val = readl(MX8MP_IOMUXC_GPR_BASE_ADDR + MX8MP_IOMUXC_GPR1);
> --
> 2.20.1
>
>
--
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:[~2021-03-04 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 7:34 [PATCH] ARM: i.MX8M: bbu: fix variable name to used semantic Alexander Kurz
2021-03-04 6:32 Alexander Kurz
2021-03-04 11:14 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox