Re: [U-Boot] [PATCH] cmd_sf: Fix problem with sf update and unaligned length

2015-01-12 Thread Gerlando Falauto
Hi Wolfgang, On 01/12/2015 08:27 AM, Stefan Roese wrote: Hi Wolfgang, On 12.01.2015 08:17, Wolfgang Denk wrote: The new code is even simpler and copies the source data into the temp buffer and now uses the temp buffer to write the complete sector. So only one SPI sector write is used now

Re: [U-Boot] [PATCH] cmd_sf: Fix problem with sf update and unaligned length

2015-01-12 Thread Gerlando Falauto
Hi Stefan, On 01/12/2015 08:56 AM, Stefan Roese wrote: Hi Gerlando, On 12.01.2015 08:51, Gerlando Falauto wrote: thanks for the patch. Please compare it with my v1 revision of the patch: http://patchwork.ozlabs.org/patch/150468/ Back then, Simon suggested to use two separate SPI flash

Re: [U-Boot] [PATCH] cmd_sf: Fix problem with sf update and unaligned length

2015-01-11 Thread Gerlando Falauto
. Anyway, your patch looks even better than my v1 then, so: Acked-by: Gerlando Falauto gerlando.fala...@keymile.com Thank you, Gerlando On 01/09/2015 02:39 PM, Stefan Roese wrote: On SoCFPGA, using sf update with an non-4byte aligned length leads to a hangup (and reboot via watchdog

Re: [U-Boot] [PATCH v3 2/2] cmd_sf: let sf update preserve the final part of the last sector

2013-07-05 Thread Gerlando Falauto
Hi Jagan, On 07/04/2013 06:26 PM, Jagan Teki wrote: On Thu, Jul 4, 2013 at 12:03 AM, Gerlando Falauto gerlando.fala...@keymile.com wrote: Since sf update erases the last block as a whole, but only rewrites the meaningful initial part of it, the rest would be left erased, potentially erasing

Re: [U-Boot] [PATCH v2 2/2] cmd_sf: sf update preserve the final part of the last sector

2013-07-03 Thread Gerlando Falauto
Hi, On 07/03/2013 05:04 PM, Jagan Teki wrote: Hi, Thanks for the v2. On Fri, Jun 28, 2013 at 1:13 PM, Gerlando Falauto gerlando.fala...@keymile.com wrote: Since sf update erases the last block as a whole, but only rewrites the meaningful initial part of it, the rest would be left erased

[U-Boot] [PATCH v3 2/2] cmd_sf: let sf update preserve the final part of the last sector

2013-07-03 Thread Gerlando Falauto
Since sf update erases the last block as a whole, but only rewrites the meaningful initial part of it, the rest would be left erased, potentially erasing meaningful information. So, as a safety measure, have it rewrite the original content. Signed-off-by: Gerlando Falauto gerlando.fala

[U-Boot] [PATCH v3 1/2] cmd_sf: let sf update erase last sector as a whole

2013-07-03 Thread Gerlando Falauto
make sf update work with unaligned `len' parameter, by deleting the whole last sector before writing, so to allow for: sf update ${load_addr_r} 0 ${filesize} Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck

[U-Boot] [PATCH v3 0/2] SPI flash update command

2013-07-03 Thread Gerlando Falauto
v1 [April, 03, 2012 (!)]: - Rebased on top of u-boot-spi/master Gerlando Falauto (2): cmd_sf: let sf update erase last sector as a whole cmd_sf: sf update preserve the final part of the last sector common/cmd_sf.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions

[U-Boot] [PATCH v2 1/2] cmd_sf: let sf update erase last sector as a whole

2013-06-28 Thread Gerlando Falauto
make sf update work with unaligned `len' parameter, by deleting the whole last sector before writing, so to allow for: sf update ${load_addr_r} 0 ${filesize} Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck

[U-Boot] [PATCH v2 2/2] cmd_sf: sf update preserve the final part of the last sector

2013-06-28 Thread Gerlando Falauto
Since sf update erases the last block as a whole, but only rewrites the meaningful initial part of it, the rest would be left erased, potentially erasing meaningful information. So, as a safety measure, have it rewrite the original content. Signed-off-by: Gerlando Falauto gerlando.fala

[U-Boot] [PATCH v2 0/2] SPI flash update command

2013-06-28 Thread Gerlando Falauto
Gerlando Falauto (2): cmd_sf: let sf update erase last sector as a whole cmd_sf: sf update preserve the final part of the last sector common/cmd_sf.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) -- 1.7.10.1 ___ U-Boot

Re: [U-Boot] [PATCH] kirkwood_nand: allow usage of NAND_ECC_SOFT_BCH

2013-04-08 Thread Gerlando Falauto
Wadaskar wrote: -Original Message- From: Holger Brunck [mailto:holger.bru...@keymile.com] Sent: 16 January 2013 14:04 To: u-boot@lists.denx.de Cc: Gerlando Falauto; Holger Brunck; Valentin Longchamp; Prafulla Wadaskar Subject: [PATCH] kirkwood_nand: allow usage of NAND_ECC_SOFT_BCH From

Re: [U-Boot] [PATCH V2] MPC8308: Fixup clocks in PCI Host configuration

2013-01-14 Thread Gerlando Falauto
On 01/15/2013 01:59 AM, Kim Phillips wrote: On Tue, 8 Jan 2013 18:25:11 -0800 Barry Grusslingba...@grussling.com wrote: --- can I get an ack from someone else with an 8308 here please? This custom board fix has the possibility of bricking all existing 8308 based mainline boards. Sorry, we

Re: [U-Boot] analyze/change assembly code

2012-11-20 Thread Gerlando Falauto
On 11/20/2012 09:54 AM, Marek Vasut wrote: Dear Gerlando Falauto, Hi all, we recently to had face some nasty issues, where for some reason two (functionally identical) versions of some code behave very differently. Namely, one version works and the other doesn't always work. It was clear from

Re: [U-Boot] analyze/change assembly code

2012-11-20 Thread Gerlando Falauto
On 11/20/2012 02:26 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 11/20/2012 09:54 AM, Marek Vasut wrote: Dear Gerlando Falauto, Hi all, we recently to had face some nasty issues, where for some reason two (functionally identical) versions of some code behave very differently. Namely

Re: [U-Boot] analyze/change assembly code

2012-11-18 Thread Gerlando Falauto
Hi Albert, On 11/10/2012 12:25 PM, Albert ARIBAUD wrote: Hi Gerlando, On Tue, 30 Oct 2012 12:08:01 +0100, Gerlando Falauto gerlando.fala...@keymile.com wrote: Hi all, we recently to had face some nasty issues, where for some reason two (functionally identical) versions of some code behave

[U-Boot] analyze/change assembly code

2012-10-30 Thread Gerlando Falauto
Hi all, we recently to had face some nasty issues, where for some reason two (functionally identical) versions of some code behave very differently. Namely, one version works and the other doesn't always work. It was clear from the beginning this was because of HW- (or compiler-) related

[U-Boot] [PATCH v2 0/6] introducing vect1: mpc8309 keymile board

2012-10-11 Thread Gerlando Falauto
a new one. Difference from v1: - added preliminary cleanup patches #2/3 to simplify #if conditions in speed.c - fixed #ifdef so to restore code block assigning to usbdr_clk - removed checkpatch errors Gerlando Falauto (6): cosmetic: suvd3: align #defines cleanup: use CONFIG_QE instead

[U-Boot] [PATCH v2 3/6] cleanup: introduce CONFIG_MPC830x

2012-10-11 Thread Gerlando Falauto
Introduce a new configuration token CONFIG_MPC830x to be shared among mpc8308 and mpc8309. Define it for existing 8308 boards, and refactor existing common code so to make future introduction of 8309 simpler. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- arch/powerpc/cpu

[U-Boot] [PATCH v2 1/6] cosmetic: suvd3: align #defines

2012-10-11 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- include/configs/km/km8321-common.h |2 +- include/configs/suvd3.h|4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/km/km8321-common.h b/include/configs/km/km8321-common.h

[U-Boot] [PATCH v2 2/6] cleanup: use CONFIG_QE instead of CONFIG_MPC8360 || CONFIG_MPC832x

2012-10-11 Thread Gerlando Falauto
simplify #if defined(CONFIG_MPC8360) || defined(CONFIG_MPC832x) for qe variables with #if defined(CONFIG_QE) Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- arch/powerpc/cpu/mpc83xx/speed.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch

[U-Boot] [PATCH v2 5/6] km83xx: add common support for km8309 boards

2012-10-11 Thread Gerlando Falauto
Add support for Keymile boards based on mpc8309 (it would be only kmvect1 for now) Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- board/keymile/km83xx/km83xx.c |2 +- include/configs/km/km8309-common.h | 176 include/configs/km

[U-Boot] [PATCH v2 6/6] km83xx: add kmvect1 board

2012-10-11 Thread Gerlando Falauto
Add support for the new kmvect1 board powered by the mpc8309 processor. As this board is very similar to the existing suvd3, instead of adding a new config header file, just add a new config option to suvd3.h Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- boards.cfg

[U-Boot] [PATCH v2 4/6] mpc83xx: add support for mpc8309

2012-10-11 Thread Gerlando Falauto
This processor, though very similar to other members of the PowerQUICC II Pro family (namely 8308, 8360 and 832x), provides yet another feature set than any supported sibling. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- arch/powerpc/cpu/mpc83xx/cpu.c |1 + arch

Re: [U-Boot] [PATCH v1] env: fix crash using default -f -a

2012-10-05 Thread Gerlando Falauto
Hi Stefano, thanks for reporting and providing a fix for this. I'm very sorry for introducing this problem and for the late response. Please see my comments below. [As a side node, I couldn't really reproduce the issue neither on PowerPC nor on ARM (though simple_strtoul should legitimately

[U-Boot] [PATCH] env: fix crash using default -f -a

2012-10-05 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 3474bc6..c38b475 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -213,6 +213,9 @@ int

Re: [U-Boot] [PATCH v1] env: fix crash using default -f -a

2012-10-05 Thread Gerlando Falauto
Hi Stefano, On 10/05/2012 12:41 PM, Stefano Babic wrote: On 05/10/2012 12:29, Gerlando Falauto wrote: Hi Stefano, Hi Gerlando, thanks for reporting and providing a fix for this. I'm very sorry for introducing this problem and for the late response. Please see my comments below

Re: [U-Boot] [PATCH v1 2/4] mpc83xx: add support for mpc8309

2012-09-28 Thread Gerlando Falauto
On 09/28/2012 01:18 AM, Kim Phillips wrote: On Thu, 27 Sep 2012 09:21:19 +0200 Gerlando Falautogerlando.fala...@keymile.com wrote: On 09/27/2012 03:22 AM, Kim Phillips wrote: [...] so far the 8308 and the 8360 are the only SoCs that don't have a 'tens'/MPC83Xx defines. The 8360 can get

Re: [U-Boot] [PATCH v1 2/4] mpc83xx: add support for mpc8309

2012-09-27 Thread Gerlando Falauto
On 09/27/2012 03:22 AM, Kim Phillips wrote: On Wed, 26 Sep 2012 10:28:08 +0200 Gerlando Falautogerlando.fala...@keymile.com wrote: This processor, though very similar to other members of the PowerQUICC II Pro family (namely 8308, 8360 and 832x), provides yet another feature set than any

[U-Boot] [PATCH v1 0/4] introducing vect1: mpc8309 keymile board

2012-09-26 Thread Gerlando Falauto
a new one. NOTE: speed.c is getting more and more complicated by long #ifdef conditions affecting even single lines. Perhaps a whole feature-set partitioning could lead to much cleaner code. Gerlando Falauto (4): cosmetic: suvd3: align #defines mpc83xx: add support for mpc8309 km83xx: add

[U-Boot] [PATCH v1 1/4] cosmetic: suvd3: align #defines

2012-09-26 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- include/configs/km/km8321-common.h |2 +- include/configs/suvd3.h|4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/km/km8321-common.h b/include/configs/km/km8321-common.h

[U-Boot] [PATCH v1 4/4] km83xx: add kmvect1 board

2012-09-26 Thread Gerlando Falauto
Add support for the new kmvect1 board powered by the mpc8309 processor. As this board is very similar to the existing suvd3, instead of adding a new config header file, just add a new config option to suvd3.h Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- boards.cfg

[U-Boot] [PATCH v1 2/4] mpc83xx: add support for mpc8309

2012-09-26 Thread Gerlando Falauto
be worth to refactor the whole file so to first identify the featureset of the given CPU, and enclose each block within #ifdef CONFIG_MPC83XX_FEAT_ for instance: - CONFIG_MPC83XX_FEAT_USBDR - CONFIG_MPC83XX_FEAT_QE - CONFIG_MPC83XX_FEAT_DDRSEC ...etc... Signed-off-by: Gerlando Falauto

[U-Boot] [PATCH v1 3/4] km83xx: add common support for km8309 boards

2012-09-26 Thread Gerlando Falauto
Add support for Keymile boards based on mpc8309 (it would be only kmvect1 for now) Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- board/keymile/km83xx/km83xx.c |2 +- include/configs/km/km8309-common.h | 174 include/configs/km

Re: [U-Boot] Subject: [PATCH] Fix for bug in memory sizing code

2012-09-21 Thread Gerlando Falauto
Hi, this patch actually breaks the mpc83xx board I am currently working on, leading to a detected size of 2 GiB (as opposed to the actual size of 128 MiB). I tried reviewing it and couldn't really figure out why, as it seems legitimate, and I currently don't have a chance to check it on other

[U-Boot] QE firmware/microcode handling

2012-09-20 Thread Gerlando Falauto
Hi everyone, following up Timur's patch on QE microcode: http://marc.info/?l=u-bootm=132197537730440w=2 I was wondering, would it make any sense to *embed* QE's firmware within u-boot image itself? After all, it should be some ~64KB worth of data, right? Not quite sure whether this has ever

Re: [U-Boot] [PATCH v4 0/7] env: handle special variables and selective env default

2012-09-03 Thread Gerlando Falauto
On 09/02/2012 06:13 PM, Marek Vasut wrote: Dear Wolfgang Denk, Dear Gerlando Falauto, In message1345803102-21110-1-git-send-email-gerlando.fala...@keymile.com you wrote: This patchset modifies the handling of all the operations on the environment (set/import/default) so to unify handling

Re: [U-Boot] [PATCH v4 7/7] env: delete selected vars not present in imported env

2012-09-03 Thread Gerlando Falauto
On 09/02/2012 02:01 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message50379ad5.6030...@keymile.com you wrote: int himport_r(struct hsearch_data *htab, const char *env, size_t size, const char sep, int flag, - int nvars, char * const vars[], int

Re: [U-Boot] [PATCH v4 6/7] env: make env default selective, check and apply

2012-08-27 Thread Gerlando Falauto
On 08/24/2012 11:10 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 08/24/2012 04:56 PM, Marek Vasut wrote: Dear Gerlando Falauto, Change the syntax (user API) for env default: -f: override write-once variables var... : accept individual variable(s) -a: all (resetting the whole

Re: [U-Boot] [PATCH v4 7/7] env: delete selected vars not present in imported env

2012-08-27 Thread Gerlando Falauto
On 08/24/2012 11:12 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 08/24/2012 04:58 PM, Marek Vasut wrote: Dear Gerlando Falauto, When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing

[U-Boot] [PATCH v5 7/7] env: delete selected vars not present in imported env

2012-08-27 Thread Gerlando Falauto
When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- Changes from v4: - renamed

Re: [U-Boot] [PATCH v3 0/6] env: handle special variables and selective env default

2012-08-24 Thread Gerlando Falauto
On 08/13/2012 12:11 PM, Wolfgang Denk wrote: Dear Holger Brunck, In message5028ab80.5030...@keymile.com you wrote: time to do updates here I propose the following. I could prepare a branch as you suggested based on current denx master with this changeset. But where and how should I push it

[U-Boot] [PATCH v4 0/7] env: handle special variables and selective env default

2012-08-24 Thread Gerlando Falauto
warnings in case of H_FORCE flag being set Changes from v0 - checkpatch cleanup - removed himport_ex() - removed warning for serial_assign() - env import NOT implemented here Gerlando Falauto (7): env: cosmetic: drop assignment i = iomux_doenv() env: unify logic to check and apply changes env

[U-Boot] [PATCH v4 1/7] env: cosmetic: drop assignment i = iomux_doenv()

2012-08-24 Thread Gerlando Falauto
iomux_doenv() can only return 0 or 1. So there is no need to save its return value in variable i, as checking its truth value within an if statement is enough. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |5 ++--- 1 file changed, 2 insertions(+), 3

[U-Boot] [PATCH v4 3/7] env: make himport_r() selective on variables

2012-08-24 Thread Gerlando Falauto
Add 2 new arguments to himport_r(): o nvars, vars: number and list of variables to take into account (0 means ALL) NOTE: This patch does not change the current behaviour. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |3 ++- common/env_common.c

[U-Boot] [PATCH v4 5/7] env: check and apply changes on delete/destroy

2012-08-24 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |2 +- include/search.h|5 +++-- lib/hashtable.c | 16 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 983e747

[U-Boot] [PATCH v4 6/7] env: make env default selective, check and apply

2012-08-24 Thread Gerlando Falauto
-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c | 40 ++-- common/env_common.c | 28 +++- include/environment.h |3 +++ 3 files changed, 64 insertions(+), 7 deletions(-) diff --git a/common

[U-Boot] [PATCH v4 2/7] env: unify logic to check and apply changes

2012-08-24 Thread Gerlando Falauto
, no matter if by set, default or import. With this patch env_check_apply() is only called by env set, retaining previous behavior. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c | 141 +-- include/search.h|3

[U-Boot] [PATCH v4 4/7] env: add check/apply logic to himport_r()

2012-08-24 Thread Gerlando Falauto
; when NULL, no check is performed. And a new argument to himport_r(): o do_apply: whether to call the apply callback function NOTE: This patch does not change the current behavior. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |3 ++- common

[U-Boot] [PATCH v4 7/7] env: delete selected vars not present in imported env

2012-08-24 Thread Gerlando Falauto
When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- lib/hashtable.c | 48

Re: [U-Boot] [PATCH v4 6/7] env: make env default selective, check and apply

2012-08-24 Thread Gerlando Falauto
On 08/24/2012 04:56 PM, Marek Vasut wrote: Dear Gerlando Falauto, Change the syntax (user API) for env default: -f: override write-once variables var... : accept individual variable(s) -a: all (resetting the whole env is NOT the default behavior) Enable variable checking and make

Re: [U-Boot] [PATCH v4 7/7] env: delete selected vars not present in imported env

2012-08-24 Thread Gerlando Falauto
On 08/24/2012 04:58 PM, Marek Vasut wrote: Dear Gerlando Falauto, When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando

Re: [U-Boot] [PATCH v3 0/6] env: handle special variables and selective env default

2012-08-09 Thread Gerlando Falauto
On 08/09/2012 10:17 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message191204-16318-1-git-send-email-gerlando.fala...@keymile.com you wrote: This patchset modifies the handling of all the operations on the environment (set/import/default) so to unify handling of special variables

Re: [U-Boot] [PATCH 4/7] powerpc/82xx: move km/km82xx-common.h within km82xx.h

2012-08-02 Thread Gerlando Falauto
On 07/30/2012 09:12 PM, Wolfgang Denk wrote: Dear Gerlando, In message5016d241.4030...@keymile.com you wrote: Please also try with -M -C and see if this changes anything. For this one patch I can't get git to detect renames. Neither can I. Thanks for trying, though. It turns out you

[U-Boot] [PATCH v2 4/7] powerpc/82xx: move km/km82xx-common.h within km82xx.h

2012-08-02 Thread Gerlando Falauto
The only file including km82xx-common.h is km82xx.h. So there is no need to have it as a separate file. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- Changes from v1: switched to git v1.7.10.4, used git format-patch -M -C -B --- include/configs/{km/km82xx-common.h = km82xx.h

Re: [U-Boot] [PATCH 3/7] powerpc/82xx: merge mgcoge.h and mgcoge3ne.h into km82xx.h

2012-07-30 Thread Gerlando Falauto
Dear Wolgfang Denk, On 07/27/2012 07:30 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message1343402200-32020-4-git-send-email-gerlando.fala...@keymile.com you wrote: Since mgcoge and mgcoge3ne are the only km82xx boards, there is no need to keep them as separate .h config files

Re: [U-Boot] [PATCH 3/7] powerpc/82xx: merge mgcoge.h and mgcoge3ne.h into km82xx.h

2012-07-30 Thread Gerlando Falauto
On 07/30/2012 03:00 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message50164f3a.6050...@keymile.com you wrote: boards.cfg |4 +- include/configs/km82xx.h| 149 +++ include/configs/mgcoge.h| 93

Re: [U-Boot] [PATCH 3/7] powerpc/82xx: merge mgcoge.h and mgcoge3ne.h into km82xx.h

2012-07-30 Thread Gerlando Falauto
On 07/30/2012 06:07 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message5016a093.6040...@keymile.com you wrote: The way I understand it, such renaming information is built on the fly while building the patch (like you're suggesting, it's a parameter to git format-patch

[U-Boot] [PATCH v2 3/7] powerpc/82xx: merge mgcoge.h and mgcoge3ne.h into km82xx.h

2012-07-30 Thread Gerlando Falauto
Since mgcoge and mgcoge3ne are the only km82xx boards, there is no need to keep them as separate .h config files. Therefore, make mgcoge3ne.h and mgcoge.h converge into a single km82xx.h file. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- Changes from v1: switched to git

Re: [U-Boot] [PATCH 4/7] powerpc/82xx: move km/km82xx-common.h within km82xx.h

2012-07-30 Thread Gerlando Falauto
On 07/27/2012 07:31 PM, Wolfgang Denk wrote: Dear Gerlando Falauto, In message1343402200-32020-5-git-send-email-gerlando.fala...@keymile.com you wrote: The only file including km82xx-common.h is km82xx.h. So there is no need to have it as a separate file. Signed-off-by: Gerlando

Re: [U-Boot] cfi: Problem with Intel Strata 28F320 flash

2012-07-27 Thread Gerlando Falauto
Hi all, On 03/09/2011 02:21 PM, Detlev Zundel wrote: Hi Heiko, Maybe a way to go ... more comments? Below a patch, which introduces a function, which checks for protection bugfixes, and if no bugfix is found the old code is executed. Just a fast RFC patch. bye, Heiko [...] Can't we

[U-Boot] [PATCH] km/common: remove printfs for i2c deblocking code

2012-07-27 Thread Gerlando Falauto
From: Holger Brunck holger.bru...@keymile.com This code will also be used before reallocation and during this time we are not allowed to do these printings. Signed-off-by: Holger Brunck holger.bru...@keymile.com --- board/keymile/common/common.c |3 --- 1 files changed, 0 insertions(+), 3

[U-Boot] [PATCH 1/7] powerpc/82xx: remove unused define for mgcoge3ne

2012-07-27 Thread Gerlando Falauto
From: Holger Brunck holger.bru...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com --- include/configs/mgcoge3ne.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/include/configs/mgcoge3ne.h b/include/configs/mgcoge3ne.h index 6fa1584..43d14ba 100644

[U-Boot] [PATCH 0/7] km82xx and mgcogeXxx reworking

2012-07-27 Thread Gerlando Falauto
Hello, this patch series does a bit of housekeeping on our mgcogeXxx boards. First we do some due code cleanups which just move code around, then we introduce dynamic SDRAM detection so the same u-boot binary can be used on different boards. Gerlando Falauto (6): powerpc/82xx: move mgcoge

[U-Boot] [PATCH 2/7] powerpc/82xx: move mgcoge, mgcoge3ne defines to ease subsequent merge

2012-07-27 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- include/configs/mgcoge.h| 34 +- include/configs/mgcoge3ne.h | 34 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/include/configs/mgcoge.h

[U-Boot] [PATCH 4/7] powerpc/82xx: move km/km82xx-common.h within km82xx.h

2012-07-27 Thread Gerlando Falauto
The only file including km82xx-common.h is km82xx.h. So there is no need to have it as a separate file. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- include/configs/km/km82xx-common.h | 317 include/configs/km82xx.h | 290

[U-Boot] [PATCH 3/7] powerpc/82xx: merge mgcoge.h and mgcoge3ne.h into km82xx.h

2012-07-27 Thread Gerlando Falauto
Since mgcoge and mgcoge3ne are the only km82xx boards, there is no need to keep them as separate .h config files. Therefore, make mgcoge3ne.h and mgcoge.h converge into a single km82xx.h file. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- boards.cfg |4

[U-Boot] [PATCH 5/7] powerpc/82xx: add SDRAM detection for km82xx

2012-07-27 Thread Gerlando Falauto
bitfields will be defined, as usual, within CONFIG_SYS_PSDMR and CONFIG_SYS_OR1. If CONFIG_SYS_SDRAM_LIST is not defined, then the usual behavior is retained. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- board/keymile/km82xx/km82xx.c | 51

[U-Boot] [PATCH 6/7] powerpc/82xx: use SDRAM detection for mgcoge2ne

2012-07-27 Thread Gerlando Falauto
: 4 chips x 8M (13 rows, 10 cols) x 16 bit x 4 banks we can now also have 128MB geometry: 4 chips x 4M (13 rows, 9 cols) x 16 bit x 4 banks Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- include/configs/km82xx.h | 17 + 1 files changed, 13 insertions

[U-Boot] [PATCH 7/7] powerpc/82xx: adapt SDRAM settings for mgcoge3ne

2012-07-27 Thread Gerlando Falauto
The HW guys suggested to change these two values. And these values are now identical to the values we use on mgcoge. PSDMR_WRC was set to 1C as it should lead to better performance. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Signed-off-by: Holger Brunck holger.bru

[U-Boot] [PATCH v4 3/4] kirkwood: implement kw_sdram_size_adjust

2012-07-25 Thread Gerlando Falauto
Size of the SDRAM chips might differ between any two (otherwise identical) instances of the same board. So add a function kw_sdram_size_adjust() which reads out the current ram size for a given bank, and adjusts the Kirkwood's SDRAM window size register accordingly. Signed-off-by: Gerlando

[U-Boot] [PATCH v4 4/4] arm/km: use kw_sdram_size_adjust to adjust SDRAM size

2012-07-25 Thread Gerlando Falauto
From: Holger Brunck holger.bru...@keymile.com Some boards may differ only in the SDRAM size. This function allows to fix the size accordingly and we can use the same u-boot binary for both boards. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Gerlando Falauto

[U-Boot] [PATCH v2 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-06 Thread Gerlando Falauto
kw_sdram_bs_set(), to be called for instance within board_early_init_f(). Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Reviewed-by: Marek Vasut ma...@denx.de Cc: Prafulla Wadaskar prafu...@marvell.com Cc: Wolfgang Denk w...@denx.de Cc: Valentin Longchamp valentin.longch...@keymile.com Cc

[U-Boot] [PATCH v2 2/2] km_arm: enable SDRAM window size fixup

2012-07-06 Thread Gerlando Falauto
Size of the SDRAM chips might differ between any two (otherwise identical) instances of the same board. So change board_early_init_f() to use km_sdram_bs_set(), in order to fixup the window size register at runtime, according to the detected SDRAM size. Signed-off-by: Gerlando Falauto

Re: [U-Boot] [PATCH] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Gerlando Falauto
Hi Albert, On 07/05/2012 12:39 PM, Albert ARIBAUD wrote: Hi Gerlando, On Fri, 29 Jun 2012 13:37:54 +0200, Gerlando Falauto gerlando.fala...@keymile.com wrote: Some boards might be equipped with different SDRAM configurations. When that is the case, CPU CS Window Size Register (CS[0]n Size

[U-Boot] [PATCH 2/2] km_arm: enable SDRAM window size fixup

2012-07-05 Thread Gerlando Falauto
Size of the SDRAM chips might differ between any two (otherwise identical) instances of the same board. So change board_early_init_f() to use km_sdram_bs_set(), in order to fixup the window size register at runtime, according to the detected SDRAM size. Signed-off-by: Gerlando Falauto

[U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Gerlando Falauto
kw_sdram_bs_set(), to be called for instance within board_early_init_f(). Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Marek Vasut ma...@denx.de Cc: Prafulla Wadaskar prafu...@marvell.com Cc: Wolfgang Denk w...@denx.de Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger

Re: [U-Boot] [PATCH 1/2] kirkwood: implement kw_sdram_bs_set()

2012-07-05 Thread Gerlando Falauto
On 07/05/2012 05:38 PM, Marek Vasut wrote: Dear Gerlando Falauto, Some boards might be equipped with different SDRAM configurations. When that is the case, CPU CS Window Size Register (CS[0]n Size) should be set to the biggest value through board.cfg file; then its value can be fixed

[U-Boot] [PATCH] kirkwood: implement kw_sdram_bs_set()

2012-06-29 Thread Gerlando Falauto
kw_sdram_bs_set(), to be called for instance within board_early_init_f(). Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Marek Vasut ma...@denx.de Cc: Prafulla Wadaskar prafu...@marvell.com Cc: Wolfgang Denk w...@denx.de Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger

Re: [U-Boot] [PATCH v4] Add 'patman' patch generation, checking and submission script

2012-04-04 Thread Gerlando Falauto
Hi Simon, OK I haven't tried it yet, but this sounds awesome. I wonder how people manage to send and rework their patches without such tool. Even one single patchset has been giving me strong enough headaches so far, not to mention the massive waste of time. I pretty much agree with Albert,

Re: [U-Boot] [PATCH v4] Add 'patman' patch generation, checking and submission script

2012-04-04 Thread Gerlando Falauto
On 04/04/2012 06:16 PM, Simon Glass wrote: Hi Gerlando, On Wed, Apr 4, 2012 at 3:35 AM, Gerlando Falauto gerlando.fala...@keymile.com wrote: Hi Simon, OK I haven't tried it yet, but this sounds awesome. I wonder how people manage to send and rework their patches without such tool. Even one

[U-Boot] [PATCH] cmd_sf: add size checking to spi flash commands

2012-04-03 Thread Gerlando Falauto
not to overflow past the flash size. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck holger.bru...@keymile.com --- common/cmd_sf.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 0/2] SPI flash update command

2012-04-03 Thread Gerlando Falauto
deserve to be special, in my opinion. Plus, it makes the command for updating u-boot as easy as sf update ${load_addr_r} 0 ${filesize} Feedback and criticism more than welcome, of course. Thank you, Gerlando Gerlando Falauto (2): cmd_sf: let sf update erase last sector as a whole cmd_sf

[U-Boot] [PATCH 1/2] cmd_sf: let sf update erase last sector as a whole

2012-04-03 Thread Gerlando Falauto
make sf update work with unaligned `len' parameter, by deleting the whole last sector before writing, so to allow for: sf update ${load_addr_r} 0 ${filesize} Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com Cc: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck

[U-Boot] [PATCH 2/2] cmd_sf: sf update preserve the final part of the last sector

2012-04-03 Thread Gerlando Falauto
Since sf update erases the last block as a whole, but only rewrites the meaningful initial part of it, the rest would be left erased, potentially erasing meaningful information. So, as a safety measure, have it rewrite the original content. Signed-off-by: Gerlando Falauto gerlando.fala

[U-Boot] [PATCH v3 6/6] env: delete selected vars not present in imported env

2012-04-02 Thread Gerlando Falauto
When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- lib/hashtable.c | 48

[U-Boot] [PATCH v3 3/6] env: add check/apply logic to himport_r()

2012-04-02 Thread Gerlando Falauto
; when NULL, no check is performed. And a new argument to himport_r(): o do_apply: whether to call the apply callback function NOTE: This patch does not change the current behavior. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |3 ++- common

[U-Boot] [PATCH v3 4/6] env: check and apply changes on delete/destroy

2012-04-02 Thread Gerlando Falauto
Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c |2 +- include/search.h|5 +++-- lib/hashtable.c | 16 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index fc6165f

[U-Boot] [PATCH v3 1/6] env: unify logic to check and apply changes

2012-04-02 Thread Gerlando Falauto
, no matter if by set, default or import. With this patch env_check_apply() is only called by env set, retaining previous behavior. Signed-off-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c | 170 --- include/search.h|3

[U-Boot] [PATCH v3 5/6] env: make env default selective, check and apply

2012-04-02 Thread Gerlando Falauto
-by: Gerlando Falauto gerlando.fala...@keymile.com --- common/cmd_nvedit.c | 40 ++-- common/env_common.c | 28 +++- include/environment.h |3 +++ 3 files changed, 64 insertions(+), 7 deletions(-) diff --git a/common

[U-Boot] [PATCH v3 0/6] env: handle special variables and selective env default

2012-04-02 Thread Gerlando Falauto
, bootfile} to values instead of variable names) - changed env_check_apply so not to display warnings in case of H_FORCE flag being set Changes from v0 - checkpatch cleanup - removed himport_ex() - removed warning for serial_assign() - env import NOT implemented here Gerlando Falauto (6): env: unify

Re: [U-Boot] [PATCH v3 1/6] env: unify logic to check and apply changes

2012-04-02 Thread Gerlando Falauto
On 04/02/2012 08:56 PM, Marek Vasut wrote: Dear Gerlando Falauto, The logic of checking special parameters (e.g. baudrate, stdin, stdout, for a valid value and/or whether can be overwritten) and applying the new value to the running system is now all within a single function env_check_apply

Re: [U-Boot] [PATCH v3 3/6] env: add check/apply logic to himport_r()

2012-04-02 Thread Gerlando Falauto
On 04/02/2012 09:01 PM, Marek Vasut wrote: Dear Marek Vasut, Dear Gerlando Falauto, Change hashtable so that a callback function will decide whether a variable can be overwritten, and possibly apply the changes. So add a new field to struct hsearch_data: o apply callback function to check

Re: [U-Boot] [PATCH v3 6/6] env: delete selected vars not present in imported env

2012-04-02 Thread Gerlando Falauto
On 04/02/2012 09:06 PM, Marek Vasut wrote: Dear Gerlando Falauto, When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando

Re: [U-Boot] [PATCH v2 1/3] env: unify logic to check and apply changes

2012-03-30 Thread Gerlando Falauto
On 03/29/2012 10:19 PM, Marek Vasut wrote: Dear Gerlando Falauto, WD prodded me too long to review this patchset ;-D Well, better late than never! ;-) [...] +#if defined(CONFIG_CMD_NET) + else if (strcmp(name, bootfile) == 0) { + copy_filename(BootFile, newval, sizeof

Re: [U-Boot] [PATCH v2 3/3] env: make env default selective, check and apply

2012-03-30 Thread Gerlando Falauto
On 03/29/2012 10:25 PM, Marek Vasut wrote: Dear Gerlando Falauto, Changes in the syntax (user API) for env default: -f: override write-once variables -a: all (resetting the whole env is NOT the default behavior) Signed-off-by: Gerlando Falautogerlando.fala...@keymile.com I have

Re: [U-Boot] [PATCH v2 1/3] env: unify logic to check and apply changes

2012-03-30 Thread Gerlando Falauto
On 03/30/2012 03:08 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 03/29/2012 10:19 PM, Marek Vasut wrote: Dear Gerlando Falauto, WD prodded me too long to review this patchset ;-D Well, better late than never! ;-) [...] +#if defined(CONFIG_CMD_NET) + else if (strcmp(name

Re: [U-Boot] [PATCH v2 3/3] env: make env default selective, check and apply

2012-03-30 Thread Gerlando Falauto
On 03/30/2012 03:09 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 03/29/2012 10:25 PM, Marek Vasut wrote: Dear Gerlando Falauto, Changes in the syntax (user API) for env default: -f: override write-once variables -a: all (resetting the whole env is NOT the default behavior

Re: [U-Boot] [PATCH v2 1/3] env: unify logic to check and apply changes

2012-03-30 Thread Gerlando Falauto
On 03/30/2012 03:55 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 03/30/2012 03:08 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 03/29/2012 10:19 PM, Marek Vasut wrote: [...] + return 0; + } +#endif + return 0; +} + [...] --- a/include/search.h +++ b

Re: [U-Boot] [PATCH v2 1/3] env: unify logic to check and apply changes

2012-03-30 Thread Gerlando Falauto
On 03/30/2012 03:00 PM, Gerlando Falauto wrote: On 03/29/2012 10:19 PM, Marek Vasut wrote: [...] +#if defined(CONFIG_CMD_NET) + else if (strcmp(name, bootfile) == 0) { + copy_filename(BootFile, newval, sizeof(BootFile)); Can you remove the camel-case here please? That's code I just moved

  1   2   >