mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Shravan Kumar <shravan.k@phytec.in>
To: barebox@lists.infradead.org
Cc: shravan <shravan.k@phytec.in>
Subject: [PATCH 2/2] PCM051: Added barebox update SPI NOR MLO handler
Date: Thu, 22 Aug 2013 14:05:37 +0200	[thread overview]
Message-ID: <1377173137-27320-2-git-send-email-shravan.k@phytec.in> (raw)
In-Reply-To: <1377173137-27320-1-git-send-email-shravan.k@phytec.in>

From: shravan <shravan.k@phytec.in>

Signed-off-by: shravan <shravan.k@phytec.in>
---
 arch/arm/boards/pcm051/board.c    |    3 +++
 arch/arm/configs/pcm051_defconfig |    1 +
 2 files changed, 4 insertions(+)

diff --git a/arch/arm/boards/pcm051/board.c b/arch/arm/boards/pcm051/board.c
index 35a3a25..8ce3953 100644
--- a/arch/arm/boards/pcm051/board.c
+++ b/arch/arm/boards/pcm051/board.c
@@ -39,6 +39,7 @@
 #include <spi/flash.h>
 #include <i2c/i2c.h>
 #include <i2c/at24.h>
+#include <mach/bbu.h>
 
 #include "mux.h"
 
@@ -209,6 +210,8 @@ static int pcm051_devices_init(void)
 	armlinux_set_bootparams((void *)(AM33XX_DRAM_ADDR_SPACE_START + 0x100));
 	armlinux_set_architecture(MACH_TYPE_PCM051);
 
+	omap_bbu_spi_nor_mlo_register_handler("MLO.spi", "/dev/m25p0.xload");
+
 	return 0;
 }
 device_initcall(pcm051_devices_init);
diff --git a/arch/arm/configs/pcm051_defconfig b/arch/arm/configs/pcm051_defconfig
index 0bc7c90..13ddf07 100644
--- a/arch/arm/configs/pcm051_defconfig
+++ b/arch/arm/configs/pcm051_defconfig
@@ -1,5 +1,6 @@
 CONFIG_ARCH_OMAP=y
 CONFIG_ARCH_AM33XX=y
+CONFIG_BAREBOX_UPDATE_OMAP_SPI_NOR_MLO=y
 CONFIG_MACH_PCM051=y
 CONFIG_OMAP_UART1=y
 CONFIG_AEABI=y
-- 
1.7.9.5


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

  reply	other threads:[~2013-08-22 12:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-22 12:05 [PATCH 1/2] ARM: omap: barebox update spi nor " Shravan Kumar
2013-08-22 12:05 ` Shravan Kumar [this message]
2013-08-23  6:46 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377173137-27320-2-git-send-email-shravan.k@phytec.in \
    --to=shravan.k@phytec.in \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox