mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: imx6: rename SPI NOR device to /dev/spinor0
@ 2015-07-20  8:33 Philipp Zabel
  2015-07-24  7:21 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2015-07-20  8:33 UTC (permalink / raw)
  To: barebox

Barebox currently names the SPI NOR device "/dev/sst25vf016b",
but the barebox update handler still points to "/dev/m25p80",
causing barebox_update to fail.
Choose a descriptive name instead.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 arch/arm/boards/freescale-mx6-sabrelite/board.c | 4 ++--
 arch/arm/dts/imx6q-sabrelite.dts                | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index edf0811..d40f99b 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -164,8 +164,8 @@ static int sabrelite_devices_init(void)
 
 	armlinux_set_architecture(3769);
 
-	imx6_bbu_internal_spi_i2c_register_handler("spiflash", "/dev/m25p0.barebox",
-			BBU_HANDLER_FLAG_DEFAULT);
+	imx6_bbu_internal_spi_i2c_register_handler("spiflash",
+			"/dev/spinor0.barebox", BBU_HANDLER_FLAG_DEFAULT);
 
 	return 0;
 }
diff --git a/arch/arm/dts/imx6q-sabrelite.dts b/arch/arm/dts/imx6q-sabrelite.dts
index 96e4688..61ca82e 100644
--- a/arch/arm/dts/imx6q-sabrelite.dts
+++ b/arch/arm/dts/imx6q-sabrelite.dts
@@ -17,6 +17,10 @@
 / {
 	model = "Freescale i.MX6 Quad SABRE Lite Board";
 	compatible = "fsl,imx6q-sabrelite", "fsl,imx6q";
+
+	aliases {
+		spinor0 = &flash;
+	};
 };
 
 &sata {
-- 
2.1.4


_______________________________________________
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: imx6: rename SPI NOR device to /dev/spinor0
  2015-07-20  8:33 [PATCH] ARM: imx6: rename SPI NOR device to /dev/spinor0 Philipp Zabel
@ 2015-07-24  7:21 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-07-24  7:21 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: barebox

On Mon, Jul 20, 2015 at 10:33:05AM +0200, Philipp Zabel wrote:
> Barebox currently names the SPI NOR device "/dev/sst25vf016b",
> but the barebox update handler still points to "/dev/m25p80",
> causing barebox_update to fail.
> Choose a descriptive name instead.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  arch/arm/boards/freescale-mx6-sabrelite/board.c | 4 ++--
>  arch/arm/dts/imx6q-sabrelite.dts                | 4 ++++
>  2 files changed, 6 insertions(+), 2 deletions(-)

Applied, 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] 2+ messages in thread

end of thread, other threads:[~2015-07-24  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20  8:33 [PATCH] ARM: imx6: rename SPI NOR device to /dev/spinor0 Philipp Zabel
2015-07-24  7:21 ` Sascha Hauer

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