[PATCH 1/2] MAKEALL: explicitly use bash

2012-01-02 Thread Sascha Hauer
The script still contains bashisms, so use bash. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- MAKEALL |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAKEALL b/MAKEALL index 25b9977..1ba4710 100755 --- a/MAKEALL +++ b/MAKEALL @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin

Re: [PATCH 7/9] ARM: move exception vectors away from start of binary

2012-01-02 Thread Sascha Hauer
On Sun, Jan 01, 2012 at 05:37:17AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:52 Sat 17 Dec , Sascha Hauer wrote: Traditionally U-Boot and barebox have the exception vectors at the start of the binary. There is no real reason in doing so, because in the majority of cases

Re: [PATCH] decompress_inflate.c: fix no previous prototype for 'gunzip' warning

2012-01-03 Thread Sascha Hauer
On Mon, Jan 02, 2012 at 07:08:49PM +0300, Antony Pavlov wrote: ping Already applied to master, not to next though. Will be fixed there soon. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions |

Re: Adding New comand

2012-01-03 Thread Sascha Hauer
On Tue, Jan 03, 2012 at 09:27:04AM +, G Rajender wrote: Hi, Please do not top post. I want to configure the USB OTG port in iMX35 board as a device by adding a separate command and writing USB OTG peripheral code (firmware) in command function. This USB OTG of iMX35 board should

Re: [PATCH v2 3/4] serial gadget: enable/disable on request

2012-01-04 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 09:11:58AM +0100, Eric Bénard wrote: Hi Jean-Christophe, Le Wed, 4 Jan 2012 09:00:43 +0100, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com a écrit : +/* case 'o': + mode = 1; + break;*/ ditto

Re: [PATCH 1/4] fsl_udc: update and fix

2012-01-04 Thread Sascha Hauer
Hi Eric, Generally, can you please collect the comments to a series and then send the whole series again instead of responding with v2 patches in the original thread? I find it quite hard to pick the correct patches from a longer thread. It's easier to just see 'no comments to the new series

Re: [PATCH 08/12] at91/gpio: simplify resources

2012-01-04 Thread Sascha Hauer
Hi J, On Sat, Dec 31, 2011 at 04:21:34PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: drop irq id and rebase instead of of offset Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/mach-at91/at91rm9200.c| 12

Re: [PATCH] loadb: only try to change the baudrate if the driver has this feature

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 06:04:23PM +0100, Eric Bénard wrote: Hi Sascha, Le Wed, 4 Jan 2012 17:37:56 +0100, Sascha Hauer s.ha...@pengutronix.de a écrit : On Wed, Jan 04, 2012 at 04:01:16PM +0100, Eric Bénard wrote: this allows loadb to work over usbserial gadget I like the original

Re: [PATCH 1/2] at91rm9200: fix lowlovel init PIOC base

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 07:07:28PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- MAKEALL | 52 +++- This seems unrelated to this patch.

Re: [PATCH 1/2 v2] at91rm9200: fix lowlovel init PIOC base

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 07:08:59PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Missed v2, used this one instead. Sascha --- arch/arm/mach-at91/at91rm9200_lowlevel_init.c |6 +- 2 files changed, 44 insertions(+),

[PATCH] video imx: specify num_modes in platform_data

2012-01-05 Thread Sascha Hauer
Without num_modes the imx fb driver won't work. Specify this in the boards and also bail out in the driver when num_modes is unspecified. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c |1 + arch/arm/boards/eukrea_cpuimx27

[PATCH] ARM: move exception vectors away from start of binary

2012-01-05 Thread Sascha Hauer
magic those images can now also be detected as barebox images. The header of the image can be customized using CONFIG_ARM_CUSTOM_HEAD. If this is set the user must specify a custom barebox_arm_head function in the text_entry section. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm

Re: [PATCH] ARM: move exception vectors away from start of binary

2012-01-06 Thread Sascha Hauer
On Thu, Jan 05, 2012 at 02:17:12PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:23 Thu 05 Jan , Sascha Hauer wrote: Traditionally U-Boot and barebox have the exception vectors at the start of the binary. There is no real reason in doing so, because in the majority of cases

Re: how to boot from external RAM

2012-01-12 Thread Sascha Hauer
On Wed, Jan 11, 2012 at 04:22:22PM +, G Rajender wrote: Hi All, How to boot barebox from External SDRAM?? Im using iMX35 based board. How do you get the image into the SDRAM? With a debugger? However, barebox can start from SDRAM in which case it just skips the SDRAM initialization and

[PATCH 04/10] ARM omap3: call a_init from board code

2012-01-16 Thread Sascha Hauer
There is no need to call a_init before relocation, so rename the function to omap3_core_init and call it from board code. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/beagle/board.c|2 ++ arch/arm/boards/omap343xdsp/board.c |3 +++ arch/arm

[PATCH 05/10] ARM omap3 clock: move pll tables to C code

2012-01-16 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-omap/Makefile |2 +- arch/arm/mach-omap/include/mach/omap3-clock.h | 10 - arch/arm/mach-omap/omap3_clock.c | 123 +++- arch/arm/mach-omap/omap3_clock_core.S | 265

Re: [PATCH 09/10] mtd omap nand: fix driver without CONFIG_PARAMETER

2012-01-16 Thread Sascha Hauer
On Mon, Jan 16, 2012 at 11:18:19AM +0100, Sascha Hauer wrote: With CONFIG_PARAMETER unset the driver never calls omap_gpmc_eccmode. Fix it. Will drop this one and use the patch from Jan Weitzel instead. Sascha Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mtd/nand

Re: [PATCH 1/2 v2] add config to check if the size of barebox exceed the target size

2012-01-17 Thread Sascha Hauer
On Mon, Jan 16, 2012 at 05:19:52PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: CONFIG_BAREBOX_MAX_IMAGE_SIZE will allow to detected silent oversize result if 0x0 the size will not been checked Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- v2:

[PATCH] ARM pca-a-l1: fix board_init

2012-01-17 Thread Sascha Hauer
to standard organisation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/phycard-a-l1/Makefile |1 - arch/arm/boards/phycard-a-l1

Re: [PATCH] omap3 towards thumb2 support

2012-01-17 Thread Sascha Hauer
On Tue, Jan 17, 2012 at 11:14:31AM +, Premi, Sanjeev wrote: -Original Message- From: barebox-boun...@lists.infradead.org [mailto:barebox-boun...@lists.infradead.org] On Behalf Of Premi, Sanjeev Sent: Monday, January 16, 2012 9:47 PM To: Sascha Hauer Cc: barebox

Re: git pull failed: CONFLICT

2012-01-19 Thread Sascha Hauer
On Thu, Jan 19, 2012 at 09:19:14AM +0100, Uwe Kleine-König wrote: Hello Antony, On Wed, Jan 18, 2012 at 11:02:06PM +0400, Antony Pavlov wrote: As usual as usual I tried to pull next branch from git://git.pengutronix.de/git/barebox, but got error message. $ git checkout next$ git

Re: [PATCH] freescale-mx35-3-stack: support 256 MiB RAM

2012-01-23 Thread Sascha Hauer
. And switch all of the memory to it Signed-off-by: Roman Fietze roman.fie...@telemotive.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/freescale-mx35-3-stack/3stack.c|3 +- .../boards/freescale-mx35-3-stack/flash_header.c | 26 +++- .../boards

Re: [PATCH 7/9] ARM: move exception vectors away from start of binary

2012-01-23 Thread Sascha Hauer
On Mon, Jan 02, 2012 at 04:09:01PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:13 Mon 02 Jan , Sascha Hauer wrote: On Sun, Jan 01, 2012 at 05:37:17AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:52 Sat 17 Dec , Sascha Hauer wrote: Traditionally U-Boot

Re: [PATCH 2/9] Define clock source shift and mask.

2012-01-25 Thread Sascha Hauer
On Tue, Jan 24, 2012 at 12:33:56PM +, Renaud Barbier wrote: * Define clock source shift and mask in mach/clock_config.h. * Rename ppc/lib/time.c to ppc/lib/time-mpc5200.c. * Update lib/Makefile to reflect change. Signed-off-by: Renaud Barbier renaud.barb...@ge.com ---

[PATCH 3/7] console: make it work without malloc

2012-01-26 Thread Sascha Hauer
This changes the dynamically allocated kfifos to statically initialized ones. This makes the console work without malloc and thus safe to be called before malloc is initialized. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/console.c | 49

[PATCH 5/7] initcalls: do not hang if an initcall fails

2012-01-26 Thread Sascha Hauer
Currently we just hang when an initcall fails. This resulted in most initcalls just returning 0 unconditionally. Instead of hanging which usually leaves the user without a clue what happened just continue and hope for the best. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common

[PATCH 2/7] kfifo: change kfifo_init to work with a preallocated fifo

2012-01-26 Thread Sascha Hauer
kfifo currently only works with dynamically allocated fifos. Change the currently unused kfifo_init to take a preallocated fifo. This allows for statically initialized fifos. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/kfifo.h |2 +- lib/kfifo.c | 23

[PATCH 6/7] startup: use regular debug statements in initcall debugging

2012-01-26 Thread Sascha Hauer
Now that we don't need malloc for the console anymore it's safe to call printf anytime, so switch the initcall debugging to regular debug() statements.. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/startup.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff

some debug patches

2012-01-26 Thread Sascha Hauer
increases the chance that the user gets some clue what went wrong. Sascha Hauer (7): console: remove unused function prototypes kfifo: change kfifo_init to work with a preallocated fifo console: make it work without malloc ARM: panic on div 0 initcalls: do not hang

[PATCH 4/7] ARM: panic on div 0

2012-01-26 Thread Sascha Hauer
hang() only outputs 'reset the board' whereas panic can be passed a string which we can use to output some more information what is happening. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/lib/div0.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH] ARM omap pandaboard: update defconfig

2012-01-27 Thread Sascha Hauer
- enable bootm command - enable iomem command - enable magicvar command - disable nand support, the panda does not have nand Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/configs/panda_defconfig | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff

Re: [PATCH] arm/mach-pxa: add pulse width modulator controller

2012-01-27 Thread Sascha Hauer
-by: Sascha Hauer s.ha...@pengutronix.de Acked-by: Kurt Van Dijck kurt.van.di...@eia.be Reviewed-by: Arnd Bergmann a...@arndb.de Reviewed-by: Matthias Kaehlcke matth...@kaehlcke.net --- Documentation/pwm.txt | 56 + MAINTAINERS |6 ++ drivers/Kconfig |2 + drivers

Re: mx35-3stack 124MiByte RAM

2012-01-27 Thread Sascha Hauer
level init routines. Add barebox SDRAM device. Also, fix the memory size for bank 0 to 128MB. It was accidently changed to 124MB here: commit f928efa818adfe56a08350569a9b0f3c2fb791d2 Author: Sascha Hauer s.ha...@pengutronix.de Date: Tue Jul 19 09:58:32 2011 +0200

Re: Pandaboard kernel 3.2.1 loaded from barebox

2012-01-30 Thread Sascha Hauer
On Sun, Jan 29, 2012 at 02:16:00PM +0100, Belisko Marek wrote: Hi, On Fri, Jan 27, 2012 at 11:42 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Fri, Jan 27, 2012 at 08:35:02AM +0100, Belisko Marek wrote: Hi, I'm trying execute (stable 3.2.1 kernel) zImage for pandaboard but after

[PATCH] Add pwm core support

2012-01-31 Thread Sascha Hauer
be initialized by the hardware drivers using dev_name(dev). The client API is the same as currently in the Linux Kernel. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- This patch is currently compile tested only due to the lack of client drivers. drivers/Kconfig |2 + drivers/Makefile

Re: [PATCH] arm/mach-pxa: add pulse width modulator controller

2012-01-31 Thread Sascha Hauer
On Fri, Jan 27, 2012 at 05:07:04PM +0100, Robert Jarzmik wrote: Sascha Hauer s.ha...@pengutronix.de writes: On Thu, Jan 26, 2012 at 08:55:28PM +0100, Robert Jarzmik wrote: Add PXA embedded pulse width modulator support. The PWM can generate signals from 49.6kHz to 1.625MHz. Signed

Re: IIM on iMX27 how-to needed

2012-01-31 Thread Sascha Hauer
On Tue, Jan 31, 2012 at 11:36:51AM +0100, Igor wrote: Hi, I'm trying to read and write the e-fuse banks on my iMX27 with Barebox but still unsuccessfully. I configured and compiled Barebox with IIM support, so I can see these devices: barebox:/ ls -l /dev crw--- 32

Re: IIM on iMX27 how-to needed

2012-01-31 Thread Sascha Hauer
On Tue, Jan 31, 2012 at 01:51:31PM +0100, Igor Trevisan wrote: Hi, The command is correct, the usage is wrong. See http://wiki.barebox.org/doku.php?id=commands:md and let me know if that helps Yes, it helps. It helped me, first of all to RTFM ;-) and use correctly Barebox

Re: [PATCH 1/2] omap: Remove OMAP_GPMC prompt and usage.

2012-02-01 Thread Sascha Hauer
On Wed, Feb 01, 2012 at 11:05:20AM +, Premi, Sanjeev wrote: -Original Message- From: Belisko Marek [mailto:marek.beli...@gmail.com] Sent: Wednesday, February 01, 2012 3:46 PM To: Premi, Sanjeev Cc: barebox@lists.infradead.org Subject: Re: [PATCH 1/2] omap: Remove

Re: [PATCH] drivers/pwm: add PXA pulse width modulator controller

2012-02-03 Thread Sascha Hauer
Hi Robert, On Wed, Feb 01, 2012 at 11:42:28PM +0100, Robert Jarzmik wrote: Add PXA embedded pulse width modulator support. The PWM can generate signals from 49.6kHz to 1.625MHz. The driver is for pxa2xx family. The pxa3xx was not handled yet. Why not implement it as a regular driver? If we

Re: how do i add the defn for the beagle xM to barebox?

2012-02-06 Thread Sascha Hauer
On Sun, Feb 05, 2012 at 04:04:07PM -0500, Robert P. J. Day wrote: On Sun, 5 Feb 2012, Eric Bénard wrote: Le Sun, 5 Feb 2012 13:00:13 -0500 (EST), Robert P. J. Day rpj...@crashcourse.ca a écrit : On Sun, 5 Feb 2012, Eric Bénard wrote: This is the case where u-boot is built with

v2012.02.0

2012-02-06 Thread Sascha Hauer
Robert P. J. Day (1): Typo fix in Kconfig file: Invlidate - Invalidate Sanjeev Premi (2): ARM omap: Use updated config option ARM omap3beagle: Fix incorrect base addresses Sascha Hauer (65): ARM i.MX27: initialize MAX Add missing code from linux_exec command ppc

Re: any value in allowing user selection of barebox prompt?

2012-02-07 Thread Sascha Hauer
On Mon, Feb 06, 2012 at 10:57:22AM -0500, Robert P. J. Day wrote: making things a bit simpler than my last few posts, is it worth making the BOARDINFO prompt string user selectable? if i was going to do some customization, it would be nice to have the prompt perhaps abbreviate what i'd

Re: what is the purpose of config option HAS_OMAP_NAND?

2012-02-07 Thread Sascha Hauer
On Mon, Feb 06, 2012 at 04:14:45PM -0500, Robert P. J. Day wrote: based on the output from grep: $ grep -r HAS_OMAP_NAND * arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND

Re: make distclean doesn't remove generated MLO file

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 12:02:56PM -0500, Robert P. J. Day wrote: On Tue, 7 Feb 2012, Premi, Sanjeev wrote: I usually compile both stages together with a 'make clean' in between, hence decided to preserve MLO. Makes it easy to copy both MLO and barebox.bin at same time. is there any

Re: why would beagle and panda boards not have CONFIG_MCI_STARTUP set?

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 03:33:32PM -0500, Robert P. J. Day wrote: slowly working my way thru how to create an appropriate environment for my beagle xM and when i boot with the default beagle-configured MLO and barebox.bin, there are no disk devices defined as described here:

Re: for which OMAP platform is MCI_OMAP_HSMMC appropriate?

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 03:42:14PM -0500, Robert P. J. Day wrote: from drivers/mci/Kconfig: config MCI_OMAP_HSMMC bool OMAP HSMMC depends on ARCH_OMAP4 || ARCH_OMAP3 help Enable this entry to add support to read and write SD cards on a OMAP4

Re: for which OMAP platform is MCI_OMAP_HSMMC appropriate?

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 05:20:12PM -0500, Robert P. J. Day wrote: On Tue, 7 Feb 2012, Sascha Hauer wrote: On Tue, Feb 07, 2012 at 03:42:14PM -0500, Robert P. J. Day wrote: from drivers/mci/Kconfig: config MCI_OMAP_HSMMC bool OMAP HSMMC depends on ARCH_OMAP4

Re: [PATCH] Remove apparently superfluous Kconfig variable HAS_OMAP_NAND#

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 07:01:04AM -0500, Robert P. J. Day wrote: Remove what is an apparently valueless Kconfig variable HAS_OMAP_NAND. A search of the entire source tree shows: $ grep -r HAS_OMAP_NAND * arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig:

Re: need some clarification on how environments work

2012-02-08 Thread Sascha Hauer
On Wed, Feb 08, 2012 at 08:19:18AM +, Premi, Sanjeev wrote: Original Message- From: barebox-boun...@lists.infradead.org [mailto:barebox-boun...@lists.infradead.org] On Behalf Of Robert P. J. Day Sent: Wednesday, February 08, 2012 5:42 AM To: U-Boot Version 2 (barebox)

Re: [PATCH 0/2] omap3evm: Enable Linux boot

2012-02-08 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 09:46:52PM +0530, Sanjeev Premi wrote: These patches are necessary enable Linux boot from barebox.bin. Both patches apply against the 'next' branch at: The changes are obviously correct, applied to -master. Sascha -- Pengutronix e.K. |

Re: need some clarification on how environments work

2012-02-08 Thread Sascha Hauer
On Wed, Feb 08, 2012 at 06:01:08AM -0500, Robert P. J. Day wrote: On Wed, 8 Feb 2012, Sascha Hauer wrote: ... snip ... This is not the whole truth. CONFIG_DEFAULT_ENVIRONMENT_PATH can be a list of directories. All pathes in this list are copied into a temporary directory. This means

Re: [PATCH] drivers/pwm: add PXA pulse width modulator controller

2012-02-09 Thread Sascha Hauer
On Wed, Feb 08, 2012 at 04:26:21PM +0100, Robert Jarzmik wrote: Robert Jarzmik robert.jarz...@free.fr writes: Sascha Hauer s.ha...@pengutronix.de writes: Hi Robert, Why not implement it as a regular driver? If we ever want to implement a commandline control of the pwms via pwm0

Re: panda config and build doesn't work on panda ES at all

2012-02-09 Thread Sascha Hauer
On Wed, Feb 08, 2012 at 05:20:45PM -0500, Robert P. J. Day wrote: just for fun, i configured and built MLO and barebox.bin for the panda, then tried to use that on a panda ES -- got no response whatever from minicom. i did verify that i could boot to barebox just fine on a regular panda,

[PATCH 03/15] mci: fix high capacity detection

2012-02-09 Thread Sascha Hauer
Whether a card is high capacity is checked in sd_send_op_cond/mmc_send_op_cond. Remove the wrong check in mmc_change_freq which wrongly recognizes some eMMC flash as high capacity. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |3 --- 1 files changed, 0

[PATCH] mmc/sd patches

2012-02-09 Thread Sascha Hauer
Here are several patches to clean up the sd/mmc layer. Sascha Hauer (15): mci: Add complete definitions for the card type mci: use card type definitions mci: fix high capacity detection mci mxs: do not use external define for internal use mci core: replace discrete

[PATCH 02/15] mci: use card type definitions

2012-02-09 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |4 ++-- include/mci.h |1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index e9fe87c..db69b27 100644 --- a/drivers/mci/mci-core.c

[PATCH 09/15] mci: remove unused device argument from set_ios

2012-02-09 Thread Sascha Hauer
This argmuent is unused in all drivers, so remove it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/atmel_mci.c |3 +-- drivers/mci/imx-esdhc.c |3 +-- drivers/mci/imx.c|3 +-- drivers/mci/mci-core.c |2 +- drivers/mci/mci_spi.c|3

[PATCH 07/15] mci s3c: allocate host struct dynamically

2012-02-09 Thread Sascha Hauer
Yes, it does make sense. First there will always be the next hardware which has multiple controllers. Also, we shouldn't give bad examples to others. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c | 43 +-- 1 files changed, 17

[PATCH 14/15] mci: cdev_find_free_index won't fail, no need to check

2012-02-09 Thread Sascha Hauer
There will always be the next integer number unless we register INT_MAX disk devices which is rarely the case. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers

[PATCH 08/15] mci s3c: pass around the right pointer

2012-02-09 Thread Sascha Hauer
The s3c driver passes around a struct device_d * internally in which it is never interested in. Instead pass around a struct s3c_mci_host and get rid of all this ugly void * derefs. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c | 103

[PATCH 13/15] mci: factor out mci/sd specific startup functions

2012-02-09 Thread Sascha Hauer
This saves an indention level and makes the code more readable. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 133 1 files changed, 77 insertions(+), 56 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers

[PATCH 06/15] mci s3c: Do not mess with struct mci_host

2012-02-09 Thread Sascha Hauer
This structure is owned by the core, do not change its contents in the driver. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mci/s3c.c b/drivers/mci/s3c.c index 9d46b09..a153b1c

[PATCH 05/15] mci core: replace discrete ios values with struct ios

2012-02-09 Thread Sascha Hauer
As we'll need more arguments to set_ios over time put them in a struct mci_ios like the kernel does. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/atmel_mci.c | 18 ++ drivers/mci/imx-esdhc.c | 16 drivers/mci/imx.c| 18

[PATCH 12/15] mci: replace pr_debug with dev_dbg

2012-02-09 Thread Sascha Hauer
The mci layer uses pr_debug throughout. Use dev_dbg instead which is very useful when multiple cards are involved. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 118 1 files changed, 59 insertions(+), 59

[PATCH 11/15] mci: Use struct mci for internal argument passing

2012-02-09 Thread Sascha Hauer
The mci layer currently passes around a struct device_d for its internal use. Apart from being confusing this drops typesafety for no good reason. Instead, pass around a struct mci. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 271

Re: [PATCH 15/15] mci: Be more verbose on what device is associated to which disk

2012-02-09 Thread Sascha Hauer
On Thu, Feb 09, 2012 at 12:53:58PM +0100, Sascha Hauer wrote: This is quite useful when multiple SD cards are present so spare some bytes to print this information. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |4 1 files changed, 4 insertions

[PATCH 4/5] mci: Fix 8 bit mmc cards

2012-02-09 Thread Sascha Hauer
the ext_csd in this mode. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 133 ++- include/mci.h |1 + 2 files changed, 108 insertions(+), 26 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci

[PATCH 5/5] mci i.MX esdhc: make 8bit modes platform dependent

2012-02-09 Thread Sascha Hauer
Whether the controller works in 8bit mode is not only dependent on the controller but also on the board having wired up 8 data lines, so put a capabilities field in platform data. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/include/mach/esdhc.h |2 ++ drivers/mci

[PATCH 3/5] mci: Add a complete list of EXT_CSD_* fields from the kernel

2012-02-09 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |2 +- include/mci.h | 50 +++ 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index c6e8669

[PATCH 1/5] Add a timeout polling loop convenience wrapper

2012-02-09 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/clock.h | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/include/clock.h b/include/clock.h index af5b939..123f874 100644 --- a/include/clock.h +++ b/include/clock.h @@ -40,4 +40,23 @@ void

[PATCH] more mci related stuff

2012-02-09 Thread Sascha Hauer
The following is needed to make my board work with 8bit eMMC properly. Well, mostly properly as I didn't manage to get the eMMC work in DDR mode. Sascha Hauer (5): Add a timeout polling loop convenience wrapper mci i.MX esdhc: use timeout loops mci: Add a complete list

Re: [PATCH] Correct Kconfig comment for MCI_OMAP_HSMMC to include OMAP3.

2012-02-09 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 04:01:44PM -0500, Robert P. J. Day wrote: Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca Applied to master. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ |

Re: [PATCH] Fix Mac OS cross compile failed.

2012-02-10 Thread Sascha Hauer
Hi Keith, On Tue, Feb 07, 2012 at 10:45:27PM +0800, Keith Mok wrote: Fix to avoid using GNU extension on varies areas. The patch is corrupted by your mailer. I see some additional linebreaks and also for some other reason patch reports a malformed patch. Signed-off-by: Keith Mok

Re: [PATCH] omap: xload: Make error more specific

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 12:01:38AM +0530, Sanjeev Premi wrote: Current message indicating that SD card isn't mounted is misleading if the card has only one partition. Updated the message to indicate that mounting the specific partition failed. Signed-off-by: Sanjeev Premi pr...@ti.com

Re: [RFC] omap3evm: Set preliminary environment

2012-02-10 Thread Sascha Hauer
On Thu, Feb 09, 2012 at 11:54:28PM +0530, Sanjeev Premi wrote: This is still work-in-progress, but wanted to share them early for any feedback. Signed-off-by: Sanjeev Premi pr...@ti.com --- I have made offline edits on these scripts before making this patch. There is a possibility of

Re: what is the earliest i can get MLO to print out debugging info?

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 07:59:08AM -0500, Robert P. J. Day wrote: as a (sort of) followup to my last post on extending barebox to recognize pandaboards, at the moment, i have a build that boots nicely on an original panda but produces absolutely *no* output at all on a panda ES. i

Re: [RFC] A first pass at recognizing Pandaboards

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 09:39:10AM -0500, Robert P. J. Day wrote: thoughts on the following patch? it's certainly not the final result, but it at least *starts* the process of properly recognizing newer pandaboards, using code taking very close to verbatim out of u-boot. it's been

Re: IIM on iMX27 how-to needed

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 03:13:00PM +0100, Igor Trevisan wrote: Sorry, I replied to Sasha privately and not to the list! On Fri, Feb 10, 2012 at 2:05 PM, Igor Trevisan igt1...@gmail.com wrote: You could try imx_iim0.explicit_sense_enable=0, maybe this helps. Again... This helps!

[PATCH 2/2] uimage: Fix error message

2012-02-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/bootm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/commands/bootm.c b/commands/bootm.c index c23f4f3..e96665a 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -324,7 +324,7 @@ static int do_bootm

[PATCH] uImage/bootm fixes

2012-02-13 Thread Sascha Hauer
One important fix to make oftree kernels on Arm work, one less important fix to print the correct error message in bootm. Sascha Hauer (2): ARM: Fix oftree booting uimage: Fix error message arch/arm/lib/armlinux.c |1 + commands/bootm.c|2 +- 2 files changed, 2

[PATCH 1/2] ARM: Fix oftree booting

2012-02-13 Thread Sascha Hauer
We forgot to initialize params to the oftree to actually boot a kernel with devicetree. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/lib/armlinux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c index

[PATCH 2/3] ARM i.MX5: Allow to pass cpu clock to lowlevel init

2012-02-13 Thread Sascha Hauer
Some variants of the i.MX53 do not allow to run at 1GHz, so pass a cpu frequency parameter to the lowlevel init function. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/freescale-mx53-loco/board.c |2 +- arch/arm/boards/freescale-mx53-smd/board.c |2 +- arch/arm

[PATCH] Add TQ tqma53 support

2012-02-13 Thread Sascha Hauer
The following series adds support for the TQ tqma53 module with a Freescale i.MX53 SoC. To do this mach-types has to be updated and also we need a possibility to run the i.MX53 at 800MHz. Sascha Hauer (3): ARM: update mach-types ARM i.MX5: Allow to pass cpu clock to lowlevel init

[PATCH 1/3] ARM: update mach-types

2012-02-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/tools/mach-types | 62 - 1 files changed, 61 insertions(+), 1 deletions(-) diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index 38e901d..ff97af4 100644 --- a/arch/arm

[PATCH 3/3] initial tqm53 support

2012-02-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/Makefile |1 + arch/arm/boards/tqma53/Makefile |2 + arch/arm/boards/tqma53/board.c| 272 + arch/arm/boards/tqma53/config.h |4 + arch/arm/boards

Re: [PATCH v2] omap: xload: Make error more specific

2012-02-14 Thread Sascha Hauer
On Mon, Feb 13, 2012 at 03:39:01PM +0530, Sanjeev Premi wrote: Current message indicating that SD card isn't mounted is misleading if the card has only one partition. Updated the message to indicate that mounting the specific partition failed. Signed-off-by: Sanjeev Premi pr...@ti.com

USB/network unregistration patches

2012-02-15 Thread Sascha Hauer
Registering devices works fine on barebox, unregistration often not so. This series cleans up unregistration of network/USB devices. Sascha Hauer (6): usb net smsc95xx: remove unused variable usb net smsc95xx: add missing mii_unregister usb net: fix unregistration net: fix

[PATCH 6/6] USB storage: fix disconnect

2012-02-15 Thread Sascha Hauer
USB storage support missed disconnect support. Implement this. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/storage/usb.c | 23 ++- drivers/usb/storage/usb.h |1 + 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/usb/storage

[PATCH 1/6] usb net smsc95xx: remove unused variable

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/usb/smsc95xx.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index b518992..f2a2d00 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net

[PATCH 5/6] net: set enetaddr to invalid address when an invalid string is passed

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- net/net.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/net/net.c b/net/net.c index 26ba44e..2752884 100644 --- a/net/net.c +++ b/net/net.c @@ -166,8 +166,10 @@ int string_to_ethaddr(const char *str, char

[PATCH 4/6] net: fix eth device unregistration

2012-02-15 Thread Sascha Hauer
We register a device in eth_register, thus we have to unregister it in eth_unregister. Also, if the device we unregister is the current device, we have to set the current eth_device to NULL so that it isn't used anymore. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- net/eth.c |5

Fix FAT block caching

2012-02-15 Thread Sascha Hauer
this case. Sascha Hauer (3): list: add list_last_entry function fat: revert fat caching mechanism block: reimplement caching common/block.c | 274 - fs/fat/ff.c | 93 - include/block.h | 16

[PATCH 1/3] list: add list_last_entry function

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/linux/list.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 1a4cbc4..15ed499 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -272,6

[PATCH 3/3] block: reimplement caching

2012-02-15 Thread Sascha Hauer
be easily made configurable. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/block.c | 274 --- include/block.h | 16 ++-- 2 files changed, 210 insertions(+), 80 deletions(-) diff --git a/common/block.c b/common/block.c index 24377c6

[PATCH 02/12] dos partitions: Do not register as fixed partitions

2012-02-15 Thread Sascha Hauer
A fixed partition means that we can't remove it. This is only suitable for our vital /dev/self0 and /dev/env0 partitions, so remove the fixed flag. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/partitions.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 06/12] fs: remove unused function fsdev_get_mountpoint

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c |5 - include/fs.h |7 --- 2 files changed, 0 insertions(+), 12 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index d65a41f..7175e33 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -195,11 +195,6 @@ found: return e

[PATCH 01/12] add list_is_singular

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/linux/list.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 15ed499..5ae90b4 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -210,6

[PATCH 10/12] fs: put fs devices on its own bus

2012-02-15 Thread Sascha Hauer
by unregistering their child devices. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c | 122 -- include/fs.h |1 + 2 files changed, 77 insertions(+), 46 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 3e65c64

[PATCH 05/12] fs: Store mtab path in allocated string

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c |5 +++-- include/fs.h |2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index afa0198..d65a41f 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -808,8 +808,8 @@ int mount(const char *device

  1   2   3   4   5   6   7   8   9   10   >