Re: [PATCH 11/24] net: cpsw: convert to streaming DMA ops

2015-03-02 Thread Jan Weitzel
On Sun, Mar 01, 2015 at 02:17:09PM +0100, Lucas Stach wrote: Move to the common streaming DMA ops in order to get rid of the direct usage of the ARM MMU functions for the cache maintenance. Tested-by: Jan Weitzel j.weit...@phytec.de Signed-off-by: Lucas Stach d...@lynxeye.de --- drivers

Re: [PATCH] net: cpsw: invalidate complete buffer

2015-03-01 Thread Jan Weitzel
On Fri, Feb 27, 2015 at 02:45:18PM +0100, Lucas Stach wrote: Am Freitag, den 27.02.2015, 14:39 +0100 schrieb Lucas Stach: Am Freitag, den 27.02.2015, 14:14 +0100 schrieb Jan Weitzel: On Fri, Feb 27, 2015 at 12:47:24PM +0100, Lucas Stach wrote: Am Freitag, den 27.02.2015, 10:56 +0100

Re: [PATCH] net: cpsw: invalidate complete buffer

2015-02-27 Thread Jan Weitzel
On Fri, Feb 27, 2015 at 12:47:24PM +0100, Lucas Stach wrote: Am Freitag, den 27.02.2015, 10:56 +0100 schrieb Jan Weitzel: Without invalidating the complete buffer before giving it to dma_inv_range, we got strange packets. This is most likely not the correct fix. If this helps then our

[PATCH] net: cpsw: invalidate complete buffer

2015-02-27 Thread Jan Weitzel
Without invalidating the complete buffer before giving it to dma_inv_range, we got strange packets. Signed-off-by: Jan Weitzel j.weit...@phytec.de Tested-by: Teresa Gámez t.ga...@phytec.de --- drivers/net/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

Re: [PATCH v2] i2c: omap: fix fclk_rate for ti,omap4-i2c

2015-01-07 Thread Jan Weitzel
On Tue, Jan 06, 2015 at 02:47:13PM +0100, Sascha Hauer wrote: On Mon, Jan 05, 2015 at 01:22:04PM +0100, Jan Weitzel wrote: On Thu, Dec 11, 2014 at 10:47:59AM +0100, Jan Weitzel wrote: The compatible ti,omap4-i2c don't help to get fclk_rate. So set it acording to cpu compatible: ti

Re: [PATCH v2] i2c: omap: fix fclk_rate for ti,omap4-i2c

2015-01-05 Thread Jan Weitzel
On Thu, Dec 11, 2014 at 10:47:59AM +0100, Jan Weitzel wrote: The compatible ti,omap4-i2c don't help to get fclk_rate. So set it acording to cpu compatible: ti,am33xx and ti,omap4 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: set i2c_data directly -9.0.1.i586.deb ping Jan

Re: [PATCH] i2c: omap: fix fclk_rate for ti,omap4-i2c

2014-12-17 Thread Jan Weitzel
On Thu, Dec 11, 2014 at 08:59:48AM +0100, Sascha Hauer wrote: On Wed, Dec 10, 2014 at 07:49:28AM +0100, Jan Weitzel wrote: ti,am33xx and ti,omap4 use ti,omap4-i2c with different fclk_rate. By now set it according to the used cpu compatible. Signed-off-by: Jan Weitzel j.weit...@phytec.de

[PATCH v2] i2c: omap: fix fclk_rate for ti,omap4-i2c

2014-12-11 Thread Jan Weitzel
The compatible ti,omap4-i2c don't help to get fclk_rate. So set it acording to cpu compatible: ti,am33xx and ti,omap4 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: set i2c_data directly drivers/i2c/busses/i2c-omap.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions

[PATCH] mtd: ubi: get_bad_peb_limit from mtd master

2014-11-19 Thread Jan Weitzel
Like mentioned in the coment we need the size of the entire flash chip. Check if a master exists and take his size. Otherwise the limit will be too small and kernel prints: UBI warning: print_rsvd_warning: cannot reserve enough PEBs for \ bad PEB handling, reserved 19, need 20 Signed-off-by: Jan

[PATCH v2] ARM: omap: Add bootsource serial to xload

2014-11-13 Thread Jan Weitzel
If booted from serial via xmodem, also get barebox.bin per xmodem For first stage you need the .pblx file instead of MLO. Add serial boot to am335x_mlo_defconfig introduce some cleanups by savedefconfig Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: make serialboot configurable

Re: [PATCH 2/2] ARM: omap: Add bootsource serial to xload

2014-11-12 Thread Jan Weitzel
Am 12.11.2014 um 09:22 schrieb Sascha Hauer: Hi Jan, On Wed, Nov 12, 2014 at 08:41:54AM +0100, Jan Weitzel wrote: If booted from serial via xmodem, also get barebox.bin per xmodem For first stage you need the .pblx file instead of MLO. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch

Re: [PATCH v3] commands: of_dump switch to get fixed devictree

2014-09-01 Thread Jan Weitzel
Am 01.09.2014 um 12:38 schrieb Sascha Hauer: On Thu, Aug 21, 2014 at 01:26:19PM +0200, Jan Weitzel wrote: Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v3: create a copy

Re: [PATCH v2] commands: of_dump switch to get fixed devictree

2014-08-21 Thread Jan Weitzel
Am 04.08.2014 um 21:21 schrieb Sascha Hauer: Hi Jan, On Fri, Aug 01, 2014 at 09:01:05AM +0200, Jan Weitzel wrote: Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. This is a very useful option. Signed-off-by: Jan Weitzel j.weit

[PATCH v3] commands: of_dump switch to get fixed devictree

2014-08-21 Thread Jan Weitzel
Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v3: create a copy of the internal devicetree before use of_fix_tree commands/of_dump.c | 31 +-- 1 files

[PATCH v2] commands: of_dump switch to get fixed devictree

2014-08-01 Thread Jan Weitzel
Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: fix CMD OPS commands/of_dump.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/commands

Re: [PATCH v2] of: find also nodes by mixture of alias and path

2014-01-06 Thread Jan Weitzel
Am Montag, den 06.01.2014, 10:32 +0100 schrieb Sascha Hauer: Hi Jan, On Fri, Dec 20, 2013 at 02:24:48PM +0100, Jan Weitzel wrote: Let of_find_node_by_path_or_alias also find a node starting with an alias followed by a path like i2c0/tps@24 Signed-off-by: Jan Weitzel j.weit

[PATCH v3] of: find also nodes by mixture of alias and path

2014-01-06 Thread Jan Weitzel
Let of_find_node_by_path_or_alias also find a node starting with an alias followed by a path like i2c0/tps@24 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: rename ret to node v3: use strchr drivers/of/base.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions

Re: [PATCH v2] of: find also nodes by mixture of alias and path

2014-01-06 Thread Jan Weitzel
Am Montag, den 06.01.2014, 11:50 +0100 schrieb Sascha Hauer: On Mon, Jan 06, 2014 at 11:26:59AM +0100, Jan Weitzel wrote: Am Montag, den 06.01.2014, 10:32 +0100 schrieb Sascha Hauer: Hi Jan, On Fri, Dec 20, 2013 at 02:24:48PM +0100, Jan Weitzel wrote: Let

[PATCH v2] of: find also nodes by mixture of alias and path

2013-12-20 Thread Jan Weitzel
Let of_find_node_by_path_or_alias also find a node starting with an alias followed by a path like i2c0/tps@24 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: rename ret to node drivers/of/base.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git

[PATCH] of: find also nodes by mixture of alias and path

2013-12-19 Thread Jan Weitzel
Let of_find_node_by_path_or_alias also find a node starting with an alias followed by a path like i2c0/tps@24 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- drivers/of/base.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/drivers/of/base.c b

[PATCH] oftree command: Allow free stored dtb before load

2013-12-19 Thread Jan Weitzel
Don't return after freeing stored devicetree if also loading ist wanted. Allow oftree -f -l my.dtb Signed-off-by: Jan Weitzel j.weit...@phytec.de --- commands/oftree.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/commands/oftree.c b/commands/oftree.c index 475f019

[PATCH] pinctrl: single: select CONFIG_PINCTRL

2013-12-16 Thread Jan Weitzel
pinctrl_register is used. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- drivers/pinctrl/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8257586..c6bb51c 100644 --- a/drivers/pinctrl/Kconfig +++ b

Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support

2013-12-11 Thread Jan Weitzel
Am Dienstag, den 10.12.2013, 15:24 +0100 schrieb Sascha Hauer: On Tue, Dec 10, 2013 at 03:22:12PM +0100, Jan Weitzel wrote: Am Dienstag, den 26.11.2013, 17:45 +0100 schrieb Sascha Hauer: This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb

Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support

2013-12-10 Thread Jan Weitzel
Am Dienstag, den 26.11.2013, 17:45 +0100 schrieb Sascha Hauer: This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/pcm051/Makefile | 2 +-

[PATCH] commands: of_node fix descripion

2013-11-26 Thread Jan Weitzel
Remove copy and paste error Signed-off-by: Jan Weitzel j.weit...@phytec.de --- commands/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/commands/Kconfig b/commands/Kconfig index 9738ec4..1e07b5b 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -559,7

[PATCH] i2c-omap: fix reported revison

2013-10-07 Thread Jan Weitzel
Report correct major and minor revision Signed-off-by: Jan Weitzel j.weit...@phytec.de --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index bec3b29..8e31ef4 100644

[PATCH] i2c-omap: Update driver

2013-09-26 Thread Jan Weitzel
The driver didn't work well with at24 driver. NACKS are lost. Errors are lost in isr due to the local variable err. Also we didn't wait for bus free in omap_i2c_xfer_msg. Fix issues and get other improvements from linux kernel Tested on OMAP4 and AM335x Signed-off-by: Jan Weitzel j.weit

[PATCH] net/phy: support of mmd register read and write

2013-08-30 Thread Jan Weitzel
Add function for indirect access of the mmd registers, based on linux. phy_read_mmd_indirect phy_write_mmd_indirect Also clean some private mmd functions Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/dmo-mx6-realq7/board.c | 14 ++-- arch/arm/boards/tqma6x/board.c

[PATCHi v2] i2c-omap: fix am33xx and omap3 fclk_rate

2013-08-30 Thread Jan Weitzel
commit f64ed12b accidentally swap fclk_rate from am33xx and omap3. Revert this change. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: Fix also omap3 fclk_rate Rename patch i2c-omap: fix am33xx fclk_rate drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH] pcm049: clean up

2013-05-28 Thread Jan Weitzel
Remove magic numbers Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/lowlevel.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boards/pcm049/lowlevel.c b/arch/arm/boards/pcm049/lowlevel.c index 8548868..caac21e 100644

[PATCH] OMAP4: Use default clock source for mcbsp

2013-05-28 Thread Jan Weitzel
In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/omap4_clock.c |6 +++--- 1 files changed, 3 insertions

[PATCH] pcm049: add 1GB RAM support

2013-05-28 Thread Jan Weitzel
From: Teresa Gámez t.ga...@phytec.de Add config to select RAM assembly. The difference is if one or two chip selects are used. This can't be checkt at runtime. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c|4 arch/arm/boards/pcm049/lowlevel.c

[PATCH] omap4: set voltage according to mpu freq

2013-05-28 Thread Jan Weitzel
For OMAP4460 omap4_scale_vcores must set the voltage according to mpu freq. OPP100 700MHz 1210mV OPPTB 920MHz 1320mV OPPNT 1200MHz 1380mV Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/archosg9/lowlevel.c |2 +- arch/arm/boards/panda/lowlevel.c

[PATCH] omap4-fb: use uncached screen_base

2013-05-02 Thread Jan Weitzel
If the buffer is cached the image on the LCD is broken. Only some small lines on the last rows. Flushing the cache repairs the image. Use remap_range for preallocated screen and dma_alloc_coherent for dynamic. based on '[PATCH] omap4-fb: add driver' could be squashed in. Signed-off-by: Jan

[PATCH] ARM: mmu: Use PAGE_ALIGN in dma_free_coherent

2013-04-26 Thread Jan Weitzel
We PAGE_ALIGN the size in dma_alloc_coherent so do it also when free the memory. Use PAGE_SIZE instead of magic numbers. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/cpu/mmu.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch

[RFC] omap4-fb: use uncached screen_base

2013-04-11 Thread Jan Weitzel
If the buffer is cached the image on the LCD is broken. Only some small lines on the last rows. Flushing the cache repairs the image. Is remap_range the right way to get a non cached buffer? This patch only covers prealloc_screen, not dynamic If the buffer is dynamic, is the use of

Re: [PATCH] ubiformat: get buffer from malloc

2013-03-25 Thread Jan Weitzel
Am Montag, den 25.03.2013, 16:15 +0100 schrieb Jan Weitzel: There was a erase block sized (here 131072) char buf array on the stack. Changed this to get the space from malloc preventing stack overflows. Also fix a wrong return without clean up. btw the command works fine with the stack

v2013.02.0 phyCORE-OMAP4 MLO to big

2013-02-08 Thread Jan Weitzel
Hi, with the release v2013.02.0 the MLO gets so bit, that it eats the boot information in the SRAM. nm --size-sort ... 0630 D nand_flash_ids 08c0 t mci_probe 0c00 b gpio_desc 1400 b files If I remove GPIOLIB from MLO it work again. Maybe setting MAX_FILES down or find a

[PATCH v2] pcm049: clean up defconfig

2013-01-29 Thread Jan Weitzel
add BAREBOX_MAX_IMAGE_SIZE and rebuild defconfig with savedefconfig Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/configs/pcm049_defconfig | 19 +++ arch/arm/configs/pcm049_xload_defconfig |3 ++- 2 files changed, 13 insertions(+), 9 deletions(-) diff

Re: [PATCH 14/14] Add support for Archos G9 tablet

2012-10-22 Thread Jan Weitzel
Am Sonntag, den 21.10.2012, 03:00 +0200 schrieb vj: On Fri, Oct 19, 2012 at 1:10 PM, Jan Weitzel j.weit...@phytec.de wrote: diff --git a/arch/arm/boards/archosg9/lowlevel.c b/arch/arm/boards/archosg9/lowlevel.c new file mode 100644 index 000..fa5be1d --- /dev/null +++ b/arch/arm

[PATCH] OMAP: Documentation file misspelled

2012-10-16 Thread Jan Weitzel
based on next Signed-off-by: Jan Weitzel j.weit...@phytec.de --- ...oamp4_usb_booting.txt = omap4_usb_booting.txt} |0 1 files changed, 0 insertions(+), 0 deletions(-) rename Documentation/{oamp4_usb_booting.txt = omap4_usb_booting.txt} (100%) diff --git a/Documentation

Re: [PATCH 1/3] Add barebox update infrastructure

2012-09-14 Thread Jan Weitzel
Am Freitag, den 14.09.2012, 09:45 +0200 schrieb Sascha Hauer: Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/Kconfig |5 +++ commands/Makefile |1 + commands/barebox-update.c | 80 + common/Kconfig|3

Re: [RFC, PATCH] barebox-update command support

2012-09-14 Thread Jan Weitzel
Am Freitag, den 14.09.2012, 09:45 +0200 schrieb Sascha Hauer: Hi All, The following adds barebox-update command support. This command is supposed to provide a dedicated command for updating barebox. On OMAP we have MLO and barebox. Should we use the command only for MLO? The barebox didn't

[PATCH] pcm049 phycard l + xl2: update partion sizes

2012-09-13 Thread Jan Weitzel
Use 512k NAND Partion for barebox in enviroment and boards code pcm049: use 4MB for kernel Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c|4 ++-- arch/arm/boards/pcm049/env/config |2 +- arch/arm/boards/phycard-a-l1/env/config

Re: [PATCH 2/3] commands: move nandtest to testing

2012-09-11 Thread Jan Weitzel
Am Dienstag, den 11.09.2012, 07:31 +0200 schrieb Alexander Aring: Move nadntest in commands menu. nandtest Jan Signed-off-by: Alexander Aring alex.ar...@gmail.com --- commands/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/Kconfig

[PATCH] smsc911x: Check platformdata pointer

2012-09-10 Thread Jan Weitzel
If pdata is NULL smc911x_probe will crash. Checking the zero initialized priv-shift results in default configuration if pdata is not set. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- drivers/net/smc911x.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] PCM049: nand_bootstrap add shebang

2012-09-06 Thread Jan Weitzel
Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/env/bin/nand_bootstrap |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/boards/pcm049/env/bin/nand_bootstrap b/arch/arm/boards/pcm049/env/bin/nand_bootstrap index f8873fa..49e38dc 100644

[PATCH v4] xload: get barebox size from barebox_arm_head

2012-09-05 Thread Jan Weitzel
Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image on nand. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: remove fall back if header read fail v3: fix header check, rebase

Re: MLO doesn't work, rest is ok

2012-09-05 Thread Jan Weitzel
Am Mittwoch, den 05.09.2012, 11:25 +0200 schrieb Norbert Roos: On 09/05/2012 08:12 AM, Jan Weitzel wrote: I just wanted to try the freshly generated MLO and barebox.bin on my Phytec PCM049 board (OMAP4 based). Copied both files to the FAT partition on the SD card. Unfortunately

Re: Suspected ##SPAM## -:Re: [PATCH v4] xload: get barebox size from barebox_arm_head

2012-09-05 Thread Jan Weitzel
Am Mittwoch, den 05.09.2012, 12:34 +0200 schrieb Jean-Christophe PLAGNIOL-VILLARD: On 10:22 Wed 05 Sep , Jan Weitzel wrote: Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image

Re: MLO doesn't work, rest is ok

2012-09-05 Thread Jan Weitzel
Am Mittwoch, den 05.09.2012, 13:15 +0200 schrieb Sascha Hauer: On Wed, Sep 05, 2012 at 01:01:54PM +0200, Norbert Roos wrote: On 09/05/2012 12:53 PM, Sascha Hauer wrote: What gcc version do you have? gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Maybe you could try an older

Re: [PATCH v3] xload: get barebox size from barebox_arm_head

2012-09-04 Thread Jan Weitzel
Am Mittwoch, den 29.08.2012, 14:21 +0200 schrieb Jean-Christophe PLAGNIOL-VILLARD: On 11:10 Wed 29 Aug , Jan Weitzel wrote: Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image

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

2012-09-04 Thread Jan Weitzel
Am Montag, den 03.09.2012, 18:24 +0200 schrieb 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

Re: [PATCH v3] xload: get barebox size from barebox_arm_head

2012-09-04 Thread Jan Weitzel
Am Dienstag, den 04.09.2012, 11:28 +0200 schrieb Sascha Hauer: On Tue, Sep 04, 2012 at 09:34:22AM +0200, Jan Weitzel wrote: Am Mittwoch, den 29.08.2012, 14:21 +0200 schrieb Jean-Christophe +unsigned int get_image_size(void *head) +{ + unsigned int ret = 0; + unsigned

Re: [PATCH v2] xload: get barebox size from barebox_arm_head

2012-08-29 Thread Jan Weitzel
Am Mittwoch, den 29.08.2012, 08:59 +0200 schrieb Sascha Hauer: On Tue, Aug 28, 2012 at 02:36:21PM +0200, Jan Weitzel wrote: Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image

[PATCH v2] xload: get barebox size from barebox_arm_head

2012-08-28 Thread Jan Weitzel
Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image on nand. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: remove fall back if header read fail arch/arm/include/asm/barebox

[PATCH] pcm049: use NAND_BUSWIDTH_AUTO

2012-08-27 Thread Jan Weitzel
autodetect bus width Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/boards/pcm049/board.c b/arch/arm/boards/pcm049/board.c index 456c9a7..57b24af 100644 --- a/arch/arm/boards

[RFC] xload: get barebox size from barebox_arm_head

2012-08-27 Thread Jan Weitzel
Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image on nand. Fall back to 512 Byte. Where is a good place for the helper functions? arch/arm/lib ? Signed-off-by: Jan Weitzel j.weit

[PATCH 2/3] OMAP4460: ram init changes

2012-08-14 Thread Jan Weitzel
configure Memory Adapter for 4460 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/include/mach/omap4-silicon.h |4 arch/arm/mach-omap/omap4_generic.c | 21 +++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH 0/3 v2] omap: 4460 support

2012-08-14 Thread Jan Weitzel
Add support for OMAP4460 cpu on top of ed358834 (next) v2: merge usage of omap4_scale_vcores to 1/3 avoid volatile int* Jan Weitzel (3): Add support for OMAP4460 TPS62361 OMAP4460: ram init changes OMAP4460: clock init arch/arm/boards/panda/lowlevel.c|4 +- arch

[PATCH 3/3] OMAP4460: clock init

2012-08-14 Thread Jan Weitzel
Change clock init to allow early gpio access. Add support for 4460 clocks. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/panda/mux.c |8 + arch/arm/boards/pcm049/lowlevel.c | 11 +-- arch/arm/boards/pcm049/mux.c

[PATCH 3/3] OMAP4460: clock init

2012-08-13 Thread Jan Weitzel
Change clock init to allow early gpio access. Add support for 4460 clocks. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: fix omap4_scale_vcores for phycard-a-xl2 arch/arm/boards/panda/lowlevel.c |4 ++- arch/arm/boards/panda/mux.c |8 + arch

[PATCH v2] OMAP4: use writel and readl

2012-08-13 Thread Jan Weitzel
replace *(volatile int*) by writel and readl Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2 reword commit message arch/arm/mach-omap/omap4_generic.c | 34 ++ 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-omap

[PATCH] OMAP4: use writel and readl

2012-08-02 Thread Jan Weitzel
replace *(volatile int*) bei writel and readl Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/omap4_generic.c | 34 ++ 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap

[PATCH] OMAP4: cleanup

2012-07-27 Thread Jan Weitzel
use rev to check revision Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/omap4_generic.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c index c6fb91f..f44fa4b 100644

[PATCH] omap: use 512k barebox partition

2012-07-27 Thread Jan Weitzel
Use 512k NAND Partion for barebox. Problem is we don't know the size of the barebox inside xload. Set it also to 512k Fix enviroment for boards with size in config Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c|7 +-- arch/arm/boards/pcm049

[PATCH 3/3] OMAP4460: clock init

2012-07-27 Thread Jan Weitzel
Change clock init to allow early gpio access. Add support for 4460 clocks. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/panda/lowlevel.c |4 ++- arch/arm/boards/panda/mux.c |8 + arch/arm/boards/pcm049/lowlevel.c | 15

[PATCH 1/3] Add support for OMAP4460 TPS62361

2012-07-27 Thread Jan Weitzel
-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/include/mach/omap4-clock.h | 15 + arch/arm/mach-omap/include/mach/omap4-silicon.h |9 +- arch/arm/mach-omap/omap4_clock.c| 19 +++ arch/arm/mach-omap/omap4_generic.c | 39

[PATCH 0/3] nand: autodetect buswith

2012-07-24 Thread Jan Weitzel
Add flag NAND_BUSWIDTH_UNKNOWN to allow the nand driver to detect the buswidth. Driver must provide callback set_buswidth which configure buswidth set in (struct nand_chip) nand-options Jan Weitzel (3): nand: base: Add autodetect buswidth OMAP GPMC NAND: add set_buswidth callback PCA-A_XL2

[PATCH 3/3] PCA-A_XL2 PCM049: Use autodetection for NAND width

2012-07-24 Thread Jan Weitzel
Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c|4 ++-- arch/arm/boards/phycard-a-xl2/pca-a-xl2.c |3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boards/pcm049/board.c b/arch/arm/boards/pcm049/board.c index

[PATCH 1/3] nand: base: Add autodetect buswidth

2012-07-24 Thread Jan Weitzel
If a 16bit NAND is attached, but configured with 8bit nand_base will fail. Add a flag NAND_BUSWIDTH_UNKNOWN and callback set_buswidth to allow it to change the configuration to 16bit. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- drivers/mtd/nand/nand_base.c | 45

[PATCH 1/3 v2] OMAP GPMC NAND: use buswidth from GPMC

2012-07-19 Thread Jan Weitzel
GPMC could be already configured by xloader or rom bootloader Use the configured buswidth (width == 0) or set it explicit in the board file. If gpmc register isn't configured for NAND, fallback to 8bit by gpmc reset state. Use autodetect on pcm049 Signed-off-by: Jan Weitzel j.weit...@phytec.de

[PATCH 2/3 v2] gpmc: Add reset to gpmc_generic_init

2012-07-19 Thread Jan Weitzel
Add reset to gpmc_generic_init as proposed by TRM. This also fixes some strange timing issue while GPMC Initialization for NAND OMAP4460 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: fix timeout endless loop arch/arm/mach-omap/gpmc.c | 12 +++- 1 files changed, 11 insertions

Re: [PATCH 1/3] OMAP GPMC NAND: use buswidth from GPMC

2012-07-19 Thread Jan Weitzel
Am Donnerstag, den 19.07.2012, 00:11 +0200 schrieb Sascha Hauer: Hi Jan, On Wed, Jul 18, 2012 at 02:37:11PM +0200, Jan Weitzel wrote: GPMC could be already configured by xloader or rom bootloader Use the configured buswidth (width == 0) or set it explicit in the board file. What

[PATCH 1/3] OMAP GPMC NAND: use buswidth from GPMC

2012-07-18 Thread Jan Weitzel
GPMC could be already configured by xloader or rom bootloader Use the configured buswidth (width == 0) or set it explicit in the board file. Use autodetect on pcm049 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/boards/pcm049/board.c |4 ++-- arch/arm/mach-omap/devices

[PATCH 2/3] gpmc: Add reset to gpmc_generic_init

2012-07-18 Thread Jan Weitzel
Add reset to gpmc_generic_init as proposed by TRM. This also fixes some strange timing issue while GPMC Initialization for NAND OMAP4460 Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/mach-omap/gpmc.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git

[RFC] ramfs: rember last accessed chunk

2012-05-15 Thread Jan Weitzel
patched 2691ms No impact on much smaller files seen Signed-off-by: Jan Weitzel j.weit...@phytec.de --- fs/ramfs.c | 46 -- 1 files changed, 36 insertions(+), 10 deletions(-) diff --git a/fs/ramfs.c b/fs/ramfs.c index 83ab6df..5c7410b

[PATCH v2] omap: add support for phycard-a-xl2

2012-03-12 Thread Jan Weitzel
Support for omap4 based Phytec phyCARD-A-XL2 board Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: remove kernelimage_type from env use CONFIG_THUMB2_BAREBOX for MLO move noinline keyword between storage class and type arch/arm/Makefile |1

[PATCH v2] NET: Add support for ks8851_mll

2012-03-12 Thread Jan Weitzel
Add support for KS8851 16bit MLL chip from Micrel Inc. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: use dev_* for messages drivers/base/resource.c | 33 ++ drivers/net/Kconfig |7 + drivers/net/Makefile |1 + drivers/net/ks8851_mll.c | 892

[PATCH] omap: add support for phycard-a-xl2

2012-03-07 Thread Jan Weitzel
Support for omap4 based Phytec phyCARD-A-XL2 board Signed-off-by: Jan Weitzel j.weit...@phytec.de --- arch/arm/Makefile |1 + arch/arm/boards/phycard-a-xl2/Makefile | 20 ++ arch/arm/boards/phycard-a-xl2/config.h |1 + .../boards

Re: [PATCH 2/2] pandaboard: Add gpmc_generic_init to board init.

2012-03-02 Thread Jan Weitzel
Am Dienstag, den 31.01.2012, 21:51 +0100 schrieb Marek Belisko: We need to setup generic gpmc otherwise kernel panic during boot. Signed-off-by: Marek Belisko marek.beli...@open-nandra.com --- arch/arm/boards/panda/board.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)