* [PATCH] MIPS: malta: register memory bank
@ 2012-07-06 10:34 Antony Pavlov
2012-07-09 7:24 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2012-07-06 10:34 UTC (permalink / raw)
To: barebox
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/boards/qemu-malta/init.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/mips/boards/qemu-malta/init.c b/arch/mips/boards/qemu-malta/init.c
index 2a6eadb..0efc92a 100644
--- a/arch/mips/boards/qemu-malta/init.c
+++ b/arch/mips/boards/qemu-malta/init.c
@@ -23,6 +23,7 @@
#include <types.h>
#include <driver.h>
#include <init.h>
+#include <memory.h>
#include <ns16550.h>
#include <mach/hardware.h>
#include <io.h>
@@ -30,6 +31,14 @@
#include <sizes.h>
#include <asm/common.h>
+static int malta_mem_init(void)
+{
+ barebox_add_memory_bank("ram0", 0xa0000000, SZ_256M);
+
+ return 0;
+}
+mem_initcall(malta_mem_init);
+
static int malta_devices_init(void)
{
add_cfi_flash_device(0, 0x1e000000, SZ_4M, 0);
--
1.7.10
_______________________________________________
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] MIPS: malta: register memory bank
2012-07-06 10:34 [PATCH] MIPS: malta: register memory bank Antony Pavlov
@ 2012-07-09 7:24 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-07-09 7:24 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Fri, Jul 06, 2012 at 02:34:02PM +0400, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
> arch/mips/boards/qemu-malta/init.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
Applied, thanks
Sascha
>
> diff --git a/arch/mips/boards/qemu-malta/init.c b/arch/mips/boards/qemu-malta/init.c
> index 2a6eadb..0efc92a 100644
> --- a/arch/mips/boards/qemu-malta/init.c
> +++ b/arch/mips/boards/qemu-malta/init.c
> @@ -23,6 +23,7 @@
> #include <types.h>
> #include <driver.h>
> #include <init.h>
> +#include <memory.h>
> #include <ns16550.h>
> #include <mach/hardware.h>
> #include <io.h>
> @@ -30,6 +31,14 @@
> #include <sizes.h>
> #include <asm/common.h>
>
> +static int malta_mem_init(void)
> +{
> + barebox_add_memory_bank("ram0", 0xa0000000, SZ_256M);
> +
> + return 0;
> +}
> +mem_initcall(malta_mem_init);
> +
> static int malta_devices_init(void)
> {
> add_cfi_flash_device(0, 0x1e000000, SZ_4M, 0);
> --
> 1.7.10
>
>
> _______________________________________________
> 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] 2+ messages in thread
end of thread, other threads:[~2012-07-09 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 10:34 [PATCH] MIPS: malta: register memory bank Antony Pavlov
2012-07-09 7:24 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox