Re: [U-Boot] [T1040] Boot location and NOR flash memory mapping

2016-03-24 Thread Valentin Longchamp
York, Thanks a lot for your answer and precisions. On 23/03/16 16:56, york sun wrote: > Valentin, > > Your understand is correct. Please see my answers below to your questions. > > On 03/23/2016 12:46 AM, Valentin Longchamp wrote: >> Hello, >> >> We are

[U-Boot] [T1040] Boot location and NOR flash memory mapping

2016-03-23 Thread Valentin Longchamp
Hello, We are currently designing a board based on the T1040 CPU from Freescale/NXP. I am preparing its u-boot support and bring-up tools (JTAG) as well as contributing to the hardware design. We base our work (both HW and SW) on the 1040RDB dev board as our reference design. We want to use a

[U-Boot] [PATCH v1] kirkwood_spi: move all pin multiplexing to spi_claim

2015-11-25 Thread Valentin Longchamp
Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- drivers/spi/kirkwood_spi.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c index e7b0982..a95ce78 100644 -

Re: [U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-24 Thread Valentin Longchamp
On 25/11/2015 04:52, Stefan Roese wrote: > Hi Valentine, > > On 24.11.2015 17:02, Valentin Longchamp wrote: > > > >>>>> Does your board use driver model from SPI and SPI flash? If not I >>>>> think that should be the first step. >>>&g

Re: [U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-24 Thread Valentin Longchamp
On 24/11/2015 02:49, Simon Glass wrote: > Hi Valentine, > > On 23 November 2015 at 02:19, Valentin Longchamp > <valentin.longch...@keymile.com> wrote: >> Hi Simon, >> >> On 20/11/2015 18:19, Simon Glass wrote: >>> Hi, >>> >>> On 20

Re: [U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-23 Thread Valentin Longchamp
Hi Simon, On 20/11/2015 18:19, Simon Glass wrote: > Hi, > > On 20 November 2015 at 03:13, Valentin Longchamp > <valentin.longch...@keymile.com> wrote: >> On 19/11/2015 17:57, Jagan Teki wrote: >>> On 13 November 2015 at 18:55, Valentin Longchamp >>&

Re: [U-Boot] U-boot broken on e500v2 soc

2015-11-23 Thread Valentin Longchamp
Hi York, On 21/11/2015 07:33, York Sun wrote: > Valentin, > > Can you refresh my memory why you needed this > commitac337168ad81a18e768e5e3cfff8d229adeb2b25 (patch > http://patchwork.ozlabs.org/patch/455439)? > Today I bisect an issue back to this commit. In the patch description, there is a

Re: [U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-20 Thread Valentin Longchamp
On 19/11/2015 17:57, Jagan Teki wrote: > On 13 November 2015 at 18:55, Valentin Longchamp > <valentin.longch...@keymile.com> wrote: >> The release command is the pendant of the probe command. This command >> allows to call spi_flash_free from the command line. This may

Re: [U-Boot] [PATCH V2 06/12] board: keymile: Move common headers to board-common directory

2015-11-18 Thread Valentin Longchamp
header in $headers > do > echo "processing $header in $common" > hbase=`basename $header` > git mv $common/$hbase $common/include/board-common > sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" > $vendor/*/

[U-Boot] [PATCH v2 15/15] km/powerpc: fix ft_board_setup prototype for km82xx & km83xx

2015-11-17 Thread Valentin Longchamp
Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: - Removed support for kmvect1_p1a: not relevant anymore board/keymile/km82xx/km82xx.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/k

[U-Boot] [PATCH v2 11/15] board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader

2015-11-17 Thread Valentin Longchamp
switch enhancements. Signed-off-by: Bagavathiannan Palanisamy <bagavathiannan.palanis...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None board/keymile/km82xx/km82xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v2 09/15] powerpc/km8309: define CONFIG_SYS_DDRCDR

2015-11-17 Thread Valentin Longchamp
For consistency with all the other km83xx plaforms, this should also be defined for km8309. The same settings as for km8321 are taken. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None include/configs/km/km8309-common.h | 6 ++ 1 file chan

[U-Boot] [PATCH v2 14/15] powerpc/83xx: add support for kmtegr1 board

2015-11-17 Thread Valentin Longchamp
This board uses the same CPU (8309) as VECT1. The memory however is different since it has NAND Flash, the NOR Flash partitioning is different and of course the FPGAs as well. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> Signed-off-by: Christoph Dietrich <christ

[U-Boot] [PATCH v2 04/15] km/powerpc: increase space for kernel imange and FDT blob

2015-11-17 Thread Valentin Longchamp
; Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None include/configs/km/km-powerpc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/km/km-powerpc.h b/include/configs/km/km-powerpc.h index eb85a74..8121e5c 100644 ---

[U-Boot] [PATCH v2 13/15] km8309: change the default QE_FW address

2015-11-17 Thread Valentin Longchamp
ll support kmvect1. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None include/configs/km/km8309-common.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/km/km8309-common.h b/include/configs/km/km8309-common

[U-Boot] [PATCH v2 10/15] powerpc/km8360: fix the ODT parameters for CS0

2015-11-17 Thread Valentin Longchamp
. This is now changed to ODT_WR_ONLY_CURRENT which is the equivalent of ODT_WR_ACS. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: - Rewritten commit message to get rid of internal git commit reference include/configs/km8360.h | 4 ++-- 1 file changed, 2 inse

[U-Boot] [PATCH v2 06/15] km/powerpc: remove unneeded defines

2015-11-17 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> We use CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP on all our powerpc targets, so there is no need to check these defines within our C code. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <

[U-Boot] [PATCH v2 01/15] powerpc/83xx: add support for kmtepr2 board

2015-11-17 Thread Valentin Longchamp
From: Christoph Dietrich <christoph.dietr...@keymile.com> This board is similar to TUXX1, but it has differend FPGAs. Signed-off-by: Christoph Dietrich <christoph.dietr...@keymile.com> Signed-off-by: Andreas Huber <andreas.hu...@keymile.com> Signed-off-by: Valentin Longcham

[U-Boot] [PATCH v2 07/15] km/powerpc82xx: remove unused function

2015-11-17 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> commit 0a4f88b98 removed the usage of our setports function, but the function itself were not removed. So toss it it's dead code. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <

[U-Boot] [PATCH v2 05/15] km/powerpc: move open firmware defines to km-powerpc.h

2015-11-17 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> We use the same settings for open firmware defines on all our powerpc targets, so move them from the CPU specific headers to the common powerpc header. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valent

[U-Boot] [PATCH v2 08/15] powerpc/km8321: define CONFIG_SYS_DDRCDR

2015-11-17 Thread Valentin Longchamp
t as a few measurements done in the lasts have shown. Since all the hardware qualification tests have been performed with half strength, the nominal strength settings are removed in favor of the default reset half strength settings. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com&g

[U-Boot] [PATCH v2 02/15] powerpc/82xx: make set/get_pin for km82xx more flexible

2015-11-17 Thread Valentin Longchamp
Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None board/keymile/km82xx/km82xx.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/board/keymile/km82xx/km82xx.c b/bo

[U-Boot] [PATCH v2 03/15] powerpc/82xx/km: add testpin detection for mgcoge3ne

2015-11-17 Thread Valentin Longchamp
m> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes in v2: None board/keymile/common/common.c | 5 - board/keymile/common/common.h | 2 ++ board/keymile/km82xx/km82xx.c | 9 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/bo

[U-Boot] [PATCH v2 12/15] km83xx: use CONFIG_ENV_ADDR for the newenv env command

2015-11-17 Thread Valentin Longchamp
The hardcoded value are bad, since the address could change between different boards. Furthermore, the relevant #defines are set only if #undefined here, so that they can be changed by some boards if required. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- Changes

[U-Boot] [PATCH v2 00/15] km/powerpc: various bugfixes and support for 3 new boards

2015-11-17 Thread Valentin Longchamp
for mgcoge3ne km/powerpc: increase space for kernel imange and FDT blob km/powerpc: move open firmware defines to km-powerpc.h km/powerpc: remove unneeded defines km/powerpc82xx: remove unused function Valentin Longchamp (7): powerpc/km8321: define CONFIG_SYS_DDRCDR powerpc/km8309

Re: [U-Boot] [PATCH 10/17] powerpc/km8321: set the DDRCDR impedance settings back to half strength

2015-11-16 Thread Valentin Longchamp
On 16/11/2015 14:34, Tom Rini wrote: > On Mon, Nov 16, 2015 at 01:26:53PM +0100, Holger Brunck wrote: >> Hi Valentin, >> >> On 13/11/15 15:59, Valentin Longchamp wrote: >>> The impedance settings have been changed with commit >>> 2ea8ae99595ca11dd228726e

[U-Boot] [PATCH 09/17] powerpc/km8321: define CONFIG_SYS_DDRCDR

2015-11-13 Thread Valentin Longchamp
by mpc83xx's cpu_init_f function at early CPU initialization. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/km8321-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/km/km8321-common.h b/include/configs/km/km8321-co

[U-Boot] [PATCH 05/17] km/powerpc: increase space for kernel imange and FDT blob

2015-11-13 Thread Valentin Longchamp
; Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/km-powerpc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/km/km-powerpc.h b/include/configs/km/km-powerpc.h index eb85a74..8121e5c 100644 --- a/include/configs/km/

[U-Boot] [PATCH 2/4] km: update the boot script to check for a DTB

2015-11-13 Thread Valentin Longchamp
for the km_kirkwood boards that must support .esw where the DTB sometimes is appended (for backwards compatibility) and sometimes is passed correctly (as we do now for all newer boards). Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/keymile-common

[U-Boot] [PATCH 4/4] km/scripts: search for kernel/DTBs at serverip:/PRODUCTNAME via TFTP in develop mode

2015-11-13 Thread Valentin Longchamp
From: Tobias Müller <tobias.muel...@keymile.com> Search for the kernel and DTBs in a folder named PRODUCTNAME (found in the IVM) at the TFTP server instead of the u-boot boardname. Signed-off-by: Tobias Müller <tobias.muel...@keymile.com> Signed-off-by: Valentin Longchamp <

[U-Boot] [PATCH 3/4] km/scripts: load fdt_bid_kwkey.dtb when working with tftp

2015-11-13 Thread Valentin Longchamp
b file is not a fallback to boardname.dtb is used. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Tobias Müller <tobias.muel...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/scripts/develop-common.txt |

[U-Boot] [PATCH 1/4] km/common: stop u-boot only if someone press

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> To prevent u-boot to stop accidently e.g. due to line noise on the serial line, we now use the option CONFIG_AUTOBOOT_KEYED. We choose the key for this. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valent

[U-Boot] [PATCH 04/17] powerpc/82xx/km: add testpin detection for mgcoge3ne

2015-11-13 Thread Valentin Longchamp
m> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/common/common.c | 5 - board/keymile/common/common.h | 2 ++ board/keymile/km82xx/km82xx.c | 9 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/board/keymile/common/common

[U-Boot] [PATCH 0/4] Keymile common changes

2015-11-13 Thread Valentin Longchamp
if someone press km/scripts: load fdt_bid_kwkey.dtb when working with tftp Tobias Müller (1): km/scripts: search for kernel/DTBs at serverip:/PRODUCTNAME via TFTP in develop mode Valentin Longchamp (1): km: update the boot script to check for a DTB board/keymile/scripts/develop-common.txt

[U-Boot] [PATCH 08/17] km/powerpc82xx: remove unused function

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> commit 0a4f88b98 removed the usage of our setports function, but the function itself were not removed. So toss it it's dead code. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <

[U-Boot] [PATCH 03/17] powerpc/82xx: make set/get_pin for km82xx more flexible

2015-11-13 Thread Valentin Longchamp
Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km82xx/km82xx.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82

[U-Boot] [PATCH 10/17] powerpc/km8321: set the DDRCDR impedance settings back to half strength

2015-11-13 Thread Valentin Longchamp
e hardware qualification tests have been performed with half strength, the nominal strength settings are removed in favor of the default reset half strength settings. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/km8321-common.h | 4 ++-- 1 file chang

[U-Boot] [PATCH 11/17] powerpc/km8309: define CONFIG_SYS_DDRCDR

2015-11-13 Thread Valentin Longchamp
For consistency with all the other km83xx plaforms, this should also be defined for km8309. The same settings as for km8321 are taken. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/km8309-common.h | 6 ++ 1 file changed, 6 insertions(+)

[U-Boot] [PATCH 07/17] km/powerpc: remove unneeded defines

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> We use CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP on all our powerpc targets, so there is no need to check these defines within our C code. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <

[U-Boot] [PATCH 12/17] powerpc/km8360: fix the ODT parameters for CS0

2015-11-13 Thread Valentin Longchamp
to ODT_RD_ONLY_CURRENT, which is uncorrect and causes faulty RAM accesses at low temperatures. This is now changed to ODT_WR_ONLY_CURRENT which is the equivalent of ODT_WR_ACS. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km8360.h | 4 ++-- 1 file changed, 2 inse

[U-Boot] [PATCH 15/17] km8309: change the default QE_FW address

2015-11-13 Thread Valentin Longchamp
ll support kmvect1. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/configs/km/km8309-common.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/km/km8309-common.h b/include/configs/km/km8309-common.h index d7f6cb1

[U-Boot] [PATCH 06/17] km/powerpc: move open firmware defines to km-powerpc.h

2015-11-13 Thread Valentin Longchamp
From: Holger Brunck <holger.bru...@keymile.com> We use the same settings for open firmware defines on all our powerpc targets, so move them from the CPU specific headers to the common powerpc header. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valent

[U-Boot] [PATCH 02/17] powerpc/83xx: add support for kmtepr2 board

2015-11-13 Thread Valentin Longchamp
From: Christoph Dietrich <christoph.dietr...@keymile.com> This board is similar to TUXX1, but it has differend FPGAs. Signed-off-by: Christoph Dietrich <christoph.dietr...@keymile.com> Signed-off-by: Andreas Huber <andreas.hu...@keymile.com> Signed-off-by: Valentin Longcham

[U-Boot] [PATCH 16/17] powerpc/83xx: add support for kmtegr1 board

2015-11-13 Thread Valentin Longchamp
This board uses the same CPU (8309) as VECT1. The memory however is different since it has NAND Flash, the NOR Flash partitioning is different and of course the FPGAs as well. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> Signed-off-by: Christoph Dietrich <christ

[U-Boot] [PATCH 13/17] board/keymile/km82xx: setting dip_switch 3 and 4 will run bootloader

2015-11-13 Thread Valentin Longchamp
switch enhancements. Signed-off-by: Bagavathiannan Palanisamy <bagavathiannan.palanis...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km82xx/km82xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/keymile

[U-Boot] [PATCH 14/17] km83xx: use CONFIG_ENV_ADDR for the newenv env command

2015-11-13 Thread Valentin Longchamp
The hardcoded value are bad, since the address could change between different boards. Furthermore, the relevant #defines are set only if #undefined here, so that they can be changed by some boards if required. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- i

[U-Boot] [PATCH 17/17] km/powerpc: fix ft_board_setup prototype for km82xx & km83xx

2015-11-13 Thread Valentin Longchamp
Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km82xx/km82xx.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index 9e285ec..c

[U-Boot] [PATCH 00/17] km/powerpc: various bugfixes and support for 3 new boards

2015-11-13 Thread Valentin Longchamp
/powerpc: remove unneeded defines km/powerpc82xx: remove unused function Valentin Longchamp (8): powerpc/km8321: define CONFIG_SYS_DDRCDR powerpc/km8321: set the DDRCDR impedance settings back to half strength powerpc/km8309: define CONFIG_SYS_DDRCDR powerpc/km8360: fix the ODT

[U-Boot] [PATCH 01/17] powerpc/83xx/km: add support for kmvect1 p1a hw version

2015-11-13 Thread Valentin Longchamp
leases. To be able to deal with these old versions we add temporary a further target kmvect1_p1a. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km83xx/MAINTAINERS | 1 + board/keymile/km83

[U-Boot] [PATCH 0/4] km_kirkwood: various bugfixes

2015-11-13 Thread Valentin Longchamp
, so it is here sent again. [1] http://patchwork.ozlabs.org/patch/399411/ Holger Brunck (1): arm/mgcoge3un: check dip_switch at startup Tobias Müller (1): arm/km: Fix LED configuration for 88E1118R PHY (PIGGY3) Valentin Longchamp (2): arm/km_kirkwood: remove KM_ENV_BUS and use

[U-Boot] [PATCH 4/4] arm/km_kirkwood: fix the #ifdef for KM_COGE5UN dip switch

2015-11-13 Thread Valentin Longchamp
There was a small typo for KM_COGE5UN that resulted in the dip switch not to behave as expected. Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km_arm/km_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/keymile/km_arm/km

[U-Boot] [PATCH 1/4] arm/km_kirkwood: remove KM_ENV_BUS and use CONFIG_I2C_ENV_EEPROM_BUS

2015-11-13 Thread Valentin Longchamp
KM_ENV_BUS was used for nothing else than an direct assignment to CONFIG_I2C_ENV_EEPROM_BUS. To avoid this, directly use CONFIG_I2C_ENV_EEPROM_BUS instead. Patchwork: http://patchwork.ozlabs.org/patch/399411/ Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- include/c

[U-Boot] [PATCH 3/4] arm/mgcoge3un: check dip_switch at startup

2015-11-13 Thread Valentin Longchamp
c_init to decide wether we wait for the ne to start or not. If the dip_switch is set we don't wait and continue immediately. Signed-off-by: Holger Brunck <holger.bru...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.com> --- board/keymile/km_arm/km_arm.c | 11 +

[U-Boot] [PATCH 2/4] arm/km: Fix LED configuration for 88E1118R PHY (PIGGY3)

2015-11-13 Thread Valentin Longchamp
From: Tobias Müller <tobias.muel...@keymile.com> Configure PHY LED register for Marvell 88E1118R PHY used on PIGGY3 to match with printed descriptions on PCB Signed-off-by: Tobias Müller <tobias.muel...@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longch...@keymile.c

[U-Boot] [PATCH v3 2/3] env_sf: generalize call to spi_flash_free after accesses

2015-11-13 Thread Valentin Longchamp
the same behavior as env_relocate_spec. Since the static env_flash variable will be NULL after every function call, it is thus removed and its functionality is replaced by a systematic call to spi_flash_probe at the start of both env_relocate_spec and saveenv. Signed-off-by: Valentin Longchamp

[U-Boot] [PATCH v3 3/3] km_arm: call 'sf release' in the newenv and update scripts

2015-11-13 Thread Valentin Longchamp
This is necessary to make sure that all the pins used for SPI access, especially the CS, are configured back to the NAND Flash interface. Otherwise, if either newenv or update are called, u-boot cannot access the NAND Flash anymore. Signed-off-by: Valentin Longchamp <valentin.lon

[U-Boot] [PATCH v3 0/3] Serial Flash: call spi_flash_free more coherently

2015-11-13 Thread Valentin Longchamp
ers.u-boot/169723 Changes in v3: - Rebased on v2015.10 - Rebased on v2015.10 Changes in v2: - Rebased on v2014.10 Valentin Longchamp (3): cmd_sf: add 'release' command env_sf: generalize call to spi_flash_free after accesses km_arm: call 'sf release' in the newenv and update scripts commo

[U-Boot] [PATCH v3 1/3] cmd_sf: add 'release' command

2015-11-13 Thread Valentin Longchamp
The release command is the pendant of the probe command. This command allows to call spi_flash_free from the command line. This may be necessary for some boards where sf probe does change the state of the hardware (like with some pin multiplexing changes for instance). Signed-off-by: Valentin

[U-Boot] [RFC] powerpc: add 2 common dcache assembly functions

2015-03-27 Thread Valentin Longchamp
by this patch: http://patchwork.ozlabs.org/patch/448849/ Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- arch/powerpc/cpu/mpc512x/Makefile | 3 --- arch/powerpc/cpu/mpc512x/cache.c | 17 -- arch/powerpc/cpu/mpc5xxx/Makefile | 1 - arch/powerpc/cpu/mpc5xxx/cache.c

[U-Boot] [PATCH v3 6/6] KM/IVM: remove ivm_read_eeprom(void)

2015-02-10 Thread Valentin Longchamp
This is not used anymore since the procedure was split into a simple read function and a later alaysis. The ivm_read_eeprom name is now used for the previous ivm_simple_read_eeprom function. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2

[U-Boot] [PATCH v3 2/6] kirkwood/km_arm: read the IVM eeprom earlier

2015-02-10 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v3 3/6] 85xx/kmp204x: read the IVM eeprom earlier

2015-02-10 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v3 4/6] 83xx/km83xx: read the IVM eeprom earlier

2015-02-10 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v3 0/6] keymile: enhance IVM reading

2015-02-10 Thread Valentin Longchamp
Valentin Longchamp (6): KM/IVM: split the IVM reading and parsing in 2 parts kirkwood/km_arm: read the IVM eeprom earlier 85xx/kmp204x: read the IVM eeprom earlier 83xx/km83xx: read the IVM eeprom earlier 82xx/km82xx: read the IVM eeprom earlier KM/IVM: remove ivm_read_eeprom(void) board

[U-Boot] [PATCH v3 5/6] 82xx/km82xx: read the IVM eeprom earlier

2015-02-10 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v3 1/6] KM/IVM: split the IVM reading and parsing in 2 parts

2015-02-10 Thread Valentin Longchamp
the HW read to happen twice, the buffer passed to ivm_read_eeprom() has to be reused by ivm_analyze_eeprom (and thus allocated before calling ivm_read_eeprom()). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: - Fix typo that prevented patch 1/6 from compiling

[U-Boot] [PATCH v2 1/6] KM/IVM: split the IVM reading and parsing in 2 parts

2015-02-02 Thread Valentin Longchamp
the HW read to happen twice, the buffer passed to ivm_read_eeprom() has to be reused by ivm_analyze_eeprom (and thus allocated before calling ivm_read_eeprom()). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: - Include the first patch, which was forgotten

[U-Boot] [PATCH v2 2/6] kirkwood/km_arm: read the IVM eeprom earlier

2015-02-02 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v2 3/6] 85xx/kmp204x: read the IVM eeprom earlier

2015-02-02 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v2 5/6] 82xx/km82xx: read the IVM eeprom earlier

2015-02-02 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v2 4/6] 83xx/km83xx: read the IVM eeprom earlier

2015-02-02 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes

[U-Boot] [PATCH v2 6/6] KM/IVM: remove ivm_read_eeprom(void)

2015-02-02 Thread Valentin Longchamp
This is not used anymore since the procedure was split into a simple read function and a later alaysis. The ivm_read_eeprom name is now used for the previous ivm_simple_read_eeprom function. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None board

Re: [U-Boot] [PATCH 5/5] KM/IVM: remove ivm_read_eeprom(void)

2015-02-02 Thread Valentin Longchamp
Hello Tom and Holger, On 01/06/2015 09:19 AM, Brunck, Holger wrote: On 01/05/2015 07:47 PM, Tom Rini wrote: On Tue, Dec 23, 2014 at 02:08:57PM +0100, Valentin Longchamp wrote: This is not used anymore since the procedure was split into a simple read function and a later alaysis

[U-Boot] [PATCH v2 0/6] keymile: enhance IVM reading

2015-02-02 Thread Valentin Longchamp
and MAC addresses can be read prior to ethernet initialization. The analysis of the rest of the IVM content still happens at a later second stage. Changes in v2: - Include the first patch, which was forgotten in the first submission Valentin Longchamp (6): KM/IVM: split the IVM reading and parsing

Re: [U-Boot] [PATCH v2 0/3] Serial Flash: call spi_flash_free more coherently

2014-12-23 Thread Valentin Longchamp
On 12/18/2014 03:03 PM, Jagan Teki wrote: On 3 November 2014 at 19:31, Valentin Longchamp valentin.longch...@keymile.com wrote: Some board require spi_flash_free to be called after all the accesses, in order, for instance, to restore the pin multiplexing configuration in the case where

[U-Boot] [PATCH 0/5] keymile: enhance IVM reading

2014-12-23 Thread Valentin Longchamp
and MAC addresses can be read prior to ethernet initialization. The analysis of the rest of the IVM content still happens at a later second stage. Valentin Longchamp (5): kirkwood/km_arm: read the IVM eeprom earlier 85xx/kmp204x: read the IVM eeprom earlier 83xx/km83xx: read the IVM eeprom

[U-Boot] [PATCH 2/5] 85xx/kmp204x: read the IVM eeprom earlier

2014-12-23 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board

[U-Boot] [PATCH 3/5] 83xx/km83xx: read the IVM eeprom earlier

2014-12-23 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board

[U-Boot] [PATCH 1/5] kirkwood/km_arm: read the IVM eeprom earlier

2014-12-23 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board

[U-Boot] [PATCH 5/5] KM/IVM: remove ivm_read_eeprom(void)

2014-12-23 Thread Valentin Longchamp
This is not used anymore since the procedure was split into a simple read function and a later alaysis. The ivm_read_eeprom name is now used for the previous ivm_simple_read_eeprom function. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/common/common.h

[U-Boot] [PATCH 4/5] 82xx/km82xx: read the IVM eeprom earlier

2014-12-23 Thread Valentin Longchamp
This allows to define the ethaddr env variable according to the the IVM content by reading the IVM in misc_init_r. Later, when HUSH is available the content read earlier is analyzed to populate some non env variables. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board

Re: [U-Boot] [ANN] U-Boot v2015.01-rc1 released

2014-11-14 Thread Valentin Longchamp
Hi Tom, On 11/10/2014 10:29 PM, Tom Rini wrote: Hey all, I've pushed v2015.01-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. Per both the min-summit and the follow up emails, I'm going to try and get into the every 2 week RC tagging groove.

[U-Boot] [PATCH v2 2/3] cmd_sf: add 'release' command

2014-11-03 Thread Valentin Longchamp
The release command is the pendant of the probe command. This command allows to call spi_flash_free from the command line. This may be necessary for some boards where sf probe does change the state of the hardware (like with some pin multiplexing changes for instance). Signed-off-by: Valentin

[U-Boot] [PATCH v2 0/3] Serial Flash: call spi_flash_free more coherently

2014-11-03 Thread Valentin Longchamp
] but it was rejected without any feedback. So I send this rebased v2 so that it finally gets reviewed and merged. [1] http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/169723 Changes in v2: - Rebased on v2014.10 Valentin Longchamp (3): env_sf: generalize call to spi_flash_free after accesses cmd_sf

[U-Boot] [PATCH v2 1/3] env_sf: generalize call to spi_flash_free after accesses

2014-11-03 Thread Valentin Longchamp
the same behavior as env_relocate_spec. Since the static env_flash variable will be NULL after every function call, it is thus removed and its functionality is replaced by a systematic call to spi_flash_probe at the start of both env_relocate_spec and saveenv. Signed-off-by: Valentin Longchamp

[U-Boot] [PATCH v2 3/3] km_arm: call 'sf release' in the newenv and update scripts

2014-11-03 Thread Valentin Longchamp
This is necessary to make sure that all the pins used for SPI access, especially the CS, are configured back to the NAND Flash interface. Otherwise, if either newenv or update are called, u-boot cannot access the NAND Flash anymore. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com

Re: [U-Boot] Please increase the image size for km boards

2014-10-26 Thread Valentin Longchamp
On 10/23/2014 05:13 PM, York Sun wrote: On 10/23/2014 08:02 AM, Valentin Longchamp wrote: Hi York, On 10/01/2014 05:41 PM, York Sun wrote: On 10/01/2014 08:39 AM, Valentin Longchamp wrote: Hi York, On 09/30/2014 05:48 PM, York Sun wrote: Valentin, We are seeing the image size of kmcoge4

[U-Boot] [PATCH] mpc85xx/kmp204x: raise u-boot size to 768KB

2014-10-26 Thread Valentin Longchamp
as well to be on line with the other powerpc boards and to eventually configure in some additional features (and binary size) to u-boot. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/kmp204x-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [U-Boot] Please increase the image size for km boards

2014-10-23 Thread Valentin Longchamp
Hi York, On 10/01/2014 05:41 PM, York Sun wrote: On 10/01/2014 08:39 AM, Valentin Longchamp wrote: Hi York, On 09/30/2014 05:48 PM, York Sun wrote: Valentin, We are seeing the image size of kmcoge4 and kmlion1 are on the edge. Attempts to add new features cause overflow. Would you

[U-Boot] [PATCH] Revert common, env: Fix support for environment in i2c eeprom

2014-10-14 Thread Valentin Longchamp
i2c_init_all should disappear and is currently only called from the early board initialisation sequences, it is not suited for other usage. This reverts commit 01a0c64762e902971b34587a8a61b59e9ea51374. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- common/cmd_eeprom.c | 9

[U-Boot] [PATCH] km_kirkwood: remove KM_ENV_BUS and use CONFIG_I2C_ENV_EEPROM_BUS

2014-10-14 Thread Valentin Longchamp
KM_ENV_BUS was used for nothing else than an direct assignment to CONFIG_I2C_ENV_EEPROM_BUS. To avoid this, directly use CONFIG_I2C_ENV_EEPROM_BUS instead. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/km_arm.h | 2 +- include/configs/km_kirkwood.h

Re: [U-Boot] [PATCH] Revert common, env: Fix support for environment in i2c eeprom

2014-10-14 Thread Valentin Longchamp
. But perhaps there's a better way to fix that. I think that the proposal that Holger made to actually define CONFIG_I2C_ENV_EEPROM_BUS for your boards is what I would try first. Valentin Matthias On 10/14/2014 11:16 AM, Valentin Longchamp wrote: Since i2c_init_all always sets the bus back

Re: [U-Boot] [PATCH 0/3] Serial Flash: call spi_flash_free more coherently

2014-10-10 Thread Valentin Longchamp
Hello Jagannadha, On 01/21/2014 11:03 AM, Valentin Longchamp wrote: On 09/17/2013 08:46 AM, Valentin Longchamp wrote: Some board require spi_flash_free to be called after all the accesses, in order, for instance, to restore the pin multiplexing configuration in the case where the SPI pins

[U-Boot] [PATCH] common/board_r: remove warning in initr_mem for 64-bit phys_size_t

2014-10-03 Thread Valentin Longchamp
Since on powerpc phys_size_t can be unsigned long long, this printout line can result in a not nice compile warning. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- common/board_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_r.c b

[U-Boot] [PATCH 2/2] keymile/powerpc: move to the architecture-generic board system

2014-10-03 Thread Valentin Longchamp
This converts all the Keymile powerpc boards to the generic board initialization. This includes the 3 Keymile powerpc subsystems: km82xx, km83xx, and kmp204x. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/km83xx-common.h | 3 +++ include/configs/km

[U-Boot] [PATCH 1/2] powerpc/mpc83xx: Zero boot_flags arg for calling board_init_f()

2014-10-03 Thread Valentin Longchamp
() call to 0 prior to the function call to avoid unknown content to end up in gd-flags. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- arch/powerpc/cpu/mpc83xx/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu

[U-Boot] [PATCH] km_arm: convert the km_arm boards to the generic board support

2014-10-03 Thread Valentin Longchamp
This implies that all the km_kirkwood boards and their variants now are using the generic board init sequence. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/km_arm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/km/km_arm.h b

Re: [U-Boot] Please increase the image size for km boards

2014-10-01 Thread Valentin Longchamp
Hi York, On 09/30/2014 05:48 PM, York Sun wrote: Valentin, We are seeing the image size of kmcoge4 and kmlion1 are on the edge. Attempts to add new features cause overflow. Would you consider to increase the image size for km boards. You may have noticed several patches doing this for

Re: [U-Boot] [GENERIC_BOARD] env problems before relocation with ppc8360

2014-09-30 Thread Valentin Longchamp
Hi Simon, I'm very glad you answered this, I was busy with other stuff these last weeks but I had planed to pick this issue again this week. On 09/28/2014 06:27 AM, Simon Glass wrote: Hi, On 26 August 2014 09:17, Valentin Longchamp valentin.longch...@keymile.com wrote: Hello, Here

Re: [U-Boot] [GENERIC_BOARD] env problems before relocation with ppc8360

2014-08-26 Thread Valentin Longchamp
Hello, Here is the outcome of my debug session today: On 08/25/2014 05:42 PM, Valentin Longchamp wrote: Hello, I am currently porting all the Keymile boards to CONFIG_SYS_GENERIC_BOARD. On u-boot 2014.10-rc1 I have all of them working quite well (at least booting and showing no obvious

  1   2   3   4   5   >