* [PATCH] ARM: imx53: vincell: guard board initcall
@ 2015-08-27 8:59 Lucas Stach
2015-08-28 6:59 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2015-08-27 8:59 UTC (permalink / raw)
To: barebox
Make sure that the initcall only executes on the expected board.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
Sascha, please apply to master. This breaks other boards.
---
arch/arm/boards/guf-vincell/board.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/guf-vincell/board.c b/arch/arm/boards/guf-vincell/board.c
index d27d9e4ddf05..ad47ee25580b 100644
--- a/arch/arm/boards/guf-vincell/board.c
+++ b/arch/arm/boards/guf-vincell/board.c
@@ -40,6 +40,9 @@ static void vincell_fec_reset(void)
static int vincell_devices_init(void)
{
+ if (!of_machine_is_compatible("guf,imx53-vincell"))
+ return 0;
+
writel(0, MX53_M4IF_BASE_ADDR + 0xc);
clk_set_rate(clk_lookup("emi_slow_podf"), 133333334);
--
2.5.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: imx53: vincell: guard board initcall
2015-08-27 8:59 [PATCH] ARM: imx53: vincell: guard board initcall Lucas Stach
@ 2015-08-28 6:59 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-08-28 6:59 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Thu, Aug 27, 2015 at 10:59:14AM +0200, Lucas Stach wrote:
> Make sure that the initcall only executes on the expected board.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> Sascha, please apply to master. This breaks other boards.
Did that.
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] 2+ messages in thread
end of thread, other threads:[~2015-08-28 7:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 8:59 [PATCH] ARM: imx53: vincell: guard board initcall Lucas Stach
2015-08-28 6:59 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox