[U-Boot] [PATCH 2/2] atmel_nand: Add 32 bit ecc support for sama5d2 chip

2015-11-24 Thread Josh Wu
Also if minimum ecc requirment is bigger then what we support, then just use our maxium pmecc support. But it is not safe, so we'll output a warning about this. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 1/2] atmel_nand_ecc: update pmecc registers according to sama5d2 chip

2015-11-24 Thread Josh Wu
1. add the pmecc register mapping for sama5d2. 2. add the pmecc error location register mapping for sama5d2. 3. add some new field that is different from old ip. 4. add sama5d2 pmecc ip version number. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand_ecc.h | 36

[U-Boot] [PATCH 0/2] atmel_nand: add sama5d2 chip support, which support up to 32bit pmecc

2015-11-24 Thread Josh Wu
This patch set will enable sama5d2 chip pmecc support, it includes: 1. update the pmecc registers and pmecc error location registers map. 2. add 32bit ecc support. Josh Wu (2): atmel_nand_ecc: update pmecc registers according to sama5d2 chip atmel_nand: Add 32 bit ecc support for sama5d2

[U-Boot] [PATCH 0/4] atmel_nand: misc update in atmel nandflash driver

2015-11-24 Thread Josh Wu
Since the nand driver is synced with v4.1 kernel, here is a update also for atmel_nand driver. which includes: 1. fix format and using definition not magic number. 2. use ecc_{strength, step}_ds instead of our own function. 3. add delay time to support MF29F32G08CBADA. Josh Wu (4

[U-Boot] [PATCH 4/4] atmel_nand: use the definition: PMECC_OOB_RESERVED_BYTES instead magic number

2015-11-24 Thread Josh Wu
As atmel_nand_ecc.h is sync with v4.1 kernel, which adds the PMECC_OOB_RESERVED_BYTES. So use it in the driver. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand

[U-Boot] [PATCH 1/4] atmel_nand: use nand ecc_{strength, step}_ds instead of our own function

2015-11-24 Thread Josh Wu
Since ecc_{strength,step}_ds is introduced in nand_chip structure for minimum ecc requirements. So we can use them directly and remove our own get_onfi_ecc_param function. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 44 +++ 1 file changed

[U-Boot] [PATCH 3/4] atmel_nand: increase more delay to support MT29F32G08CBADA

2015-11-24 Thread Josh Wu
The tR is 100us in the datasheet section: Array Characteristics Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 5226acf..266dfd9 100644 --- a/drivers

[U-Boot] [PATCH 2/4] atmel_nand: add '\n' in the end of error message for better display

2015-11-24 Thread Josh Wu
Also align the open parenthesis. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index e179f74..5226acf 100644 --- a/drivers/mtd/nand/atmel_nand.c

Re: [U-Boot] [PATCH 3/3] arm: at91: spl/atmel_sfr: move saic redirect to separate file

2015-11-04 Thread Josh Wu
Regards, Josh Wu Move ATMEL_SFR_AICREDIR_KEY definition to sama5d4.h, because each SoC has its own value. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/Makefile |2 +- arch/arm/mach-at91/armv7/sama5d4_devices.c | 13 - arch/arm/mach-at91/atmel_sfr.c

Re: [U-Boot] [PATCH 2/3] arm: at91/spl: matrix: improve implementation of matrix

2015-11-04 Thread Josh Wu
Hi, Wenyou On 11/4/2015 2:28 PM, Wenyou Yang wrote: To make matrix initialization code sharing with others, use the matrix slave id macros, instead of hard-coding. it is better if you split the following 'removing code' as another patch. Best Regards, Josh Wu Remove the write prote

Re: [U-Boot] [PATCH 1/3] arm: at91/spl: matrix: move matrix init to separate file

2015-11-04 Thread Josh Wu
only used by armv7 core? Best Regards, Josh Wu Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/Makefile|2 +- arch/arm/mach-at91/armv7/sama5d4_devices.c | 42 --- arch/arm/mach-at91/matrix.c| 51 3

[U-Boot] [PATCH v2] ARM: at91: sama5: change the environment address to 0x6000

2015-10-26 Thread Josh Wu
u-boot-spl.bin 16904 v2015.07/sama5d4ek_spiflash_defconfig_u-boot-spl.bin 16904 v2015.07/sama5d4_xplained_spiflash_defconfig_u-boot-spl.bin The gcc version is: gcc 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) Signed-off-by: Josh Wu Reviewed-by: Andreas Bießmann Acked-by: Bo Shen --- Changes in v2: -

Re: [U-Boot] [PATCH] ARM: at91: sama5: change the environment address to 0x6000

2015-10-26 Thread Josh Wu
On 10/27/2015 9:55 AM, Bo Shen wrote: Hi Josh, On 10/26/2015 16:41 PM, Josh Wu wrote: Hi, Bo On 10/26/2015 2:43 PM, Bo Shen wrote: Hi Josh, On 10/23/2015 17:18 PM, Josh Wu wrote: As sama5 board has 32k sram size, so the at91bootstrap and spl for sama5 boards is bigger than 16k (0x4000

Re: [U-Boot] [PATCH] ARM: at91: sama5: change the environment address to 0x6000

2015-10-26 Thread Josh Wu
Hi, Bo On 10/26/2015 2:43 PM, Bo Shen wrote: Hi Josh, On 10/23/2015 17:18 PM, Josh Wu wrote: As sama5 board has 32k sram size, so the at91bootstrap and spl for sama5 boards is bigger than 16k (0x4000). That will overlap the U-Boot Just curious about from which commit the spl binary size

[U-Boot] [PATCH] ARM: at91: sama5: change the environment address to 0x6000

2015-10-23 Thread Josh Wu
As sama5 board has 32k sram size, so the at91bootstrap and spl for sama5 boards is bigger than 16k (0x4000). That will overlap the U-Boot environment. So I move environment to 0x6000. And reduce its size as well. Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 4 ++-- 1 file

[U-Boot] [PATCH] at91: simplify spl board_init_f function

2015-10-23 Thread Josh Wu
crt0.S do both memset the bss section and call board_init_r for us, so remove them from board_init_f(). Signed-off-by: Josh Wu --- arch/arm/mach-at91/spl_atmel.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index

Re: [U-Boot] [PATCH] net: change the env name to use const

2015-10-15 Thread Josh Wu
Hi, Joe On 9/4/2015 11:34 PM, Joe Hershberger wrote: On Tue, Sep 1, 2015 at 5:22 AM, Josh Wu wrote: As we don't modify the 'name' parameter, so change it to const. Signed-off-by: Josh Wu Acked-by: Joe Hershberger Thanks for the Ack. It seems I didn't see this patch

Re: [U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-16 Thread Josh Wu
Hi, Wolfgang Thanks for the reply. On 9/16/2015 2:37 PM, Wolfgang Denk wrote: Dear Josh Wu, In message <1442373526-842-1-git-send-email-josh...@atmel.com> you wrote: As 'time(0) | getpid()' sometimes get same value. That depends on the value of getpid(). I think removing so

Re: [U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-16 Thread Josh Wu
Hi, Andreas On 9/16/2015 4:23 PM, Andreas Bießmann wrote: Hi Josh, On 09/16/2015 05:18 AM, Josh Wu wrote: As 'time(0) | getpid()' sometimes get same value. That depends on the value of getpid(). So that is not a expected behavior. We expect different value for the seed when when

Re: [U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-16 Thread Josh Wu
On 9/16/2015 3:08 PM, Josh Wu wrote: Hi, Wolfgang Thanks for the reply. On 9/16/2015 2:37 PM, Wolfgang Denk wrote: Dear Josh Wu, In message <1442373526-842-1-git-send-email-josh...@atmel.com> you wrote: As 'time(0) | getpid()' sometimes get same value. That depends on the

[U-Boot] [PATCH v2] tools: gen_eth_addr: add getpid() to time(0) to avoid duplicated seed

2015-09-16 Thread Josh Wu
N=0; while [ $RUN -lt 1 ]; do tools/gen_eth_addr; RUN=$(($RUN+1)); done | sort | uniq | wc -l 1 This patch is incorporated with suggestions made by Wolfgang Denk and Andreas Bießmann. Thanks them a lot. Signed-off-by: Josh Wu --- Changes in v2: - left shift and add the getpid() value

Re: [U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-16 Thread Josh Wu
rgc, char *argv[]) { unsigned long ethaddr_low, ethaddr_high; -srand(time(0) | getpid()); +srand(time(0) + getpid()); /* * setting the 2nd LSB in the most significant byte of Thanks. Best regards, Wolfgang Denk Best Regards, Josh Wu

[U-Boot] [PATCH] ARM: at91: sama5: add support for CONFIG_ENV_IS_IN_MMC

2015-09-15 Thread Josh Wu
If defined CONFIG_ENV_IS_IN_MMC, then u-boot environment is saved in mmc's raw sectors. Otherwise, u-boot environment is saved as a file: uboot.env. Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs

[U-Boot] [PATCH] tools: gen_eth_addr: remove getpid() operation for the random seed

2015-09-15 Thread Josh Wu
As 'time(0) | getpid()' sometimes get same value. That depends on the value of getpid(). So that is not a expected behavior. We expect different value for the seed when when run it in many times. So this patch remove the getpid(), just use the time(0) as the seed. Signed-off-b

[U-Boot] [PATCH] ARM: atmel: boards: use default CONFIG_SYS_PBSIZE

2015-09-02 Thread Josh Wu
y 'help'". Use the default CONFIG_SYS_PBSIZE definition from config_fallbacks.h to solve this problem. Signed-off-by: Bo Shen Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 2 -- include/configs/at91sam9260ek.h | 1 - include/configs/at91sam9261e

[U-Boot] [PATCH] net: change the env name to use const

2015-09-01 Thread Josh Wu
As we don't modify the 'name' parameter, so change it to const. Signed-off-by: Josh Wu --- include/net.h | 4 ++-- net/eth.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/net.h b/include/net.h index d09bec9..133fee4 100644 --- a/incl

[U-Boot] [PATCH v2 3/4] ARM: at91: sama5: move the nandflash env config to at91-sama5_common.h

2015-08-19 Thread Josh Wu
As all sama5 nandflash env configurations are same, so move them to at91-sama5_common.h. Signed-off-by: Josh Wu --- Changes in v2: None include/configs/at91-sama5_common.h | 12 include/configs/sama5d3_xplained.h | 9 + include/configs/sama5d3xek.h| 9

[U-Boot] [PATCH v2 4/4] ARM: at91: sama5: update the spi flash mapping

2015-08-19 Thread Josh Wu
lso update SPL's u-boot load address to 0x8000 in spi flash. Signed-off-by: Josh Wu Reviewed-by: Jagan Teki --- Changes in v2: - collect the reviewed-by tag from Jagan Teki. include/configs/at91-sama5_common.h | 10 ++ include/configs/sama5d3xek.h| 11 ++-

[U-Boot] [PATCH v2 2/4] ARM: at91: sama5d3xek: use a $dtb_name to load dtb

2015-08-19 Thread Josh Wu
sama5d3xek, we will detect cpu type and make up $dtb_name in runtime. Signed-off-by: Josh Wu --- Changes in v2: - fix bug on tolower loop. - use setenv dtb_name instead board/atmel/sama5d3xek/sama5d3xek.c | 20 include/configs/at91-sama5_common.h | 5 - include/configs

[U-Boot] [PATCH v2 1/4] ARM: at91: sama5: move the sd/mmc env config to at91-sama5_common.h

2015-08-19 Thread Josh Wu
some extra stuff to make it work on sama5d3xek boards. Signed-off-by: Josh Wu --- Changes in v2: - use CONFIG_ENV_VARS_UBOOT_CONFIG instead thanks to Andreas. include/configs/at91-sama5_common.h | 12 include/configs/sama5d3_xplained.h | 10 +- include/configs/sa

Re: [U-Boot] [PATCH 1/3] ARM: at91: sama5: move the sd/mmc env config to at91-sama5_common.h

2015-08-19 Thread Josh Wu
Hi, Andreas On 8/19/2015 3:40 PM, Andreas Bießmann wrote: Hi Josh, On 07/07/2015 01:08 PM, Josh Wu wrote: As almost all sama5 sd/mmc env configurations are same, so move them to at91-sama5_common.h. Also we define a KERNEL_DTB_FILE_NAME as dtb file name for different board. I don't

Re: [U-Boot] [PATCH 1/3] ARM: at91: sama5: move the sd/mmc env config to at91-sama5_common.h

2015-08-18 Thread Josh Wu
Hi, Andreas Any feedback for this patch serials. Best Regards, Josh Wu On 7/7/2015 7:08 PM, Josh Wu wrote: As almost all sama5 sd/mmc env configurations are same, so move them to at91-sama5_common.h. Also we define a KERNEL_DTB_FILE_NAME as dtb file name for different board. Signed-off-by

Re: [U-Boot] [PATCH] ARM: at91: sama5d3xek: initialized a variable:ek_name in U-Boot

2015-08-18 Thread Josh Wu
Hi, Andreas Any feedback for this patch? Thanks. Best Regards, Josh Wu On 6/17/2015 6:56 PM, Josh Wu wrote: Then we can use this ek_name variable to load corresponding dtb file in mmc boot. Also we change the mmc boot command to load zImage as this format is prefered. Signed-off-by: Josh Wu

Re: [U-Boot] ARM: atmel: switch to usb ehci for sama5d3 boards

2015-08-18 Thread Josh Wu
Hi, Andreas On 8/18/2015 9:04 PM, Andreas Bießmann wrote: Hi Josh, On 08/18/2015 01:46 PM, Andreas Bießmann wrote: Dear "Wu, Josh", Josh Wu writes: From: Bo Shen As the cache coherence issue in OHCI HCD, when enable I/D cache for sama5d3 SoC, the OHCI can not work properly. So,

Re: [U-Boot] [PATCH] net: macb: add gmac multi-queue support

2015-08-11 Thread Josh Wu
Hi, Joe On 8/12/2015 2:29 AM, Joe Hershberger wrote: Hi Josh, On Wed, Jun 3, 2015 at 3:45 AM, Josh Wu wrote: This patch refer to linux kernel commit: d8b763e1e79f net/macb: add TX multiqueue support for gem by: Cyrille Pitchen 1. macb driver will check the register to find how many

Re: [U-Boot] [PATCH v3 2/4] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-08-05 Thread Josh Wu
Hi, York On 8/4/2015 11:30 PM, York Sun wrote: On 07/26/2015 08:40 PM, Josh Wu wrote: Since some driver like ohci, lcd used dcache functions. But some ARM cpu don't implement the invalidate_dcache_range()/flush_dcache_range() functions. To avoid compiling errors this patch adds an weak

Re: [U-Boot] [PATCH v3 2/4] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-08-03 Thread Josh Wu
Hi, York On 7/28/2015 1:21 PM, York Sun wrote: Josh, No you didn't miss. I think you are right on this file. Thanks for the review, Could I have your reviewed-by tag for this patch? Best Regards, Josh Wu York Sent from my cellphone Original message From: Josh Wu

Re: [U-Boot] [PATCH v3 2/4] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-07-27 Thread Josh Wu
mpty weak functions flush_dcache_range() & invalidate_dcache_range() in arch/arm/lib/cache.c will be ignored. It is an expect behavior. or did I miss something? Best Regards, Josh Wu York Sent from my cellphone Original message ---- From: Josh Wu Date:07/27/2015 19:17 (GMT-0

Re: [U-Boot] [PATCH v3 2/4] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-07-27 Thread Josh Wu
Hi, York On 7/28/2015 12:31 AM, York Sun wrote: On 07/26/2015 08:40 PM, Josh Wu wrote: Since some driver like ohci, lcd used dcache functions. But some ARM cpu don't implement the invalidate_dcache_range()/flush_dcache_range() functions. To avoid compiling errors this patch adds an

[U-Boot] [PATCH v3 3/4] ARM: cache: implement a default weak flush_cache() function

2015-07-26 Thread Josh Wu
he_range(). Signed-off-by: Josh Wu --- Changes in v3: - new added. arch/arm/cpu/arm1136/cpu.c | 9 - arch/arm/cpu/arm926ejs/cache.c | 9 - arch/arm/cpu/armv7/cache_v7.c | 13 - arch/arm/cpu/armv8/cache_v8.c | 8 arch/arm/lib/cache.c

[U-Boot] [PATCH v3 0/4] ARM & m68k: cache: add weak cache code then enable usb cache support

2015-07-26 Thread Josh Wu
s acked-by. Josh Wu (4): m68k: cache: add an empty stub functions for invalidate/flush dcache ARM: cache: add an empty stub function for invalidate/flush dcache ARM: cache: implement a default weak flush_cache() function usb: ohci: enable cache support arch/arm/cpu/arm1136/cpu.

[U-Boot] [PATCH v3 1/4] m68k: cache: add an empty stub functions for invalidate/flush dcache

2015-07-26 Thread Josh Wu
f not implemented then by default is using an empty function. Signed-off-by: Josh Wu Acked-by: Angelo Dureghello --- Changes in v3: - add Angelo's Acked-by. Changes in v2: - new added. arch/m68k/lib/cache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/m68k/lib/cache.c b/arc

[U-Boot] [PATCH v3 4/4] usb: ohci: enable cache support

2015-07-26 Thread Josh Wu
Remove the CONFIG_DM_USB limitation to enable cache support functions. Tested on SAMA5D3x-EK board. Signed-off-by: Josh Wu Acked-by: Hans de Goede --- Changes in v3: None Changes in v2: - CONFIG_DM_USB in periodic_unlink() should be remove as well. This version remove it. - Add Hans de

[U-Boot] [PATCH v3 2/4] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-07-26 Thread Josh Wu
t its own cache functions on the cpu folder. Signed-off-by: Josh Wu --- Changes in v3: - remove the same functions in the cpu/ files as they will use the weak function provided in lib/cache.c Changes in v2: - new added. arch/arm/cpu/arm1136/cpu.c | 8 arch/arm/cpu/arm926ejs/ca

[U-Boot] [PATCH 3/3] ARM: at91: sama5: update the spi flash mapping

2015-07-07 Thread Josh Wu
load address to 0x8000 in spi flash. Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 10 ++ include/configs/sama5d3xek.h| 11 ++- include/configs/sama5d4_xplained.h | 14 ++ include/configs/sama5d4ek.h | 14 ++ 4 files change

[U-Boot] [PATCH 2/3] ARM: at91: sama5: move the nandflash env config to at91-sama5_common.h

2015-07-07 Thread Josh Wu
As all sama5 nandflash env configurations are same, so move them to at91-sama5_common.h. Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 12 include/configs/sama5d3_xplained.h | 9 + include/configs/sama5d3xek.h| 9 + include/configs

[U-Boot] [PATCH 1/3] ARM: at91: sama5: move the sd/mmc env config to at91-sama5_common.h

2015-07-07 Thread Josh Wu
As almost all sama5 sd/mmc env configurations are same, so move them to at91-sama5_common.h. Also we define a KERNEL_DTB_FILE_NAME as dtb file name for different board. Signed-off-by: Josh Wu --- Hi, Those patches depends on the patch: http://patchwork.ozlabs.org/patch/485339/ Best Regards

Re: [U-Boot] [resend][PATCH 0/2] ARM: cache: clean up the code to drop the empty stub functions

2015-06-30 Thread Josh Wu
Hi, Any feedback for this series patch? Best Regards, Josh Wu On 6/11/2015 1:21 PM, Josh Wu wrote: This series is based on the patch I sent: http://patchwork.ozlabs.org/patch/481095/ As above introduces the default empty function for invalidate_dcache_range() & flush_dcache_range() in

[U-Boot] [PATCH] ARM: at91: sama5d3xek: initialized a variable:ek_name in U-Boot

2015-06-17 Thread Josh Wu
Then we can use this ek_name variable to load corresponding dtb file in mmc boot. Also we change the mmc boot command to load zImage as this format is prefered. Signed-off-by: Josh Wu --- board/atmel/sama5d3xek/sama5d3xek.c | 21 + include/configs/sama5d3xek.h| 7

[U-Boot] [PATCH 0/2] ARM: cache: clean up the code to drop the empty stub functions

2015-06-10 Thread Josh Wu
ries introduces a default function for flush_cache(). Josh Wu (2): ARM: cache: drop the empty dcache functions as we have it in lib/cache.c ARM: cache: implement a default flush_cache() function arch/arm/cpu/arm1136/cpu.c | 17 - arch/arm/cpu/arm926ejs/cache.c

[U-Boot] [PATCH 2/2] ARM: cache: implement a default flush_cache() function

2015-06-10 Thread Josh Wu
It will just call flush_dcache_range(). As ARM1136 & ARM926ejs already implemented their own flush_cache(), those code in weak function in arch/arm/lib/cache.c can be dropped. Signed-off-by: Josh Wu --- arch/arm/cpu/arm1136/cpu.c | 9 - arch/arm/cpu/arm926ejs/cache.c

[U-Boot] [PATCH 1/2] ARM: cache: drop the empty dcache functions as we have it in lib/cache.c

2015-06-10 Thread Josh Wu
As there are empty function invalidate_dcache_range(), flush_dcache_range() in arch/arm/lib/cache.c. So we can reuse it by just drop them in arch/arm/cpu/. Signed-off-by: Josh Wu --- arch/arm/cpu/arm1136/cpu.c | 8 arch/arm/cpu/arm926ejs/cache.c | 8 arch/arm/cpu/armv7

[U-Boot] [PATCH 2/2] ARM: cache: implement a default flush_cache() function

2015-06-10 Thread Josh Wu
It will just call flush_dcache_range(). As ARM1136 & ARM926ejs already implemented their own flush_cache(), those code in weak function in arch/arm/lib/cache.c can be dropped. Signed-off-by: Josh Wu --- arch/arm/cpu/arm1136/cpu.c | 9 - arch/arm/cpu/arm926ejs/cache.c

[U-Boot] [resend][PATCH 0/2] ARM: cache: clean up the code to drop the empty stub functions

2015-06-10 Thread Josh Wu
ries introduces a default function for flush_cache(). Josh Wu (2): ARM: cache: drop the empty dcache functions as we have it in lib/cache.c ARM: cache: implement a default flush_cache() function arch/arm/cpu/arm1136/cpu.c | 17 - arch/arm/cpu/arm926ejs/cache.c

Re: [U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-10 Thread Josh Wu
On 6/10/2015 5:58 PM, Marek Vasut wrote: On Wednesday, June 10, 2015 at 11:49:54 AM, Josh Wu wrote: On 6/9/2015 9:11 PM, Tom Rini wrote: On Tue, Jun 09, 2015 at 11:54:14AM +0800, Josh Wu wrote: Hi, Tom On 6/8/2015 9:20 PM, Tom Rini wrote: On Mon, Jun 08, 2015 at 10:26:29AM +0200, Marek

[U-Boot] [PATCH 1/2] ARM: cache: drop the empty dcache functions as we have it in lib/cache.c

2015-06-10 Thread Josh Wu
Signed-off-by: Josh Wu --- arch/arm/cpu/arm1136/cpu.c | 8 arch/arm/cpu/arm926ejs/cache.c | 8 arch/arm/cpu/armv7/cache_v7.c | 8 arch/arm/cpu/armv8/cache_v8.c | 8 4 files changed, 32 deletions(-) diff --git a/arch/arm/cpu/arm1136/cpu.c b/arch/arm/cpu

Re: [U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-10 Thread Josh Wu
On 6/9/2015 9:11 PM, Tom Rini wrote: On Tue, Jun 09, 2015 at 11:54:14AM +0800, Josh Wu wrote: Hi, Tom On 6/8/2015 9:20 PM, Tom Rini wrote: On Mon, Jun 08, 2015 at 10:26:29AM +0200, Marek Vasut wrote: On Monday, June 08, 2015 at 04:05:04 AM, Josh Wu wrote: Hi, Marek On 6/5/2015 9:18 PM

Re: [U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-08 Thread Josh Wu
Hi, Tom On 6/8/2015 9:20 PM, Tom Rini wrote: On Mon, Jun 08, 2015 at 10:26:29AM +0200, Marek Vasut wrote: On Monday, June 08, 2015 at 04:05:04 AM, Josh Wu wrote: Hi, Marek On 6/5/2015 9:18 PM, Marek Vasut wrote: On Friday, June 05, 2015 at 09:47:30 AM, Josh Wu wrote: Since some driver like

Re: [U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-08 Thread Josh Wu
Hi, Marek On 6/8/2015 4:26 PM, Marek Vasut wrote: On Monday, June 08, 2015 at 04:05:04 AM, Josh Wu wrote: Hi, Marek On 6/5/2015 9:18 PM, Marek Vasut wrote: On Friday, June 05, 2015 at 09:47:30 AM, Josh Wu wrote: Since some driver like ohci, lcd used dcache functions. But some ARM cpu don&#

Re: [U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-07 Thread Josh Wu
Hi, Marek On 6/5/2015 9:18 PM, Marek Vasut wrote: On Friday, June 05, 2015 at 09:47:30 AM, Josh Wu wrote: Since some driver like ohci, lcd used dcache functions. But some ARM cpu don't implement the invalidate_dcache_range()/flush_dcache_range() functions. To avoid compiling errors this

[U-Boot] [PATCH v2 2/3] m68k: cache: add an empty stub functions for invalidate/flush dcache

2015-06-05 Thread Josh Wu
f not implemented then by default is using an empty function. Signed-off-by: Josh Wu --- Changes in v2: new added. arch/m68k/lib/cache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c index 21daf3d..ace791b 100644 --- a/arch/m68k/lib/cache.c

[U-Boot] [PATCH v2 1/3] ARM: cache: add an empty stub function for invalidate/flush dcache

2015-06-05 Thread Josh Wu
f not implemented by default it will use an empty function. Signed-off-by: Josh Wu --- Changes in v2: new added arch/arm/lib/cache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 74cfde6..bc48f53 100644 --- a/arch/arm/lib/cache.c

[U-Boot] [PATCH v2 3/3] usb: ohci: enable cache support

2015-06-05 Thread Josh Wu
Remove the CONFIG_DM_USB limitation to enable cache support functions. Tested on SAMA5D3x-EK board. Signed-off-by: Josh Wu Acked-by: Hans de Goede --- Changes in v2: - CONFIG_DM_USB in periodic_unlink() should be remove as well. This version remove it. - Add Hans de Goede's ack

[U-Boot] [PATCH] net: macb: add gmac multi-queue support

2015-06-03 Thread Josh Wu
descriptor, which USED bit is set. So those queues are not used. Signed-off-by: Josh Wu --- drivers/net/macb.c | 33 + drivers/net/macb.h | 9 + 2 files changed, 42 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f949161..a5c1880

Re: [U-Boot] [PULL] u-boot-usb/master

2015-05-25 Thread Josh Wu
k, After a check it seems those cpus doesn't define the flush_dcache_range()/invalidate_dcache_range() functions. I think I need to find a way to distinguish those cpus. Best Regards, Josh Wu Best regards, Marek Vasut ___ U-Boot mail

Re: [U-Boot] soft-i2c and i2c-gpio question with at91

2015-05-24 Thread Josh Wu
nt we don't have time to add the dt support. But if you only want to support i2c, you can enable it by non-dt way, see this for a reference: https://github.com/linux4sam/u-boot-at91/commit/7ff618b526a04b7fb72df1a3e04a91fe40b6ccf3 Best Regards, Josh Wu This is the relevant par

Re: [U-Boot] [PATCH] ARM: atmel: switch to usb ehci for sama5d3 boards

2015-05-19 Thread Josh Wu
Hi, Hans On 5/19/2015 6:57 PM, Hans de Goede wrote: Hi, On 19-05-15 12:54, Josh Wu wrote: From: Bo Shen As the cache coherence issue in OHCI HCD, when enable I/D cache for sama5d3 SoC, the OHCI can not work properly. So, switch to EHCI, then the USB can work well. Signed-off-by: Bo Shen

[U-Boot] [PATCH] ARM: atmel: switch to usb ehci for sama5d3 boards

2015-05-19 Thread Josh Wu
From: Bo Shen As the cache coherence issue in OHCI HCD, when enable I/D cache for sama5d3 SoC, the OHCI can not work properly. So, switch to EHCI, then the USB can work well. Signed-off-by: Bo Shen [rebase to mainline] Signed-off-by: Josh Wu --- include/configs/sama5d3_xplained.h | 21

[U-Boot] [PATCH] usb: ohci: enable cache support

2015-05-19 Thread Josh Wu
Remove the CONFIG_DM_USB limitation to enable cache support functions. Tested on SAMA5D3x-EK board. Signed-off-by: Josh Wu --- drivers/usb/host/ohci-hcd.c | 10 +- drivers/usb/host/ohci.h | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci

[U-Boot] [PATCH] ARM: at91: trival: fix typo for the nand partition name

2015-04-30 Thread Josh Wu
We should use 'env' to present environment instead of 'evn' Signed-off-by: Josh Wu --- include/configs/at91-sama5_common.h | 2 +- include/configs/at91sam9rlek.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/at91-sama5_common.

[U-Boot] [PATCH v2] patman: check git format.subjectprefix setting when generate patches prefix

2015-04-15 Thread Josh Wu
. Signed-off-by: Josh Wu --- Changes in v2: - Modify README file to document how to use format.subjectprefix. tools/patman/README | 6 +- tools/patman/gitutil.py | 11 +++ tools/patman/series.py | 8 +++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/tools

Re: [U-Boot] [PATCH] patman: check git format.subjectprefix setting when generate patches prefix

2015-04-12 Thread Josh Wu
Hi, Simon On 4/11/2015 1:51 AM, Simon Glass wrote: Hi Josh, On 7 April 2015 at 23:13, Josh Wu wrote: For the local project, we may specified format.subjectprefix setting. Then the patch will be formated as [Project_prefix][PATCH]. But patman will not check this setting. It will remove the

[U-Boot] [PATCH] patman: check git format.subjectprefix setting when generate patches prefix

2015-04-07 Thread Josh Wu
. Signed-off-by: Josh Wu --- tools/patman/gitutil.py | 11 +++ tools/patman/series.py | 8 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index 4c2c35b..9e739d8 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman

Re: [U-Boot] [ PATCH] patman: cover letter shows like 00/xx if more than 10 patches

2015-04-07 Thread Josh Wu
On 4/8/2015 4:49 AM, Simon Glass wrote: Hi Josh, On 6 April 2015 at 20:31, Josh Wu wrote: HI, Simon Thanks for the feedback. On 4/6/2015 2:31 AM, Simon Glass wrote: Hi Josh, On 31 March 2015 at 20:54, Josh Wu wrote: Hi, Simon On 4/1/2015 10:04 AM, Simon Glass wrote: Hi Josh, On 30

Re: [U-Boot] [ PATCH] patman: cover letter shows like 00/xx if more than 10 patches

2015-04-06 Thread Josh Wu
HI, Simon Thanks for the feedback. On 4/6/2015 2:31 AM, Simon Glass wrote: Hi Josh, On 31 March 2015 at 20:54, Josh Wu wrote: Hi, Simon On 4/1/2015 10:04 AM, Simon Glass wrote: Hi Josh, On 30 March 2015 at 19:54, Josh Wu wrote: Make cover letter shows like 0/x, 00/xx and 000/xxx etc

[U-Boot] [PATCH v2] patman: cover letter shows like 00/xx if more than 10 patches

2015-04-02 Thread Josh Wu
Make cover letter shows like 0/x, 00/xx and 000/xxx etc. Signed-off-by: Josh Wu --- Changes in v2: - use math.log10() function instead tools/patman/patchstream.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/patman/patchstream.py b/tools/patman

Re: [U-Boot] [ PATCH] patman: cover letter shows like 00/xx if more than 10 patches

2015-03-31 Thread Josh Wu
Hi, Simon On 4/1/2015 10:04 AM, Simon Glass wrote: Hi Josh, On 30 March 2015 at 19:54, Josh Wu wrote: Make cover letter shows like 0/x, 00/xx and 000/xxx etc. Signed-off-by: Josh Wu --- This is a quirk of patman that I've grown comfortable with. Still, we should fix it. Thanks fo

[U-Boot] [ PATCH] patman: cover letter shows like 00/xx if more than 10 patches

2015-03-30 Thread Josh Wu
Make cover letter shows like 0/x, 00/xx and 000/xxx etc. Signed-off-by: Josh Wu --- tools/patman/patchstream.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 8c3a0ec..4bfb1e9 100644 --- a/tools

Re: [U-Boot] [PATCH 2/6] ARM: at91: sama5: move the common part of configurations to at91-sama5_common.h

2015-03-29 Thread Josh Wu
add missed CONFIG_CMD_FLASH vs previous version. Andreas Best Regards, Josh Wu ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [ PATCH v2] ARM: at91: sama5: move the common part of configurations to at91-sama5_common.h

2015-03-29 Thread Josh Wu
including the common header. For sama5d3-xplained: - add CMD_SETEXPR For sama5d3xek: - add CMD_SETEXPR - change CONFIG_SYS_MALLOC_LEN to (4*1024*1024) Signed-off-by: Josh Wu --- Changes in v2: - serperate the patch alone and rebase on top of latest u-boot. - add the missing CMD_FLASH for

Re: [U-Boot] NAND Flash with Internal Hardware ECC

2015-03-29 Thread Josh Wu
using the github/linux-2.6.39-at91 branch, you need change the arch/arm/mach-at91/board-sam9263ek.c to set .ecc_mode as NAND_ECC_NONE. Best Regards, Josh Wu Regards Rajiv Dave Disign Consultants t: +44 (0) 207 544 8486 w: www.disignconsultants.com This message and any attachment are

Re: [U-Boot] NAND Flash with Internal Hardware ECC

2015-03-26 Thread Josh Wu
engine. Would you know how provide support for this device within U-Boot? As your flash have internal ecc, you should disable the AT91SAM9263 ecc. it means you need to set the nand->ecc.mode to NAME_ECC_NONE in the U-Boot if you already enabled internal Hardware ECC. Best Regards, Josh Wu

Re: [U-Boot] [PATCHv2] ARM: at91: atmel_nand: Support flash based BBT

2015-03-24 Thread Josh Wu
Hi, David Thanks for the patch. On 3/20/2015 5:52 PM, David Dueck wrote: Add support for on-flash bad block table. This makes U-Boot handle an existing BBT correctly. Signed-off-by: David Dueck Reviewed-by: Boris BREZILLON CC: Boris BREZILLON CC: Josh Wu CC: Andreas Bießmann CC: Scott

[U-Boot] [PATCH v2] ARM: at91: at91sam9n12ek: save the environment to a fat file in MMC card

2015-03-24 Thread Josh Wu
Insteading in mmc's raw sectors, this patch will save the environment in a fat file (uboot.env) in mmc card's first FAT patition by default. If you want to save in mmc's raw sectors, you only need to define CONFIG_ENV_IS_IN_MMC. Signed-off-by: Josh Wu --- Changes in v2: - not

[U-Boot] [PATCH] ARM: at91: at91sam9n12ek: save the environment to a fat file in MMC card

2015-03-24 Thread Josh Wu
Insteading in mmc's raw sectors, this patch will save the environment in a fat file (uboot.env) in mmc card's first FAT patition. Signed-off-by: Josh Wu --- include/configs/at91sam9n12ek.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/inclu

Re: [U-Boot] [PATCH] at91sam9rlek_mmc_defconfig: Add CONFIG_ARCH_AT91=y

2015-03-22 Thread Josh Wu
Hi, Tom Thanks for fix this issue in mainline. I forgot to aligned it with mainline defconfig. Best Regards, Josh Wu On 3/20/2015 10:48 PM, Tom Rini wrote: This flag was missing and thus the board was totally being configured wrong. Signed-off-by: Tom Rini --- configs

Re: [U-Boot] [PATCH] mtd: atmel_nand: according to pmecc version to perform 0xff page correction

2015-02-09 Thread Josh Wu
Hi, Andreas On 2/10/2015 5:51 AM, Andreas Bießmann wrote: Hi Scott, On 09.02.15 18:04, Scott Wood wrote: On Mon, 2015-02-02 at 14:08 +0800, Josh Wu wrote: Hi, Scott On 1/16/2015 4:24 PM, Andreas Bießmann wrote: Hi Bo, Josh, On 01/16/2015 07:50 AM, Josh Wu wrote: Hi, Bo On 1/16/2015 1:27

Re: [U-Boot] [PATCH V2 00/13] common lcd refactor

2015-02-04 Thread Josh Wu
h create mode 100644 include/exynos_lcd.h create mode 100644 include/fdt_simplefb.h create mode 100644 include/mpc823_lcd.h create mode 100644 include/pxa_lcd.h For this whole series, I tested the Atmel lcd & hlcd part, you can add my tested-by: Tested-by: Josh Wu Thanks. Best Re

[U-Boot] [PATCH] ARM: at91: sama5d4: display the U-Boot version on LCD

2015-02-04 Thread Josh Wu
This patch will display the U-Boot version on LCD. Signed-off-by: Josh Wu --- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 2 ++ board/atmel/sama5d4ek/sama5d4ek.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board

Re: [U-Boot] [PATCH] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-02-04 Thread Josh Wu
On 2/4/2015 1:10 PM, Bo Shen wrote: Hi Josh, On 02/03/2015 06:19 PM, Josh Wu wrote: HUSH parser will handle the variable easier. That will be helpful for write a complicated U-Boot commands or varaibles. You are on the way to Kconfig. :) Yep. Seems a long way to go ;-) Thanks. Signed

[U-Boot] [PATCH] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-02-03 Thread Josh Wu
HUSH parser will handle the variable easier. That will be helpful for write a complicated U-Boot commands or varaibles. Signed-off-by: Josh Wu --- configs/at91sam9rlek_dataflash_defconfig | 1 + configs/at91sam9rlek_mmc_defconfig | 1 + configs/at91sam9rlek_nandflash_defconfig | 1 + 3

[U-Boot] [PATCH v2] ARM: at91: at91sam9rlek: update the default nand flash configs

2015-02-02 Thread Josh Wu
Update the nand flash offset mapping, default nand bootcmand and bootargs to align with linux4sam.org. Signed-off-by: Josh Wu Acked-by: Bo Shen --- Changes in v2: - modify the BOOTCMD to load both kernel and dtb. include/configs/at91sam9rlek.h | 18 +++--- 1 file changed, 11

[U-Boot] [PATCH 2/2] ARM: at91: at91sam9rlek: add mmc environment configuration

2015-02-02 Thread Josh Wu
Add a mmc default config, which will save the environment in a FAT file (uboot.env) of MMC. Signed-off-by: Josh Wu --- configs/at91sam9rlek_mmc_defconfig | 3 +++ include/configs/at91sam9rlek.h | 18 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644

[U-Boot] [PATCH 0/2] ARM: at91: at91sam9rlek: add mmc config for at91sam9rlek

2015-02-02 Thread Josh Wu
This patch series will enable mmc support on at91sam9rlek board. And also add a MMC config for it. Josh Wu (2): ARM: at91: at91sam9rlek: add mci support ARM: at91: at91sam9rlek: add mmc environment configuration arch/arm/cpu/arm926ejs/at91/at91sam9rl_devices.c | 17 ++ board

[U-Boot] [PATCH 1/2] ARM: at91: at91sam9rlek: add mci support

2015-02-02 Thread Josh Wu
This patch enable the MCI support for at91sam9rlek board. Signed-off-by: Josh Wu --- arch/arm/cpu/arm926ejs/at91/at91sam9rl_devices.c | 17 + board/atmel/at91sam9rlek/at91sam9rlek.c | 10 ++ include/configs/at91sam9rlek.h | 11 +++ 3

[U-Boot] [PATCH] ARM: at91: at91sam9rlek: update the default nand flash configs

2015-02-02 Thread Josh Wu
Update the nand flash offset mapping, default nand bootcmand and bootargs to align with linux4sam.org. Signed-off-by: Josh Wu --- include/configs/at91sam9rlek.h | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/configs/at91sam9rlek.h b/include/configs

Re: [U-Boot] [PATCH] mtd: atmel_nand: according to pmecc version to perform 0xff page correction

2015-02-01 Thread Josh Wu
Hi, Scott On 1/16/2015 4:24 PM, Andreas Bießmann wrote: Hi Bo, Josh, On 01/16/2015 07:50 AM, Josh Wu wrote: Hi, Bo On 1/16/2015 1:27 PM, Bo Shen wrote: Hi Josh, On 01/16/2015 11:54 AM, Josh Wu wrote: As the PMECC hardware has different version. In SAMA5D4 chip, the PMECC ip can generate

[U-Boot] [PATCH v3 3/3] ARM: at91: at91sam9x5: save environment to a FAT file in MMC card

2015-01-19 Thread Josh Wu
This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu Acked-by: Bo Shen --- Changes in v3: None Changes in v2: - refined commit messages - fix a

[U-Boot] [PATCH v3 2/3] ARM: at91: sama5d3xek: save enviroment as a FAT file in MMC card

2015-01-19 Thread Josh Wu
This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu Acked-by: Bo Shen --- Changes in v3: - move CONFIG_FAT_WRITE macro to share with USB and MMC Changes

[U-Boot] [PATCH v3 0/3] ARM: at91: save mmc environment in a FAT file instead of some sectors

2015-01-19 Thread Josh Wu
patches which only convert the mmc environment to FAT file. Changes in v3: - move CONFIG_FAT_WRITE macro to share with USB and MMC Changes in v2: - refined commit messages - fix a compile error for at91sam9x5 mmc env file. Josh Wu (3): ARM: at91: sama5d3_xplained: save environment in a FAT file in

  1   2   3   >