[PATCH 4/4] ARM: i.MX pcm043: register external nand boot handler

2013-03-12 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/pcm043/pcm043.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boards/pcm043/pcm043.c b/arch/arm/boards/pcm043/pcm043.c index 04418fb..a81852a 100644 --- a/arch/arm/boards/pcm043/pcm043.c +++

[PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Sascha Hauer
The external NAND boot code currently does not handle bad blocks correctly on 2k NAND flashes. This patch adds a barebox_update handler for external NAND boot which embeds a Bad block table in the flashed image. The boot code will skip bad blocks found in this bad block table then. Signed-off-by:

[PATCH 1/4] ARM: i.MX: external nand boot: check for bad blocks

2013-03-12 Thread Sascha Hauer
The i.MX external NAND boot code checks for a bad block every page, which is wrong. Instead, check for a bad block at the beginning of each block. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/external-nand-boot.c | 39 +++--- 1 file

Re: [PATCH 2/4] ARM: head: Add some space behind the image header

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: [...] +/* + * 32 bytes at this is offset is reserved in the barebox head for board/SoC + * usage + */ [...] Hmm, one 'is' too much in this sentence? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out; +   } [...] As the user only sees bad block info when DEBUG is enabled, you should

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Sascha Hauer
On Tue, Mar 12, 2013 at 10:48:16AM +0100, Juergen Beisert wrote: Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out; +   } [...]

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: On Tue, Mar 12, 2013 at 10:48:16AM +0100, Juergen Beisert wrote: Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out;

Re: [PATCH 2/9] ARM: Zynq: Add new architecture zynq

2013-03-12 Thread Josh Cartwright
On Mon, Mar 11, 2013 at 10:14:59AM +0100, Steffen Trumtrar wrote: Add basic support for the Xilinx Zynq-7000 EPP architecture. The Zynq-7000 is an embedded processing platform that combines a Cortex A9 dualcore MPSoC with an Artix-7 FPGA. Signed-off-by: Steffen Trumtrar

[RFC PATCH 2/2] AM33XX: pcm051: Create custom mux file

2013-03-12 Thread Teresa Gámez
The pcm051 has no MMC WP pin. This pin is used for a gpio and needs to be muxed different. Created a custom mux file for this case. Signed-off-by: Teresa Gámez t.ga...@phytec.de --- arch/arm/boards/pcm051/Makefile |2 +- arch/arm/boards/pcm051/board.c |4 +++-

[RFC PATCH 1/2] AM33XX: Move muxing defines to header file

2013-03-12 Thread Teresa Gámez
The muxing in the am33xx_mux.c file is not generic as the muxing setup does not fit for every board. Move the structs and functions to the mach/am33xx-mux.h so board dependend mux setups can be created. Signed-off-by: Teresa Gámez t.ga...@phytec.de --- arch/arm/boards/beaglebone/board.c

[PATCH 1/7] AT91 debug unit typo fix

2013-03-12 Thread Renaud C.
This patch fix the debug unit output by correcting a typo into an #ifdef statement. at91-debug-unit-typo.patch Description: Binary data ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 2/7] Watchdog driver for AT91SAM9 SOC

2013-03-12 Thread Renaud C.
This patch add watchdog driver for AT91SAM9 SOC. Beware that the watchdog unit is write once. I only added the at91_add_device_watchdog(void) API for AT91SAM9260 devices, but the driver should work on all AT91SAM9. added-watchdog-driver-for-at91sam9x.patch Description: Binary data

[PATCH 3/7] AT91 UDC startup fix

2013-03-12 Thread Renaud C.
I noticed that depending on boot timings, the USB gadget weren't detected at all by hosts. After few hours of debugging and using the at91clk output, I found that the UDP clock wasn't enabled from time to time. This patch fix the startup of UDC by adding a check into the at91_update_vbus().

[PATCH 4/7] AT91 UDC, fix recursive poll()

2013-03-12 Thread Renaud C.
I noticed some weird behavior using DFU gadget on AT91SAM9260 which worked 1 of 10 times. The bug was due to the usb_gadget_poll() being called while the previous call was still in progress : some USB calls may takes a lot of time (ex : DFU erase-then-write), resulting in the poller to be

[PATCH 5/7] gadget: possible null pointer dereference fix

2013-03-12 Thread Renaud C.
This patch fix a possible null pointer dereference exception because of a missing null check on cdev-config gadget-null-pointer-dereference-fix.patch Description: Binary data ___ barebox mailing list barebox@lists.infradead.org

[PATCH 7/7] none

2013-03-12 Thread Renaud C.
sorry, there was only 6 patch. My bad ;) ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 6/7] DFU : disable state fix

2013-03-12 Thread Renaud C.
When an USB_REQ_DFU_DETACH request is received, the device state switch to DFU_STATE_appDETACH, and then wait for an usb reset to switch to DFU_STATE_dfuIDLE (through dfu_disable() being called). I noticed that using dfu-util v0.7 on my AT91SAM9260 board, the programming failed because of the

Re: [PATCH 2/7] Watchdog driver for AT91SAM9 SOC

2013-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, I already send it to the ML and the current framework wd is not how I want it no attachement path nightmare to read under mutt Best Regards, J. On 16:46 Tue 12 Mar , Renaud C. wrote: This patch add watchdog driver for AT91SAM9 SOC. Beware that the watchdog

[PATCH RESEND] usb: chipidea-imx: Fix usb initialization

2013-03-12 Thread Alexander Shiyan
This patch fix chipidea-imx usb initialization. imx_chipidea_port_init was moved before PORTSC setup in the commit USB i.MX chipidea: implement post init support. This change breaks usb function with ULPI. Patch moves port initialization back after PORTSC setup, so it works again. Signed-off-by:

Re: [PATCH] usb/gadget/Kconfig: fix menu

2013-03-12 Thread Sascha Hauer
On Mon, Mar 11, 2013 at 09:33:15PM +0100, Eric Bénard wrote: by reordering the entry, USB gadget support is now a menu and the USB gadget choices are under this menu and not directly in the driver menu. Signed-off-by: Eric Bénard e...@eukrea.com Applied, thanks Sascha ---

Re: [PATCH 2/4] twl6030: add power button as an input key

2013-03-12 Thread Sascha Hauer
On Tue, Mar 12, 2013 at 01:01:23AM +0100, Vicente Bergas wrote: Done as suggested. Thanks for the suggestion. Signed-off-by: Vicente Bergas vice...@gmail.com --- drivers/input/Kconfig | 7 +++ drivers/input/Makefile | 1 + drivers/input/twl6030_pwrbtn.c | 112

Re[2]: New dt-only arm/mach

2013-03-12 Thread Alexander Shiyan
Le 10/03/2013 15:13, Alexander Shiyan a écrit : Hello All. I want to add new arch into barebox. n the kernel this arch is dt-only. I talking about mach-sunxi. Wow, that would be great :) I've been thinking about doing this for quite some time now, but I don't have so much time to

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

2013-03-12 Thread Sascha Hauer
On Tue, Mar 12, 2013 at 01:01:24AM +0100, Vicente Bergas wrote: getopt: done as suggested bootsrc: done as suggested IMO this command will be used 99% of the times followed by a reset. The -r option will avoid the burden of executing always the same two commands. Signed-off-by: Vicente

Re: [PATCH] usb/gadget/Kconfig: fix menu

2013-03-12 Thread Sascha Hauer
On Tue, Mar 12, 2013 at 06:51:44PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 18:41 Tue 12 Mar , Sascha Hauer wrote: On Mon, Mar 11, 2013 at 09:33:15PM +0100, Eric Bénard wrote: by reordering the entry, USB gadget support is now a menu and the USB gadget choices are under this

Re: New dt-only arm/mach

2013-03-12 Thread Maxime Ripard
Hi, Le 12/03/2013 18:50, Alexander Shiyan a écrit : Le 10/03/2013 15:13, Alexander Shiyan a écrit : It can be done as well I guess, but that doesn't sound that familiar from what I've seen in the other barebox boards. Kernel no contain any board for mach-sunxi. This mean than all stuff is

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

2013-03-12 Thread vj
On Tue, Mar 12, 2013 at 6:51 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Mar 12, 2013 at 01:01:24AM +0100, Vicente Bergas wrote: getopt: done as suggested bootsrc: done as suggested IMO this command will be used 99% of the times followed by a reset. The -r option will avoid the

[PATCH 1/1] defaultenv-2: move settings in a submenu

2013-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
To be more clear so on the mainmenu we will just have - the boot option - settings - shell - reset when starting to have a long list of boot option the menu start to be big Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- defaultenv-2/menu/menu/mainmenu |6

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

2013-03-12 Thread vj
On Tue, Mar 12, 2013 at 10:20 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Mar 12, 2013 at 09:20:11PM +0100, vj wrote: On Tue, Mar 12, 2013 at 6:51 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Mar 12, 2013 at 01:01:24AM +0100, Vicente Bergas wrote: getopt: done as

Re[2]: New dt-only arm/mach

2013-03-12 Thread Alexander Shiyan
On Tue, Mar 12, 2013 at 09:50:26PM +0400, Alexander Shiyan wrote: I think about dtb-file in /env, but not sure... Thanks. It can be done as well I guess, but that doesn't sound that familiar from what I've seen in the other barebox boards. Kernel no contain any board for