[PATCH 2/3] sandbox: fix whitespaces in board file

2012-09-03 Thread Alexander Aring
Fix whitespaces in board file. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- arch/sandbox/board/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/board/board.c b/arch/sandbox/board/board.c index d2f0667..6bccd2c 100644 ---

[PATCH 3/3] sandbox: fix malloc argument

2012-09-03 Thread Alexander Aring
Fix malloc argument for sandbox system. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- arch/sandbox/os/common.c | 87 +++- 1 file changed, 57 insertions(+), 30 deletions(-) diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c

[PATCH 1/3] sandbox: add asm-generic/io.h

2012-09-03 Thread Alexander Aring
Add in sandbox asm/io.h the asm-generic/io.h header file. Needed by NAND support. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- arch/sandbox/include/asm/io.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/include/asm/io.h

[PATCH 1/1] nhk8815: fix nand IO_DATA end resource

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
introduce in commit 5f03074ea98b64b55c133b35ee144fdc909e6d69 resource: store 'end' instead of 'size' in struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/nhk8815/setup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 01/10] add gpiolib support

2012-09-03 Thread Sascha Hauer
Hi Steffen, On Fri, Aug 31, 2012 at 10:54:23AM +0200, Steffen Trumtrar wrote: diff --git a/include/gpio.h b/include/gpio.h index b7d8402..903fa06 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -3,12 +3,28 @@ #include asm/gpio.h -static inline int gpio_request(unsigned gpio,

Re: [PATCH] ARM i.MX6: query silicon revision

2012-09-03 Thread Steffen Trumtrar
On Sat, Sep 01, 2012 at 10:53:41AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:55 Fri 31 Aug , Steffen Trumtrar wrote: Read silicon revision from ???-register. This is based on a7683867463481bfea84af4d60af832ddfb3da7f from u-boot. The address 0x020c8260 is used and decoded. I

Re: [PATCH 03/10] ARM i.MX5: add imx-gpio devices

2012-09-03 Thread Sascha Hauer
On Fri, Aug 31, 2012 at 10:54:25AM +0200, Steffen Trumtrar wrote: Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/mach-imx/imx51.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c index 53205a9..506a7d9

Re: [PATCH 2/2] gpio: add driver for stmpe io-expander

2012-09-03 Thread Sascha Hauer
On Fri, Aug 31, 2012 at 11:14:07AM +0200, Steffen Trumtrar wrote: Add a driver for the stmpe1601 gpio block. The stmpe io-expanders have multiple blocks (keypad, gpio...) that can be enabled and used. Only gpio is supported atm. This was only tested on a stmpe connected via i2c. It is

[PATCH v2] ARM i.MX6: query silicon revision

2012-09-03 Thread Steffen Trumtrar
Read silicon revision from ???-register. This is based on a7683867463481bfea84af4d60af832ddfb3da7f from u-boot. The address 0x020c8260 is used and decoded. I haven't found that in my datasheet, so I must trust the code to be correct. At least on a SabreLite v1.0 I get the correct version though.

Re: [PATCH V2 0/6 ] IMX i2c driver update for the PPC 85xx

2012-09-03 Thread Sascha Hauer
On Fri, Aug 31, 2012 at 03:10:29PM +0100, Renaud Barbier wrote: This patch set prepares the PPC 85xx SOC to use the IMX i2c driver and updates the driver with specific clock settings. The driver name is renamed i2c-fsl. The patch also introduces a function returning the system clock to

Re: [PATCH] arm: mxs: bcb: fix usage of second bootstream

2012-09-03 Thread Sascha Hauer
On Fri, Aug 31, 2012 at 06:00:27PM +0200, Wolfram Sang wrote: If a second bootstream was used, there was a sanity check which was not only wrong (using erasesize instead of writesize) but also superfluous (we got the block from an existing cdev, so it must be in the flash range). Simply remove

Re: [PATCH] net: miidev: really wait for auto negotiation

2012-09-03 Thread Sascha Hauer
On Fri, Aug 31, 2012 at 06:00:37PM +0200, Wolfram Sang wrote: miidev_wait_aneg() polled the wrong bit, so link detection did fail on boards where the PHY had to come out of a powerdown mode. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Applied, thanks Sascha ---

Re: [PATCH 03/18] fs: add symlink support

2012-09-03 Thread Sascha Hauer
On Sat, Sep 01, 2012 at 02:37:18PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: Limit it's support to existing file only Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- fs/fs.c | 44 include/fs.h |3 +++

[PATCH v2 03/11] ARM i.MX1: add imx-gpio devices

2012-09-03 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/mach-imx/Kconfig |1 + arch/arm/mach-imx/imx1.c | 18 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index ce5edaa..112dcb1

[PATCH v2 04/11] ARM i.MX21: add imx-gpio devices

2012-09-03 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/mach-imx/Kconfig |1 + arch/arm/mach-imx/imx21.c | 22 +- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 112dcb1..c069ae8

[PATCH v2 10/11] ARM i.MX53: add imx-gpio devices

2012-09-03 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/mach-imx/Kconfig |1 + arch/arm/mach-imx/imx53.c | 19 +++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 9d7b931..0c09b57

Re: [PATCH 04/18] fs: implement stat

2012-09-03 Thread Sascha Hauer
On Sat, Sep 01, 2012 at 02:37:19PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: stat() stats the file pointed to by path and fills in buf. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- fs/fs.c | 102

Re: [PATCH 00/18 v2] fs: add symlink and readlink support

2012-09-03 Thread Sascha Hauer
On Sat, Sep 01, 2012 at 02:35:11PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, v2: addres comments please pull The following changes since commit b77300ac6c6bbbc7eac774ff0076c7c05d39735f: command/mount: add autodetection support (2012-08-21 18:53:00 +0800) are

Re: [PATCH 1/2] mtd: fix compiler warnings

2012-09-03 Thread Sascha Hauer
On Mon, Sep 03, 2012 at 07:58:00AM +0200, Alexander Aring wrote: Fix some compiler warnings. Signed-off-by: Alexander Aring alex.ar...@gmail.com Applied, thanks Sascha --- drivers/mtd/core.c | 6 +++--- drivers/mtd/mtdraw.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)

Re: [PATCH 1/3] sandbox: add asm-generic/io.h

2012-09-03 Thread Sascha Hauer
On Mon, Sep 03, 2012 at 08:18:06AM +0200, Alexander Aring wrote: Add in sandbox asm/io.h the asm-generic/io.h header file. Needed by NAND support. Signed-off-by: Alexander Aring alex.ar...@gmail.com Applied, thanks Sascha --- arch/sandbox/include/asm/io.h | 8 +++- 1 file changed,

[PATCH 04/18] fs: implement stat

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
stat() stats the file pointed to by path and fills in buf. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- fs/fs.c | 105 ++ include/fs.h |6 ++-- 2 files changed, 107 insertions(+), 4 deletions(-) diff

[PATCH 07/18] ramfs: add symlink and readlink support

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- fs/ramfs.c | 61 ++-- 1 file changed, 55 insertions(+), 6 deletions(-) diff --git a/fs/ramfs.c b/fs/ramfs.c index 91d06b8..8f3b936 100644 --- a/fs/ramfs.c +++

[PATCH 06/18] fs: introduce get_mounted_path to get the path where a file is mounted

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- fs/fs.c |9 + include/fs.h |2 ++ 2 files changed, 11 insertions(+) diff --git a/fs/fs.c b/fs/fs.c index 5b7e641..53d8316 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -243,6 +243,15 @@ static struct

[PATCH 13/18] dirname: add -V option to return only path related to the mountpoint

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/dirname.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/commands/dirname.c b/commands/dirname.c index cf1d0a0..f34d88d 100644 --- a/commands/dirname.c +++

[PATCH 10/18] command: add readlink support

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig|6 commands/Makefile |1 + commands/readlink.c | 80 +++ 3 files changed, 87 insertions(+) create mode 100644 commands/readlink.c diff

[PATCH 14/18] recursive_action: add ACTION_FOLLOWLINKS support

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
this is need to support symlink in envfs Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- include/libbb.h|2 +- lib/recursive_action.c |7 ++- scripts/bareboxenv.c |2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH 12/18] ls: add symlink support to -l

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
barebox:/ ls -l /env/init.d/ drwxrwxrwx 0 . drwxrwxrwx 0 .. lrwxrwxrwx 11 net - ../boot/net Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/ls.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-)

[PATCH 15/18] envfs: introduce version major and minor

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
they are store in the super block at byte 16th and 17th. set the verison at 0.1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/environment.c |2 ++ include/envfs.h |7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[RFC] Dedicated command to make a target bootable with Barebox

2012-09-03 Thread Juergen Beisert
Hi all, currently I'm working on the difficult process to make an i.MX35 SoC boot from an externally connected NAND device. Nothing special with it, only the NAND flash controller in the i.MX35 (also in i.MX25, i.MX27 and i.MX31) is braindamaged broken. This controller loses the factory bad

[PATCH v2 0/2] Add stmpe mfd

2012-09-03 Thread Steffen Trumtrar
Hi, this adds support for a stmpe1601 mfd connected via i2c. This was only tested with the gpiolib support from the previous patch-series ARM i.MX: add gpiolib support. With v2 I added the dependency on gpiolib in the Kconfig file and removed the hardcoded gpiobase by a platformdata-provided or

[PATCH 01/10] drivers/nor/m25p80: add JEDEC ID for Micron/Numonyx SPI NOR flash

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/nor/m25p80.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/nor/m25p80.c b/drivers/nor/m25p80.c index 5713ad5..61f2195 100644 --- a/drivers/nor/m25p80.c +++ b/drivers/nor/m25p80.c @@ -648,6 +648,9 @@ static const struct

Prepare support for TI AM35xx

2012-09-03 Thread Jan Luebbe
Hi all, these patches prepare for TI AM35xx support and have have been tested together with the board code. Thanks to Jean-Christophe Plagniol-Villard for his review Best regards, Jan ___ barebox mailing list barebox@lists.infradead.org

[PATCH 06/10] omap: add SPI as a boot mode for xload

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/include/mach/xload.h |1 + arch/arm/mach-omap/xload.c | 27 +++ 2 files changed, 28 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/xload.h

[PATCH 02/10] drivers/nor/m25p80: add MEMGETINFO ioctl

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/nor/m25p80.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/nor/m25p80.c b/drivers/nor/m25p80.c index 61f2195..1722e0a 100644 --- a/drivers/nor/m25p80.c +++ b/drivers/nor/m25p80.c @@ -20,6 +20,7

[PATCH 05/10] common: split out meminfo output and make it optional

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- common/Kconfig |4 common/Makefile |1 + common/meminfo.c | 23 +++ common/startup.c | 21 - include/common.h |4 ++-- 5 files changed, 30 insertions(+), 23 deletions(-) create mode

[PATCH 09/10] omap3: allow enabling clocks for UART3, MMC1 and SPI

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/Kconfig |4 arch/arm/mach-omap/omap3_clock.c | 35 +-- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap/Kconfig b/arch/arm/mach-omap/Kconfig

[PATCH 04/10] scripts: add tool to create image for SPI boot on AM35xx

2012-09-03 Thread Jan Luebbe
Booting from SPI on an AM35xx (and possibly other TI SOCs) requires a special format: - 32 bit image size in big-endian - 32 bit load address in big-endian - binary image converted from little- to big-endian The mk-am35xx-spi-image tool converts barebox.bin to this format. Signed-off-by: Jan

[PATCH 07/10] drivers/net/ksz8864rmn: add driver for Micrel KSZ8864RMN Ethernet Switch

2012-09-03 Thread Jan Luebbe
It start the switch and provides basic access to the registers. This driver could also work with some other Micrel switches, possibly with some small changes. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/Kconfig |7 ++ drivers/net/Makefile |1 +

[PATCH 10/10] drivers/spi: add driver for the Multichannel SPI controller found in TI SoCs

2012-09-03 Thread Jan Luebbe
Also create devices for OMAP3. Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/include/mach/mcspi.h | 11 + arch/arm/mach-omap/include/mach/omap3-devices.h | 34 ++ drivers/spi/Kconfig |6 + drivers/spi/Makefile

[PATCH 08/10] drivers/net: add driver for the EMAC device found in some TI SoCs

2012-09-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/include/mach/emac_defs.h | 53 +++ drivers/net/Kconfig |5 + drivers/net/Makefile|1 + drivers/net/davinci_emac.c | 619 +++

Re: [RFC] Dedicated command to make a target bootable with Barebox

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:30 Mon 03 Sep , Sascha Hauer wrote: On Mon, Sep 03, 2012 at 12:55:34PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:32 Mon 03 Sep , Juergen Beisert wrote: Hi all, currently I'm working on the difficult process to make an i.MX35 SoC boot from an

Re: [PATCH 00/18 v3] fs: add symlink and readlink support

2012-09-03 Thread Sascha Hauer
On Mon, Sep 03, 2012 at 12:04:09PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, v3: - fix support mkdir mymount mount -t ramfs none mymount/ ln /env/boot/net /mymount/link - addres comments v2: addres comments

Re: [PATCH 00/18 v3] fs: add symlink and readlink support

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:04 Mon 03 Sep , Sascha Hauer wrote: On Mon, Sep 03, 2012 at 12:04:09PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, v3: - fix support mkdir mymount mount -t ramfs none mymount/ ln /env/boot/net /mymount/link - addres

Re: [PATCH 03/10] Makefile: add target to produce a SPL compatible uimage

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:45 Mon 03 Sep , Jan Luebbe wrote: Signed-off-by: Jan Luebbe j...@pengutronix.de --- Makefile |5 + 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 969afbb..243a689 100644 --- a/Makefile +++ b/Makefile @@ -673,6 +673,11 @@ barebox.bin: barebox

Re: [PATCH 06/10] omap: add SPI as a boot mode for xload

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:46 Mon 03 Sep , Jan Luebbe wrote: Signed-off-by: Jan Luebbe j...@pengutronix.de you need to sync with 257 Aug27 Jan Weitzel [RFC] xload: get barebox size from barebox_arm_head Best Regards, J. ___ barebox mailing list

Re: [PATCH 08/10] drivers/net: add driver for the EMAC device found in some TI SoCs

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:46 Mon 03 Sep , Jan Luebbe wrote: Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/include/mach/emac_defs.h | 53 +++ drivers/net/Kconfig |5 + drivers/net/Makefile|1 + drivers/net/davinci_emac.c

Re: [PATCH 10/10] drivers/spi: add driver for the Multichannel SPI controller found in TI SoCs

2012-09-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:46 Mon 03 Sep , Jan Luebbe wrote: Also create devices for OMAP3. Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/mach-omap/include/mach/mcspi.h | 11 + arch/arm/mach-omap/include/mach/omap3-devices.h | 34 ++ drivers/spi/Kconfig