Re: [PATCH 4/4] Revert "mtd: atmel_nand: optimize read/write buffer functions"

2012-11-23 Thread 张忠山
In message <1353686104-31295-4-git-send-email-plagn...@jcrosoft.com> Jean-Christophe PLAGNIOL-VILLARD wrote: > As in the kernel we revert as this was supposed to work but does not yet > this may need more work on the smc to be able to use it > So for now revert it > > This reverts commit 809f0f632

[PATCH 2/2] archosg9: improve configuration

2012-11-23 Thread Vicente Bergas
Signed-off-by: Vicente Bergas --- arch/arm/boards/archosg9/env/config | 4 +++- arch/arm/boards/archosg9/env/init/usbboot | 9 + arch/arm/configs/archosg9_defconfig | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards/archosg9/env/config b/a

[PATCH 1/2] uimage: fix misunderstanding in common/uimage.c

2012-11-23 Thread Vicente Bergas
The option of reading the file at once was discarded because the option of increasing the buffer size provided almost the same benefit. Signed-off-by: Vicente Bergas --- common/uimage.c | 24 1 file changed, 24 deletions(-) diff --git a/common/uimage.c b/common/uimage.c

[PATCH 0/2] Some corrections on archosG9

2012-11-23 Thread Vicente Bergas
In the patch series for archosG9 there were an attempt to improve file transfers by reading files at once, but finally this solution was discarded. Today I've checked the repository and found this solution there, perhaps this is a misunderstanding and it's corrected here. Sorry for not checking bef

[RFC 0/3] commands: md, mw: add '-x' option (swap bytes)

2012-11-23 Thread Antony Pavlov
Most of my MIPS boards run barebox in big-endian mode, but sometimes I need see state of little-endian registers (e.g. registers of PCI-connected peripherals) and it is not very hande to swap bytes manually. This patch series add to memory commands (md and mw) ability to swap bytes "on the fly".

[RFC 2/3] commands: md: add '-x' option (swap bytes)

2012-11-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- commands/mem.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index a42b7ba..9873e52 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -136,7 +136,7 @@ static int open_and_lseek(con

[RFC 1/3] add swab (swap bytes) option to memory_display()

2012-11-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- commands/mem.c | 17 + commands/spi.c |4 ++-- fs/tftp.c|2 +- include/common.h |2 +- net/net.c|2 +- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index 6fbc7

[RFC 3/3] commands: mw: add '-x' option (swap bytes)

2012-11-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- commands/mem.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index 9873e52..51aa04d 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -255,9 +255,10 @@ static int do_mem_mw(int argc, char *argv[])

[PATCH 1/2] arm: at91: add at91sam9n12 support

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/Kconfig |6 + arch/arm/mach-at91/Makefile|1 + arch/arm/mach-at91/at91sam9n12.c | 233 arch/arm/mach-at91/at91sam9n12_devices.c

[PATCH 2/2] at91: add at91sam9n12ek board support

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/Makefile|1 + arch/arm/boards/at91sam9n12ek/Makefile |1 + arch/arm/boards/at91sam9n12ek/config.h |6 + arch/arm/boards/at91sam9n12ek/env/bin/init_board | 50 arch/a

[PATCH 0/2] at91: at91sam9n12 support

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, this patch serie add the support of the at91sam9n12 with it's reference board the n12ek we do not switch to the defaultenv-2 as I need nfs boot with symlink and this is not support yet in it I'll switch all my platform when we will have it Thi

[PATCH 4/4] Revert "mtd: atmel_nand: optimize read/write buffer functions"

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
As in the kernel we revert as this was supposed to work but does not yet this may need more work on the smc to be able to use it So for now revert it This reverts commit 809f0f6327241504b5071622a8d573255f91a875. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/mtd/nand/atmel_nand.c |

[PATCH 3/4] at91: clock: check overclock for sam9260/9261/9263/9rl

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/clock.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index bda02fd..fd9ba46 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.

[PATCH 2/4] atmel_nand: fix pmecc timeout

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
the timeout is 100ms not 100ns on sam9x5 the SoC is fast enough so we can not see it but not on sam9n12 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/mtd/nand/atmel_nand_ecc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand_ecc.h

[PATCH 1/4] at91: fix timer rate

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
today the timer rate is hardcoded to 6MHz which is wrong the PIT rate is MCK / 16 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/at91sam926x_time.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/

[PATCH 0/4] at91: some fixes

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, some fixe for at91 they are needed for at91sam9n12 support The following changes since commit c7a729aefe13104b6f3a9f2150a9e993bb510d43: Merge branch 'for-next/m25p80' (2012-11-21 11:54:34 +0100) are available in the git repository at: git://git.jcrosoft.org/barebox.gi

Re: NAND_ATMEL strange behavior on at91rm9200 board

2012-11-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:17 Fri 23 Nov , 张忠山 wrote: > when NAND_ATMEL used on at91rm9200, it's behavior very strange > > write to nand have no effect, Read out of nand, the contents > very strange. > > So I write some date to nand using u-boot and then start barebox if you do not sedn you code we can not help

NAND_ATMEL strange behavior on at91rm9200 board

2012-11-23 Thread 张忠山
when NAND_ATMEL used on at91rm9200, it's behavior very strange write to nand have no effect, Read out of nand, the contents very strange. So I write some date to nand using u-boot and then start barebox -- # md -s/dev/nand0 0+0x400 : ea0a eafe eafe eafe