mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s()
@ 2016-02-15  9:56 Stefan Christ
  2016-02-15  9:56 ` [PATCH 2/3] ARM: imx: clocksource: add new DT compatible Stefan Christ
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Christ @ 2016-02-15  9:56 UTC (permalink / raw)
  To: barebox

The cpu_is_mx6* function for the i.MX6 Solo was missing. All other
functions are already defined.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
---
 arch/arm/mach-imx/include/mach/imx6.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/include/mach/imx6.h b/arch/arm/mach-imx/include/mach/imx6.h
index 3ddb6d2..e8ffa47 100644
--- a/arch/arm/mach-imx/include/mach/imx6.h
+++ b/arch/arm/mach-imx/include/mach/imx6.h
@@ -61,6 +61,7 @@ static inline int imx6_cpu_type(void)
 		return cpu_mx6_is_##str();				\
 	}
 
+DEFINE_MX6_CPU_TYPE(mx6s, IMX6_CPUTYPE_IMX6S);
 DEFINE_MX6_CPU_TYPE(mx6dl, IMX6_CPUTYPE_IMX6DL);
 DEFINE_MX6_CPU_TYPE(mx6q, IMX6_CPUTYPE_IMX6Q);
 DEFINE_MX6_CPU_TYPE(mx6d, IMX6_CPUTYPE_IMX6D);
-- 
1.9.1


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

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

* [PATCH 2/3] ARM: imx: clocksource: add new DT compatible
  2016-02-15  9:56 [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Stefan Christ
@ 2016-02-15  9:56 ` Stefan Christ
  2016-02-15  9:56 ` [PATCH 3/3] ARM: imx6: physom: fix phyflex workaround on Dual and Solo Stefan Christ
  2016-02-17  7:07 ` [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Christ @ 2016-02-15  9:56 UTC (permalink / raw)
  To: barebox

Since commit 0ff58575c9d66 ("dts: update to v4.5-rc1") the compatible
"fsl,imx6q-gpt" was removed from imx6dl.dtsi. Now there is only the
Solo/DualLite specific compatible "fsl,imx6dl-gpt".  Adapt the driver
for that change.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
---
 arch/arm/mach-imx/clocksource.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index a11b978..8766e39 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -144,6 +144,9 @@ static __maybe_unused struct of_device_id imx_gpt_dt_ids[] = {
 		.compatible = "fsl,imx6q-gpt",
 		.data = &regs_imx31,
 	}, {
+		.compatible = "fsl,imx6dl-gpt",
+		.data = &regs_imx31,
+	}, {
 		/* sentinel */
 	}
 };
-- 
1.9.1


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

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

* [PATCH 3/3] ARM: imx6: physom: fix phyflex workaround on Dual and Solo
  2016-02-15  9:56 [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Stefan Christ
  2016-02-15  9:56 ` [PATCH 2/3] ARM: imx: clocksource: add new DT compatible Stefan Christ
@ 2016-02-15  9:56 ` Stefan Christ
  2016-02-17  7:07 ` [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Christ @ 2016-02-15  9:56 UTC (permalink / raw)
  To: barebox

Since commit 764ae1647cafa ("ARM: i.MX: Add correct SoC type detection
for i.MX6") the definition of the function cpu_is_mx6q and cpu_is_mx6dl
has changed.  Before that change they match the SoM family Quad/Dual and
DualLite/Solo. After that change they are SoM specific. They match only
Quad and DualLite. There are extra functions cpu_is_mx6d and cpu_is_mx6s
for SoM Dual and Solo.

We have not seen any real world consequences of this problem yet.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
---
 arch/arm/boards/phytec-som-imx6/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/phytec-som-imx6/board.c b/arch/arm/boards/phytec-som-imx6/board.c
index 9aefa55..85ad8cb 100644
--- a/arch/arm/boards/phytec-som-imx6/board.c
+++ b/arch/arm/boards/phytec-som-imx6/board.c
@@ -63,9 +63,9 @@ static void phyflex_err006282_workaround(void)
 	mdelay(2);
 	gpio_set_value(MX6_PHYFLEX_ERR006282, 0);
 
-	if (cpu_is_mx6q())
+	if (cpu_is_mx6q() || cpu_is_mx6d())
 		mxc_iomux_v3_setup_pad(MX6Q_PAD_SD4_DAT3__GPIO_2_11_PD);
-	else if (cpu_is_mx6dl())
+	else if (cpu_is_mx6dl() || cpu_is_mx6s())
 		mxc_iomux_v3_setup_pad(MX6DL_PAD_SD4_DAT3__GPIO_2_11);
 
 	gpio_direction_input(MX6_PHYFLEX_ERR006282);
-- 
1.9.1


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

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

* Re: [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s()
  2016-02-15  9:56 [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Stefan Christ
  2016-02-15  9:56 ` [PATCH 2/3] ARM: imx: clocksource: add new DT compatible Stefan Christ
  2016-02-15  9:56 ` [PATCH 3/3] ARM: imx6: physom: fix phyflex workaround on Dual and Solo Stefan Christ
@ 2016-02-17  7:07 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2016-02-17  7:07 UTC (permalink / raw)
  To: Stefan Christ; +Cc: barebox

On Mon, Feb 15, 2016 at 10:56:53AM +0100, Stefan Christ wrote:
> The cpu_is_mx6* function for the i.MX6 Solo was missing. All other
> functions are already defined.
> 
> Signed-off-by: Stefan Christ <s.christ@phytec.de>
> ---
>  arch/arm/mach-imx/include/mach/imx6.h | 1 +
>  1 file changed, 1 insertion(+)

Applied these three to master, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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] 4+ messages in thread

end of thread, other threads:[~2016-02-17  7:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15  9:56 [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Stefan Christ
2016-02-15  9:56 ` [PATCH 2/3] ARM: imx: clocksource: add new DT compatible Stefan Christ
2016-02-15  9:56 ` [PATCH 3/3] ARM: imx6: physom: fix phyflex workaround on Dual and Solo Stefan Christ
2016-02-17  7:07 ` [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s() Sascha Hauer

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