[PATCH 5/6] ArchosG9: add keyboard input and new reset menu entries

2013-03-16 Thread Vicente Bergas
The number of "#if" has been reduced to have less obfuscation, now have the three keys or have none of them Signed-off-by: Vicente Bergas --- arch/arm/boards/archosg9/board.c | 22 ++ arch/arm/boards/archosg9/env/bin/init | 28 +++

[PATCH 3/6] gpio_keys: detect keys pressed before booting

2013-03-16 Thread Vicente Bergas
If a key is pressed but not released before booting and the key is connected to an active low gpio it's not detected. This patch solves that. Signed-off-by: Vicente Bergas --- drivers/input/gpio_keys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/gpio_keys.c b/drivers/inpu

[PATCH 2/6] ArchosG9: zero all features before setting them

2013-03-16 Thread Vicente Bergas
Signed-off-by: Vicente Bergas --- arch/arm/boards/archosg9/archos_features.c | 58 +- 1 file changed, 16 insertions(+), 42 deletions(-) diff --git a/arch/arm/boards/archosg9/archos_features.c b/arch/arm/boards/archosg9/archos_features.c index 5d93403..b396734 100644

[PATCH 1/6] OMAP4: check for usb availability at device registration

2013-03-16 Thread Vicente Bergas
this way serial-over-usb driver is registered always, but the device is only registered when booting from usb. Signed-off-by: Vicente Bergas --- arch/arm/boards/archosg9/board.c | 6 +- drivers/serial/serial_omap4_usbboot.c | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff

[PATCH 6/6] menu: avoid errors when building submenus

2013-03-16 Thread Vicente Bergas
This patch is not intended to be applied because has already been rejected. It's here only for completeness as the only solution available nowadays for the problem it solves. Signed-off-by: Vicente Bergas --- arch/arm/boards/archosg9/env/boot/sd-card-android | 2 +- arch/arm/boards/archosg

[PATCH 0/6] ArchosG9: add keyboard input and new reset menu entries (v2)

2013-03-16 Thread Vicente Bergas
This is the second version of this patch series, it includes all feedback received which is greatly appreciated. Vicente Bergas (6): OMAP4: check for usb availability at device registration ArchosG9: zero all features before setting them gpio_keys: detect keys pressed before booting OMAP4

[PATCH 4/6] OMAP4: add command to select next boot device priority

2013-03-16 Thread Vicente Bergas
On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM code reads the device to boot from. This patch adds a way to set this. Signed-off-by: Vicente Bergas --- arch/arm/mach-omap/include/mach/omap4-silicon.h | 20 +++ arch/arm/mach-omap/omap4_generic.c | 20

Re: [PATCH] clk: Add is_enabled callback

2013-03-16 Thread Alexander Shiyan
> This allows us to better detect whether a clk is enabled or not. > > - If we can ask a clk, ask it. If it's enabled, go on and ask parents > - If we can't ask it, but it can be enabled, depend on the enable_count. > if it's positive, go on and ask parents > - If we can't ask it and it cannot b