Re: [PATCH v2] New Nokia RX-51 power supply battery driver

From: Pavel Machek
Date: Wed Apr 10 2013 - 05:26:15 EST


Hi!

> open source flasher 0xFFFF (working on x86-64 too) which can load
> kernel and initfs via usb to n900 RAM without flashing nand:
> https://gitorious.org/0xffff/0xffff

Well, it compiles, and seems to work. Includes extensive
documentation, but...

How do I put the device into mode where it responds to 0xffff? It
seems to be there for only a second after power off...?

n90- has very confusing startup sequence...

> If you need help with booting some upstream kernel on n900 join
> to freenode #maemo-alternatives channel :-)

Hmm, I did, seems I'm alone there :-(.
Pavel
PS: I seem to need attached patches to get defconfig to compile:

diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index 9fe4bdf..4aa13ce 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -1037,7 +1037,7 @@ static struct hsi_board_info __initdata rx51_ssi_cl[] = {
.mode = HSI_MODE_FRAME,
.channels = 4,
.speed = 55000,
- .arb_mode = HSI_ARB_RR,
+// .arb_mode = HSI_ARB_RR,
},
.rx_cfg = {
.mode = HSI_MODE_FRAME,
diff --git a/arch/arm/mach-omap2/board-rx51-smc.S b/arch/arm/mach-omap2/board-rx51-smc.S
index 70e2eb7..bdfb2d7 100644
--- a/arch/arm/mach-omap2/board-rx51-smc.S
+++ b/arch/arm/mach-omap2/board-rx51-smc.S
@@ -20,7 +20,7 @@
* with number of parametrs
*/
ENTRY(rx51_ppa_smc)
- .arch_extension sec
+// .arch_extension sec
stmfd sp!, {r4-r12, lr}
mov r12, r0 @ Copy the secure service ID
mov r3, r2 @ Copy the pointer to va_list in R3
diff --git a/drivers/char/hw_random/omap3-rom-asm.S b/drivers/char/hw_random/omap3-rom-asm.S
index ce82e16..65d2b5e 100644
--- a/drivers/char/hw_random/omap3-rom-asm.S
+++ b/drivers/char/hw_random/omap3-rom-asm.S
@@ -12,7 +12,7 @@
#include <asm/assembler.h>

ENTRY(omap3_rng_call_rom_asm)
- .arch_extension sec
+// .arch_extension sec
stmfd sp!, {r4-r12, lr}
stmfd sp!, {r0-r3}
bl v7_flush_dcache_all

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/