* [PATCH] ARM: hummingboard: add barebox update handler
@ 2014-04-13 8:19 Lucas Stach
2014-06-03 13:52 ` Lucas Stach
0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2014-04-13 8:19 UTC (permalink / raw)
To: barebox
It wasn't hard to find the right spot to copy the image
to before, but this makes it a bit more explicit.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boards/solidrun-hummingboard/board.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boards/solidrun-hummingboard/board.c b/arch/arm/boards/solidrun-hummingboard/board.c
index afc5c867b25c..de848467451d 100644
--- a/arch/arm/boards/solidrun-hummingboard/board.c
+++ b/arch/arm/boards/solidrun-hummingboard/board.c
@@ -20,6 +20,7 @@
#include <envfs.h>
#include <gpio.h>
#include <init.h>
+#include <mach/bbu.h>
#include <mach/generic.h>
#include <mach/imx6-regs.h>
#include <mach/imx6.h>
@@ -75,6 +76,18 @@ static int hummingboard_device_init(void)
}
device_initcall(hummingboard_device_init);
+static int hummingboard_late_init(void)
+{
+ if (!of_machine_is_compatible("solidrun,hummingboard"))
+ return 0;
+
+ imx6_bbu_internal_mmc_register_handler("sdcard", "/dev/mmc1.barebox",
+ BBU_HANDLER_FLAG_DEFAULT, NULL, 0, 0x10000000);
+
+ return 0;
+}
+late_initcall(hummingboard_late_init);
+
static int hummingboard_lwl_init(void)
{
if (!of_machine_is_compatible("solidrun,hummingboard"))
--
1.9.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: hummingboard: add barebox update handler
2014-04-13 8:19 [PATCH] ARM: hummingboard: add barebox update handler Lucas Stach
@ 2014-06-03 13:52 ` Lucas Stach
2014-06-03 20:03 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2014-06-03 13:52 UTC (permalink / raw)
To: barebox
Ping.
Am Sonntag, den 13.04.2014, 10:19 +0200 schrieb Lucas Stach:
> It wasn't hard to find the right spot to copy the image
> to before, but this makes it a bit more explicit.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> arch/arm/boards/solidrun-hummingboard/board.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/boards/solidrun-hummingboard/board.c b/arch/arm/boards/solidrun-hummingboard/board.c
> index afc5c867b25c..de848467451d 100644
> --- a/arch/arm/boards/solidrun-hummingboard/board.c
> +++ b/arch/arm/boards/solidrun-hummingboard/board.c
> @@ -20,6 +20,7 @@
> #include <envfs.h>
> #include <gpio.h>
> #include <init.h>
> +#include <mach/bbu.h>
> #include <mach/generic.h>
> #include <mach/imx6-regs.h>
> #include <mach/imx6.h>
> @@ -75,6 +76,18 @@ static int hummingboard_device_init(void)
> }
> device_initcall(hummingboard_device_init);
>
> +static int hummingboard_late_init(void)
> +{
> + if (!of_machine_is_compatible("solidrun,hummingboard"))
> + return 0;
> +
> + imx6_bbu_internal_mmc_register_handler("sdcard", "/dev/mmc1.barebox",
> + BBU_HANDLER_FLAG_DEFAULT, NULL, 0, 0x10000000);
> +
> + return 0;
> +}
> +late_initcall(hummingboard_late_init);
> +
> static int hummingboard_lwl_init(void)
> {
> if (!of_machine_is_compatible("solidrun,hummingboard"))
--
Pengutronix e.K. | Lucas Stach |
Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
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: hummingboard: add barebox update handler
2014-06-03 13:52 ` Lucas Stach
@ 2014-06-03 20:03 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-06-03 20:03 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Tue, Jun 03, 2014 at 03:52:47PM +0200, Lucas Stach wrote:
> Ping.
Applied, thanks.
Sascha
>
> Am Sonntag, den 13.04.2014, 10:19 +0200 schrieb Lucas Stach:
> > It wasn't hard to find the right spot to copy the image
> > to before, but this makes it a bit more explicit.
> >
> > Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> > ---
> > arch/arm/boards/solidrun-hummingboard/board.c | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/arch/arm/boards/solidrun-hummingboard/board.c b/arch/arm/boards/solidrun-hummingboard/board.c
> > index afc5c867b25c..de848467451d 100644
> > --- a/arch/arm/boards/solidrun-hummingboard/board.c
> > +++ b/arch/arm/boards/solidrun-hummingboard/board.c
> > @@ -20,6 +20,7 @@
> > #include <envfs.h>
> > #include <gpio.h>
> > #include <init.h>
> > +#include <mach/bbu.h>
> > #include <mach/generic.h>
> > #include <mach/imx6-regs.h>
> > #include <mach/imx6.h>
> > @@ -75,6 +76,18 @@ static int hummingboard_device_init(void)
> > }
> > device_initcall(hummingboard_device_init);
> >
> > +static int hummingboard_late_init(void)
> > +{
> > + if (!of_machine_is_compatible("solidrun,hummingboard"))
> > + return 0;
> > +
> > + imx6_bbu_internal_mmc_register_handler("sdcard", "/dev/mmc1.barebox",
> > + BBU_HANDLER_FLAG_DEFAULT, NULL, 0, 0x10000000);
> > +
> > + return 0;
> > +}
> > +late_initcall(hummingboard_late_init);
> > +
> > static int hummingboard_lwl_init(void)
> > {
> > if (!of_machine_is_compatible("solidrun,hummingboard"))
>
> --
> Pengutronix e.K. | Lucas Stach |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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] 3+ messages in thread
end of thread, other threads:[~2014-06-03 20:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-13 8:19 [PATCH] ARM: hummingboard: add barebox update handler Lucas Stach
2014-06-03 13:52 ` Lucas Stach
2014-06-03 20:03 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox