Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1297868
| From | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] OMAP: RX51: save ATAGS data in the early boot stage |
| Date | 2015-12-24 15:10 +0100 |
| Message-ID | <qJeKC-7HG-11@gated-at.bofh.it> (permalink) |
| References | <qJeKB-7HG-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Nokia N900 (RX51) legacy userspace needs various ATAGS passed by the
bootloader (boot reason, device serial, boot mode, various GPIO swithes,
etc). Save that data early enough in the boot process, so it can be
exported later in /proc/atags
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
arch/arm/mach-omap2/board-generic.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 04a56cc..594eefe 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -17,6 +17,7 @@
#include <linux/irqdomain.h>
#include <asm/mach/arch.h>
+#include <asm/atags.h>
#include "common.h"
@@ -76,8 +77,17 @@ static const char *const n900_boards_compat[] __initconst = {
NULL,
};
+/* Legacy userspace on Nokia N900 needs ATAGS exported in /proc/atags,
+ * save them while the data is still there
+ */
+static void __init rx51_reserve(void)
+{
+ save_atags((const struct tag *)(PAGE_OFFSET + 0x100));
+ omap_reserve();
+}
+
DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board")
- .reserve = omap_reserve,
+ .reserve = rx51_reserve,
.map_io = omap3_map_io,
.init_early = omap3430_init_early,
.init_machine = omap_generic_init,
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
[PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/ Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
Re: [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/ Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-24 16:40 +0100
[PATCH 0/2] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
[PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 18:50 +0100
Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Tony Lindgren <tony@atomide.com> - 2015-12-24 20:00 +0100
Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-01 12:50 +0100
[PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 18:50 +0100
Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Tony Lindgren <tony@atomide.com> - 2015-12-24 20:00 +0100
Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 20:10 +0100
[PATCH 3/3] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
Re: [PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Arnd Bergmann <arnd@arndb.de> - 2015-12-24 17:00 +0100
csiph-web