[U-Boot] [RFC PATCH] mpc85xx: move generic corenet to cpu/mpc85xxx

2013-05-03 Thread Valentin Longchamp
be moved but this is a first patch to discuss trigger the discussion. It was tested on P2041rdb_SPIFLASH. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- arch/powerpc/cpu/mpc85xx/Makefile| 10 -- .../powerpc/cpu/mpc85xx}/p_corenet/Makefile | 0

Re: [U-Boot] [RFC PATCH] mpc85xx: move generic corenet to cpu/mpc85xxx

2013-05-06 Thread Valentin Longchamp
Hi Andy, On 05/04/2013 12:55 AM, Andy Fleming wrote: On Fri, May 3, 2013 at 9:02 AM, Valentin Longchamp valentin.longch...@keymile.com mailto:valentin.longch...@keymile.com wrote: This allows to use this code on non Freescale QorIQ boards. If I am right, there are currently only

Re: [U-Boot] [PATCH] kw_spi: fix clock prescaler computation

2012-08-14 Thread Valentin Longchamp
Hi Prafulla, I haven't received feedback about this patch from you. Can I please kindly remind you about it since I am about to send patches that deal with SPI clk setting. Thank you. On 06/29/2012 02:17 PM, Valentin Longchamp wrote: The computation was not correct with low clock values

[U-Boot] [PATCH] km/ivm: fix string len check to support 7 char board names

2012-08-14 Thread Valentin Longchamp
length. It is the same change that was done in the platform for this same bug. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Stefan Bigler stefan.big...@keymile.com --- board/keymile/common/ivm.c |2 +- 1 files changed, 1

[U-Boot] [PATCH] arm/km: fix frequency of the SPI NOR Flash

2012-08-14 Thread Valentin Longchamp
According to our last HW measures, this could be raised while still compatible with the potential delays on the lines. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com --- include/configs/km/km_arm.h |2 +- 1 files changed, 1

[U-Boot] [PATCH] km/arm: set SPI NOR Flash default parameters

2012-08-14 Thread Valentin Longchamp
-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com --- include/configs/km/km_arm.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h index 2d573e4..055d946 100644

Re: [U-Boot] [PATCH] km/arm: set SPI NOR Flash default parameters

2012-08-15 Thread Valentin Longchamp
Hi Prafulla, On 08/14/2012 03:17 PM, Prafulla Wadaskar wrote: -Original Message- From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] Sent: 14 August 2012 17:09 To: Prafulla Wadaskar Cc: u-boot@lists.denx.de; Valentin Longchamp; Holger Brunck Subject: [PATCH] km/arm

Re: [U-Boot] [PATCH] kw_spi: fix clock prescaler computation

2012-08-15 Thread Valentin Longchamp
Hi Prafulla, On 08/14/2012 03:15 PM, Prafulla Wadaskar wrote: -Original Message- From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] Sent: 14 August 2012 15:02 To: Prafulla Wadaskar Cc: u-boot@lists.denx.de; Holger Brunck Subject: Re: [PATCH] kw_spi: fix clock

[U-Boot] [PATCH v2] kw_spi: fix clock prescaler computation

2012-08-15 Thread Valentin Longchamp
). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- changes for v2: - table nb in commit message arch/arm/include/asm/arch-kirkwood/spi.h |1 + drivers/spi/kirkwood_spi.c

[U-Boot] [PATCH] net/phy: support the mv88e6352 switch

2012-08-16 Thread Valentin Longchamp
the 88e6352. This is proposed as a first implementation that is somewhat limited but works and that can be used as a basis for further developments for this switch family. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar

[U-Boot] [PATCH 0/2] arm/km: configuration of the mv88e6352 switch on kmnusa

2012-08-16 Thread Valentin Longchamp
This series adds supoort for the configuration of the mv88e6352 external switch on kmnusa. It has a clear dependancy to the minimal mv88e6352 net/phy driver: http://patchwork.ozlabs.org/patch/177953/ Valentin Longchamp (2): arm/km: add mv88e6352 configuration for kmnusa km_kirkwood: enable

[U-Boot] [PATCH 2/2] km_kirkwood: enable MV88E6352_SWITCH support for kmnusa

2012-08-16 Thread Valentin Longchamp
This is required to configure the external 88e6352 switch on nusa. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- include/configs/km_kirkwood.h |2 ++ 1 files changed, 2 insertions

[U-Boot] [PATCH 1/2] arm/km: add mv88e6352 configuration for kmnusa

2012-08-16 Thread Valentin Longchamp
The kmnusa board uses a mv88e6352 switch that is connected to the main eth interface of the kirkwood. Therefore the switch must be configured so that the kirkwood's egiga eth inferface can be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck holger.bru

Re: [U-Boot] [PATCH 1/2] arm/km: add mv88e6352 configuration for kmnusa

2012-08-17 Thread Valentin Longchamp
On 08/17/2012 09:59 AM, Prafulla Wadaskar wrote: -Original Message- From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] Sent: 16 August 2012 16:55 To: u-boot@lists.denx.de Cc: holger.bru...@keymile.com; Prafulla Wadaskar; valentin.longch...@keymile.com Subject

[U-Boot] [PATCH v2 1/2] arm/km: add mv88e6352 configuration for kmnusa

2012-08-17 Thread Valentin Longchamp
The kmnusa board uses a mv88e6352 switch that is connected to the main eth interface of the kirkwood. Therefore the switch must be configured so that the kirkwood's egiga eth inferface can be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Cc: Holger Brunck holger.bru

[U-Boot] [PATCH v1 7/8] mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into accout

2013-07-26 Thread Valentin Longchamp
NAND_ECC_SOFT was the only option available while the SOFT_BCH option may also be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- drivers/mtd/nand/fsl_elbc_nand.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/fsl_elbc_nand.c

[U-Boot] [PATCH v1 1/8] km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h

2013-07-26 Thread Valentin Longchamp
It can be set to a different value for kmp204x, because we are restricted to SRAM. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/keymile-common.h | 2 -- include/configs/km/km83xx-common.h | 2 ++ include/configs/km82xx.h| 1 + 3 files

[U-Boot] [PATCH v1 3/8] KM: fix typo in default environment

2013-07-26 Thread Valentin Longchamp
The ip kernel parameter had a typo in it (we've been lucky that it has worked until now). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/keymile-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/km/keymile

[U-Boot] [PATCH v1 2/8] km-powerpc: move CONFIG_FLASH_CFI_MTD to km83xx-common.h

2013-07-26 Thread Valentin Longchamp
This is because kmp204x.h does not have FLASH, so this must not be defined for all powerpc boards. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/km/km-powerpc.h| 1 - include/configs/km/km83xx-common.h | 2 ++ 2 files changed, 2 insertions(+), 1

[U-Boot] [PATCH v1 0/8] Support for the kmp204x reference design

2013-07-26 Thread Valentin Longchamp
by Freescale which was adapted to our design. Valentin Longchamp (8): km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h km-powerpc: move CONFIG_FLASH_CFI_MTD to km83xx-common.h KM: fix typo in default environment mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it fsl: do

[U-Boot] [PATCH v1 4/8] mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it

2013-07-26 Thread Valentin Longchamp
If the DDR3 module supports industrial temperature range and requires the x2 refresh rate for that temp range, the refresh period must be 3.9us instead of 7.8 us. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c | 2 ++ 1 file

[U-Boot] [PATCH v1 5/8] fsl: do not define FSL_SRIO_PCIE_BOOT_MASTER for all P2041 systems

2013-07-26 Thread Valentin Longchamp
If this #define stays in config_mpc85xx.h, the P2041 based boards must define a lot of SRIO values even if they do not implement a SRIO device. The #define is moved into the P2041RDB board config file where it is used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include

[U-Boot] [PATCH v1 6/8] net/fman: add a fm_enable_port function

2013-07-26 Thread Valentin Longchamp
This can be useful if we want to disable an interface in u-boot and later reenable them, so that it looks available when trying to fix the FDT or for the kernel. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- drivers/net/fm/init.c | 7 +++ include/fm_eth.h | 1 + 2

[U-Boot] [PATCH v1 8/8] mpc85xx: introduce the kmp204x reference design support

2013-07-26 Thread Valentin Longchamp
diff --git a/MAINTAINERS b/MAINTAINERS index 081cf96..fff77f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -778,6 +778,7 @@ Valentin Longchamp valentin.longch...@keymile.com mgcoge3un ARM926EJS (Kirkwood SoC) kmcoge5un ARM926EJS (Kirkwood SoC) portl2

Re: [U-Boot] [U-Boot, v1, 4/8] mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 10:24 PM, York Sun wrote: On 07/26/2013 03:02 AM, Valentin Longchamp wrote: If the DDR3 module supports industrial temperature range and requires the x2 refresh rate for that temp range, the refresh period must be 3.9us instead of 7.8 us. Signed-off-by: Valentin Longchamp

Re: [U-Boot] [U-Boot, v1, 5/8] fsl: do not define FSL_SRIO_PCIE_BOOT_MASTER for all P2041 systems

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 10:32 PM, York Sun wrote: On 07/26/2013 03:02 AM, Valentin Longchamp wrote: If this #define stays in config_mpc85xx.h, the P2041 based boards must define a lot of SRIO values even if they do not implement a SRIO device. The #define is moved into the P2041RDB board config file

Re: [U-Boot] [U-Boot, v1, 6/8] net/fman: add a fm_enable_port function

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 10:38 PM, York Sun wrote: On 07/26/2013 03:02 AM, Valentin Longchamp wrote: This can be useful if we want to disable an interface in u-boot and later reenable them, so that it looks available when trying to fix the FDT or for the kernel. Signed-off-by: Valentin Longchamp

Re: [U-Boot] [PATCH v1 7/8] mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into accout

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 10:54 PM, Scott Wood wrote: On Fri, 2013-07-26 at 12:02 +0200, Valentin Longchamp wrote: NAND_ECC_SOFT was the only option available while the SOFT_BCH option may also be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- drivers/mtd/nand

Re: [U-Boot] [PATCH v1 8/8] mpc85xx: introduce the kmp204x reference design support

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 11:38 PM, Scott Wood wrote: On Fri, 2013-07-26 at 12:02 +0200, Valentin Longchamp wrote: This patch introduces the support for Keymile's kmp204x reference design. This design is based on Freescale's P2040/P2041 SoC. The peripherals used by this design are: - DDR3 RAM with SPD

Re: [U-Boot] [U-Boot, v1, 8/8] mpc85xx: introduce the kmp204x reference design support

2013-08-19 Thread Valentin Longchamp
On 08/13/2013 11:44 PM, York Sun wrote: On 07/26/2013 03:02 AM, Valentin Longchamp wrote: + +phys_size_t initdram(int board_type) +{ +phys_size_t dram_size = 0; + +puts(Initializing); + +if (fsl_use_spd()) { +puts(using SPD\n); +dram_size

Re: [U-Boot] [PATCH v1 8/8] mpc85xx: introduce the kmp204x reference design support

2013-08-20 Thread Valentin Longchamp
On 08/20/2013 02:48 AM, Scott Wood wrote: On Mon, 2013-08-19 at 17:50 +0200, Valentin Longchamp wrote: On 08/13/2013 11:38 PM, Scott Wood wrote: On Fri, 2013-07-26 at 12:02 +0200, Valentin Longchamp wrote: This patch introduces the support for Keymile's kmp204x reference design. This design

Re: [U-Boot] [PATCH v1 8/8] mpc85xx: introduce the kmp204x reference design support

2013-08-21 Thread Valentin Longchamp
On 08/20/2013 08:18 PM, Scott Wood wrote: On Tue, 2013-08-20 at 08:28 +0200, Valentin Longchamp wrote: On 08/20/2013 02:48 AM, Scott Wood wrote: On Mon, 2013-08-19 at 17:50 +0200, Valentin Longchamp wrote: On 08/13/2013 11:38 PM, Scott Wood wrote: On Fri, 2013-07-26 at 12:02 +0200, Valentin

[U-Boot] [PATCH v2 09/11] fsl/mpc85xx: introduce fsl_print_rcw function

2013-08-28 Thread Valentin Longchamp
The RCW gets printed on a lot of FSL 85xx devices and it is always done the same way. The fsl_print_rcw function performs this exact same task. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None arch/powerpc/cpu/mpc85xx/Makefile | 1 + arch

[U-Boot] [PATCH v2 02/11] km-powerpc: move CONFIG_FLASH_CFI_MTD to km83xx-common.h

2013-08-28 Thread Valentin Longchamp
This is because kmp204x.h does not have FLASH, so this must not be defined for all powerpc boards. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None include/configs/km/km-powerpc.h| 1 - include/configs/km/km83xx-common.h | 2 ++ 2 files changed, 2

[U-Boot] [PATCH v2 01/11] km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h

2013-08-28 Thread Valentin Longchamp
It can be set to a different value for kmp204x, because we are restricted to SRAM. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None include/configs/km/keymile-common.h | 2 -- include/configs/km/km83xx-common.h | 2 ++ include/configs/km82xx.h

[U-Boot] [PATCH v2 07/11] net/fman: add a fm_enable_port function

2013-08-28 Thread Valentin Longchamp
This can be useful if we want to disable an interface in u-boot and later reenable them, so that it looks available when trying to fix the FDT or for the kernel. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None drivers/net/fm/init.c | 7 +++ include

[U-Boot] [PATCH v2 05/11] km: add CONFIG_KM_COMMON_ETH_INIT for km common eth init

2013-08-28 Thread Valentin Longchamp
and thus does not define it. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: - add CONFIG_KM_COMMON_ETH_INIT for the km board that need the common.c board_eth_init board/keymile/common/common.c | 2 ++ include/configs/km/km-powerpc.h | 3 +++ include

[U-Boot] [PATCH v2 10/11] fsl/mpc85xx: define common serdes_clock_to_string function

2013-08-28 Thread Valentin Longchamp
This allows to share some common code for the boards that use a corenet base SoC. Two different versions of the function are available in fsl_corenet_serdes.c and fsl_corenet2_serdes.c files. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None arch/powerpc

[U-Boot] [PATCH v2 0/11] Support for the kmp204x reference design

2013-08-28 Thread Valentin Longchamp
to include Freescale's copyrights - integrate Scott's feedback Valentin Longchamp (11): km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h km-powerpc: move CONFIG_FLASH_CFI_MTD to km83xx-common.h KM: fix typo in default environment KM: add CONFIG_KM_I2C_ABORT option km: add

[U-Boot] [PATCH v2 04/11] KM: add CONFIG_KM_I2C_ABORT option

2013-08-28 Thread Valentin Longchamp
this. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: - Introduce CONFIG_KM_I2C_ABORT #define to avoid #if !defined in common.c board/keymile/common/common.c | 6 +- include/configs/km/km_arm.h | 1 + include/configs/km82xx.h | 1 + 3 files changed, 3

[U-Boot] [PATCH v2 03/11] KM: fix typo in default environment

2013-08-28 Thread Valentin Longchamp
The ip kernel parameter had a typo in it (we've been lucky that it has worked until now). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: None include/configs/km/keymile-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH v2 11/11] mpc85xx: introduce the kmp204x reference design support

2013-08-28 Thread Valentin Longchamp
index 081cf96..fff77f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -778,6 +778,7 @@ Valentin Longchamp valentin.longch...@keymile.com mgcoge3un ARM926EJS (Kirkwood SoC) kmcoge5un ARM926EJS (Kirkwood SoC) portl2 ARM926EJS (Kirkwood SoC) + kmcoge4

[U-Boot] [PATCH v2 08/11] mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account

2013-08-28 Thread Valentin Longchamp
NAND_ECC_SOFT was the only option available while the SOFT_BCH option may also be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Acked-by: Scott Wood scottw...@freescale.com --- Changes in v2: None drivers/mtd/nand/fsl_elbc_nand.c | 6 +- 1 file changed, 5 insertions

[U-Boot] [PATCH v2 06/11] mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it

2013-08-28 Thread Valentin Longchamp
If the DDR3 module supports industrial temperature range and requires the x2 refresh rate for that temp range, the refresh period must be 3.9us instead of 7.8 us. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v2: - when refresh rate gets halved for extended

[U-Boot] [PATCH v3 07/11] mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it

2013-09-11 Thread Valentin Longchamp
with an SPD EEPROM). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2: - when refresh rate gets halved for extended range temperature operations, the srt bit in the mode register 2 is set. arch/powerpc/cpu/mpc8xxx/ddr/common_timing_params.h

[U-Boot] [PATCH v3 01/11] powerpc: cast bi_memsize to ulong for %ld usage

2013-09-11 Thread Valentin Longchamp
When exporting the new memsize without reserved PRAM area, the -Wformat option produces a warning since %ld is used for snprintf and bi_memsize is phys_size_t. This patch removes this warning for all PRAM PowerPC boards. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com

[U-Boot] [PATCH v3 08/11] net/fman: add a fm_enable_port function

2013-09-11 Thread Valentin Longchamp
This can be useful if one wants to disable an interface in u-boot because u-boot should not manage it but then later reenable it for FDT fixing or if the kernel uses this interface. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: - add a call

[U-Boot] [PATCH v3 0/11] Support for the kmp204x reference design

2013-09-11 Thread Valentin Longchamp
files to include Freescale's copyrights - integrate Scott's feedback Valentin Longchamp (11): powerpc: cast bi_memsize to ulong for %ld usage km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h KM: fix typo in default environment KM: define CONFIG_SYS_I2C_INIT_BOARD only for concerned

[U-Boot] [PATCH v3 06/11] mpc8xxx: call i2c_set_bus_num in __get_spd

2013-09-11 Thread Valentin Longchamp
This is necessary with the new I2C subystem that was introduced lately. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2: None arch/powerpc/cpu/mpc8xxx/ddr/main.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH v3 05/11] KM: add CONFIG_KM_COMMON_ETH_INIT for km common eth init

2013-09-11 Thread Valentin Longchamp
and thus does not define it. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2: - add CONFIG_KM_COMMON_ETH_INIT for the km board that need the common.c board_eth_init board/keymile/common/common.c | 2 ++ include/configs/km/km-powerpc.h | 3

[U-Boot] [PATCH v3 03/11] KM: fix typo in default environment

2013-09-11 Thread Valentin Longchamp
The ip kernel parameter had a typo in it (we've been lucky that it has worked until now). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2: None include/configs/km/keymile-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v3 09/11] mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account

2013-09-11 Thread Valentin Longchamp
NAND_ECC_SOFT was the only option available while the SOFT_BCH option may also be used. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Acked-by: Scott Wood scottw...@freescale.com --- Changes in v3: None Changes in v2: None drivers/mtd/nand/fsl_elbc_nand.c | 6 +- 1 file

[U-Boot] [PATCH v3 04/11] KM: define CONFIG_SYS_I2C_INIT_BOARD only for concerned board

2013-09-11 Thread Valentin Longchamp
-common.h and defines it for km_arm.h and km82xx.h. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: - take the new I2C defines into account and use CONFIG_SYS_I2C_INIT_BOARD instead of an additional option and define it only for the I2C bitbang KM boards

[U-Boot] [PATCH v3 11/11] mpc85xx: introduce the kmp204x reference design support

2013-09-11 Thread Valentin Longchamp
@@ -785,6 +785,7 @@ Valentin Longchamp valentin.longch...@keymile.com mgcoge3un ARM926EJS (Kirkwood SoC) kmcoge5un ARM926EJS (Kirkwood SoC) portl2 ARM926EJS (Kirkwood SoC) + kmcoge4 MPC85xx (P2041 SoC) Nishanth Menon n...@ti.com diff

[U-Boot] [PATCH v3 02/11] km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h

2013-09-11 Thread Valentin Longchamp
It must be set to a different value for the later add kmp204x architecture, because we are restricted to 1MB SRAM. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: - Add SYS_MALLOC_LEN to km_arm.h as well, as it was omitted before. Changes in v2: None

[U-Boot] [PATCH v3 10/11] fsl/mpc85xx: define common serdes_clock_to_string function

2013-09-11 Thread Valentin Longchamp
This allows to share some common code for the boards that use a corenet base SoC. Two different versions of the function are available in fsl_corenet_serdes.c and fsl_corenet2_serdes.c files. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- Changes in v3: None Changes in v2

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

2013-09-17 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

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

2013-09-17 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 0/3] Serial Flash: call spi_flash_free more coherently

2013-09-17 Thread Valentin Longchamp
interface is always cleaned up after the env read/writes. Patch 2 adds a 'sf release' command that implicitly calls spi_flash_free and is thus the pendant of 'sf probe'. Patch 3 uses the 'sf command' for the km_arm board scripts. Valentin Longchamp (3): env_sf: generalize call to spi_flash_free after

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

2013-09-17 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

Re: [U-Boot] [PATCH 12/20] arm/km: add support for external switchconfiguration

2012-06-21 Thread Valentin Longchamp
Hi Prafulla, On 06/12/2012 06:39 AM, Prafulla Wadaskar wrote: -Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot- boun...@lists.denx.de] On Behalf Of Valentin Longchamp Sent: 07 June 2012 15:37 To: prafu...@mavell.com Cc: Valentin Longchamp; holger.bru

[U-Boot] [PATCH v3 09/14] arm/km: add support for external switch configuration

2012-06-26 Thread Valentin Longchamp
, that's why we keep it in our keymile specific code, where the assumptions of the implementations remain true. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- changes for v2: - nothing changes for v3: - more complete commit message board/keymile/common/common.h |7

[U-Boot] [PATCH] kw_spi: fix clock prescaler computation

2012-06-29 Thread Valentin Longchamp
). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- arch/arm/include/asm/arch-kirkwood/spi.h |1 + drivers/spi/kirkwood_spi.c |5 +++-- 2 files changed, 4 insertions

Re: [U-Boot] [PATCH 12/20] arm/km: add support for external switchconfiguration

2012-07-03 Thread Valentin Longchamp
Hello Prafulla, On 07/03/2012 10:17 AM, Prafulla Wadaskar wrote: -Original Message- From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] Sent: 21 June 2012 18:40 To: Prafulla Wadaskar Cc: prafu...@mavell.com; holger.bru...@keymile.com; u- b...@lists.denx.de Subject: Re

Re: [U-Boot] [PATCH 12/20] arm/km: add support for external switchconfiguration

2012-07-09 Thread Valentin Longchamp
Hi Detlev, On 07/09/2012 04:31 PM, Detlev Zundel wrote: Hi Prafulla, [...] Hi Detlev Clear NAK for this patch Do you mean clear NAK for the patch or for the location of the files? Let's put it in drivers/net/phy/ FYI: there are several drivers used by just one board,

[U-Boot] [PATCH 0/2] powerpc/p2041: u-boot.pbl build for P2041RDB

2013-01-04 Thread Valentin Longchamp
This series enables the build of a u-boot.pbl for the P2041RDB dev board. Valentin Longchamp (2): powerpc/p2041: add RCW file for P2041RDB powerpc/p2041: set RCW and PBI files for .pbl build or P2041RDB board/freescale/corenet_ds/rcw_p2041rdb.cfg | 11 +++ include/configs

[U-Boot] [PATCH 1/2] powerpc/p2041: add RCW file for P2041RDB

2013-01-04 Thread Valentin Longchamp
). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/freescale/corenet_ds/rcw_p2041rdb.cfg | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 board/freescale/corenet_ds/rcw_p2041rdb.cfg diff --git a/board/freescale/corenet_ds

[U-Boot] [PATCH 2/2] powerpc/p2041: set RCW and PBI files for .pbl build or P2041RDB

2013-01-04 Thread Valentin Longchamp
In order to be able to build a u-boot.pbl image, both the CONFIG_PBLPBI_CONFIG and CONFIG_PBLRCW_CONFIG variables have to be defined. This patch sets these two files for the P2041RDB board. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- include/configs/P2041RDB.h |2

[U-Boot] [PATCH v4 00/27] updates for Keymile ARM boards

2012-05-15 Thread Valentin Longchamp
: add implementation for read_dip_switch arm/km: fix testpin detection for kmcoge5un Valentin Longchamp (12): arm/km: enable mii cmd arm/km: use correct kw_gpio function for NAND/SPI switching arm/kirkwood: protect the ENV_SPI #defines arm/km: correct init of 88e6352 switch

[U-Boot] [PATCH v4 21/27] arm/km: skip FPGA config when already configured

2012-05-15 Thread Valentin Longchamp
to trigger a reconfiguration when needed. This is done by lowering the FPGA_INIT_B pin for delaying the configuration to u-boot @ next reboot, and then lower the FPGA_PROGRAM_B signal. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/km_arm/fpga_config.c | 41

[U-Boot] [PATCH v4 08/27] arm/km: enable mii cmd

2012-05-15 Thread Valentin Longchamp
This is useful to debug the switch initialization Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- include/configs/km/km_arm.h

[U-Boot] [PATCH v4 20/27] arm/km: enable external switch configuration for kmnusa

2012-05-15 Thread Valentin Longchamp
The configuration EEPROM should be removed for P1B. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/km_arm/km_arm.c | 11 +-- board/keymile/km_arm/managed_switch.c |3 ++- board/keymile/km_arm/managed_switch.h |7 +++ 3 files

[U-Boot] [PATCH v4 22/27] arm/km: support the 2 PCIe fpga resets

2012-05-15 Thread Valentin Longchamp
The PCIe FPGAs now have to support 2 resets: one for the non traffic affecting part (PCIe) and one for the traffic affecting part. When the FPGA is not reconfigured, we only reset the PCIe part. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/km_arm

[U-Boot] [PATCH v4 24/27] arm/km: fix testpin detection for kmcoge5un

2012-05-15 Thread Valentin Longchamp
From: Thomas Herzmann thomas.herzm...@keymile.com On kmcoge5un unfortunately the HW wiring is differently to other km arm boards. Signed-off-by: Thomas Herzmann thomas.herzm...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch

[U-Boot] [PATCH v4 18/27] km_arm: redefine piggy 4 reg names to avoid conflicts

2012-05-15 Thread Valentin Longchamp
Some very similar #defines for reg addresses are used in a later patch (managed_switch support for km_arm). Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/km_arm/km_arm.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff

[U-Boot] [PATCH v4 19/27] arm/km: add support for external switch configuration

2012-05-15 Thread Valentin Longchamp
This can be used if we do not want to use an EEPROM for the configuration. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/common/common.h |7 -- board/keymile/km_arm/managed_switch.c | 169 +++-- board/keymile/km_arm

[U-Boot] [PATCH v4 10/27] arm/kirkwood: protect the ENV_SPI #defines

2012-05-15 Thread Valentin Longchamp
So that they can be redefined by some boards specific values. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- arch/arm/include

[U-Boot] [PATCH v4 23/27] arm/km: add implementation for read_dip_switch

2012-05-15 Thread Valentin Longchamp
-off-by: Valentin Longchamp valentin.longch...@keymile.com --- board/keymile/km_arm/km_arm.c | 14 +- include/configs/km_kirkwood.h |3 --- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index ebc82ef

[U-Boot] [PATCH v4 09/27] arm/km: use correct kw_gpio function for NAND/SPI switching

2012-05-15 Thread Valentin Longchamp
This used to be done with registers direct access, which is not clear and optimal. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com

[U-Boot] [PATCH v4 27/27] km_arm: use filesize for erase in update command

2012-05-15 Thread Valentin Longchamp
We used to have an arbitrary value, which can be a problem if we have a u-boot image that is bigger than this value. This patch is dependant on the whole km/arm series and will be included in the v3 of the series if there is one. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com

[U-Boot] [PATCH v4 03/27] arm/km: rename CONFIG option CONFIG_KM_DEF_ENV_UPDATE

2012-05-15 Thread Valentin Longchamp
-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- include/configs/km/km_arm.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/km/km_arm.h b/include/configs/km

[U-Boot] [PATCH v4 07/27] arm/km: remove CONFIG_RESET_PHY_R

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com This is already defined in the generic kirkwood header. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar

[U-Boot] [PATCH v4 13/27] arm/km: convert mgcoge3un target to km_kirkwood

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com Use the generic header km_kirkwood.h and get rid of the board specific header. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com

[U-Boot] [PATCH v4 17/27] arm/km: cleanup km_kirkwood boards

2012-05-15 Thread Valentin Longchamp
holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- boards.cfg|4 ++-- include/configs/km_kirkwood.h |7 ++- 2 files changed, 8 insertions

[U-Boot] [PATCH v4 16/27] arm/km: enable BOCO2 FPGA download support

2012-05-15 Thread Valentin Longchamp
. The config option name is CONFIG_KM_FPGA_CONFIG Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- board/keymile/common/common.h |6

[U-Boot] [PATCH v4 02/27] arm/km: add piggy mac adress offset for mgcoge3un

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com On mgcoge3un the piggy mac adress is at offset 3. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu

[U-Boot] [PATCH v4 12/27] arm/km: add kmcoge5un board support

2012-05-15 Thread Valentin Longchamp
without a phy inbetween, this needs a new configuration for the mvgbe driver. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com

[U-Boot] [PATCH v4 14/27] arm/km: remove portl2.h and use km_kirkwood instead

2012-05-15 Thread Valentin Longchamp
holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- board/keymile/km_arm/km_arm.c |2 +- boards.cfg|2 +- include/configs/km_kirkwood.h

[U-Boot] [PATCH v4 11/27] arm/km: add kmnusa board support

2012-05-15 Thread Valentin Longchamp
simple switch. There is no phy between the simple switch and the kirkwood. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com

[U-Boot] [PATCH v4 15/27] arm/km: correct init of 88e6352 switch in the reset_phy function

2012-05-15 Thread Valentin Longchamp
-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- board/keymile/common/common.h |6 + board/keymile/km_arm/Makefile |4

[U-Boot] [PATCH v4 25/27] arm/km: implement weak function board_spi_clam_bus/release

2012-05-15 Thread Valentin Longchamp
They are needed on all km_arm boards where we have the environement variables in the NOR Flash. First boards using this feature are kmcoge5un and kmnusa. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com cc: Gerlando Falauto

[U-Boot] [PATCH v4 26/27] km/arm: remove spi toggle command

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com Now we toggle between SPI and NAND flash automatically if we claim the SPI bus. So we can get rid of this command. Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando

[U-Boot] [PATCH v4 01/27] arm/km: add board type to boards.cfg

2012-05-15 Thread Valentin Longchamp
Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- boards.cfg|4 ++-- include/configs/km_kirkwood.h |4 ++-- 2 files changed, 4 insertions(+), 4 deletions

[U-Boot] [PATCH v4 04/27] arm/km: use ARRAY_SIZE macro

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- board/keymile/km_arm/km_arm.c

[U-Boot] [PATCH v4 05/27] arm/km: fix wrong comment in SDRAM config for mgcoge3un

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Gerlando Falauto gerlando.fala...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- board/keymile/km_arm/kwbimage

[U-Boot] [PATCH v4 06/27] arm/km: change maintainer for mgcoge3un

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck holger.bru...@keymile.com Signed-off-by: Holger Brunck holger.bru...@keymile.com Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Heiko Schocher h...@denx.de cc: Prafulla Wadaskar prafu...@marvell.com cc: Gerlando Falauto gerlando.fala...@keymile.com

[U-Boot] [PATCH 0/3] kirkwood spi_claim/release_bus support

2012-05-16 Thread Valentin Longchamp
to temporarily save and then restore the mpp configuration. Valentin Longchamp (3): kirkwood: add kirkwood_mpp_save/restore functions spi/kirkwood: support spi_claim/release_bus functions spi/kirkwood: add weak functions board_spi_claim/release_bus arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 18

[U-Boot] [PATCH 1/3] kirkwood: add kirkwood_mpp_save/restore functions

2012-05-16 Thread Valentin Longchamp
These 2 functions can be used in pair if one needs to set a mpp configuration only for a given time and then switch back to the previous mpp config. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu

[U-Boot] [PATCH 2/3] spi/kirkwood: support spi_claim/release_bus functions

2012-05-16 Thread Valentin Longchamp
with CONFIG_SYS_KW_SPI_MPP. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com --- arch/arm/include/asm/arch-kirkwood/spi.h |9 drivers/spi/kirkwood_spi.c | 34

[U-Boot] [PATCH 3/3] spi/kirkwood: add weak functions board_spi_claim/release_bus

2012-05-16 Thread Valentin Longchamp
This allows a final, board specific, step in the claim/relase_bus function for the SPI controller, which may be needed for some hardware designs. Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com cc: Holger Brunck holger.bru...@keymile.com cc: Prafulla Wadaskar prafu...@marvell.com

  1   2   3   4   5   >