[U-Boot] [PATCH 0/9] Further support for the kmp204x architecture

2014-01-13 Thread Valentin Longchamp
enhancements Rainer Boschung (2): kmp204x: support for QRIO1 bootcounter kmp204x: I2C deblocking for I2C-bus1 added Valentin Longchamp (7): kmp204x: introduce QRIO GPIO functions kmp204x: implement workaround for A-006559 kmp204x: add support for the kmcoge4 board kmp204x: update I2C

[U-Boot] [PATCH 6/9] kmp204x: update I2C field of RCW

2014-01-13 Thread Valentin Longchamp
On the previous HW revision (now unsupported), there was a need for external DMA signals and thus the I2C3/4 signals were used DMA1_DONE/ACK/REQ. These signals now are configured as GPIO[16:19]. Signed-off-by: Valentin Longchamp --- board/keymile/kmp204x/rcw_kmp204x.cfg | 2 +- 1 file changed

[U-Boot] [PATCH 1/9] kmp204x: support for QRIO1 bootcounter

2014-01-13 Thread Valentin Longchamp
From: Rainer Boschung - make use of the QRIO1 32bit register at 0x20 as bootcounter register - check for BOOTCOUNT_MAGIC pattern when before bootcounter value is read Signed-off-by: Rainer Boschung Signed-off-by: Valentin Longchamp Acked-by: Valentin Longchamp --- board/keymile/kmp204x

[U-Boot] [PATCH 8/9] kmp204x: enable support for SPANSION SPI NOR

2014-01-13 Thread Valentin Longchamp
The new prototype and the final series was moved from Micron to Spansion to have a better reset sequence that is easier to support. Signed-off-by: Valentin Longchamp --- include/configs/km/kmp204x-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/km/kmp204x-common.h

[U-Boot] [PATCH 7/9] KM: add the KM_UBI_PART_BOOT_OPTS #define

2014-01-13 Thread Valentin Longchamp
additionnal argument that defines the VID offstet must be given to the kernel. The UBI cmd line option now looks like this "ubi.mtd=ubi0,2048" on this platform. Signed-off-by: Valentin Longchamp --- include/configs/km/keymile-common.h | 10 -- include/configs/km/kmp204x-common.h |

[U-Boot] [PATCH 9/9] kmp204x: initial support for PCIe FPGA configuration

2014-01-13 Thread Valentin Longchamp
used mechanism is taken from the km_kirkwood design and adapted to the kmp204x case (slightly different HW and PCIe configuration). Signed-off-by: Valentin Longchamp --- board/keymile/kmp204x/kmp204x.c | 7 +++- board/keymile/kmp204x/pci.c | 85 + 2

[U-Boot] [PATCH 3/9] kmp204x: I2C deblocking for I2C-bus1 added

2014-01-13 Thread Valentin Longchamp
up externaly! Signed-off-by: Rainer Boschung Signed-off-by: Valentin Longchamp Acked-by: Valentin Longchamp --- board/keymile/kmp204x/kmp204x.c | 53 ++--- include/configs/km/kmp204x-common.h | 10 +++ 2 files changed, 60 insertions(+), 3 deletions

[U-Boot] [PATCH 2/9] kmp204x: introduce QRIO GPIO functions

2014-01-13 Thread Valentin Longchamp
The QRIO GPIO functions can be of general interest. They are thus added to a qrio.c and their prototype are available from kmp204x.h. The QRIO prst function are also included in this file, as well as the functions required for the I2C deblocking support (open-drain). Signed-off-by: Valentin

[U-Boot] [PATCH 4/9] kmp204x: implement workaround for A-006559

2014-01-13 Thread Valentin Longchamp
According to the errata, some bits of an undocumented register in the DCSR must be set for every core in order to avoid a possible data or instruction corruption. This is required for the 2.0 revision of the P2041 that should be used as soon as available in our design. Signed-off-by: Valentin

[U-Boot] [PATCH 5/9] kmp204x: add support for the kmcoge4 board

2014-01-13 Thread Valentin Longchamp
The kmcoge4 board is the product board derived from the kmlion1 prototype. The main difference between the 2 boards is that the kmcoge4 does not configure the Local Bus controller for LCS2. Signed-off-by: Valentin Longchamp --- boards.cfg| 1 + include/configs/kmp204x.h | 7

Re: [U-Boot] [PATCH 1/9] kmp204x: support for QRIO1 bootcounter

2014-01-14 Thread Valentin Longchamp
Hi Stefan, On 01/14/2014 07:58 AM, Stefan Roese wrote: > Hi Valentin, > > On 13.01.2014 17:29, Valentin Longchamp wrote: >> From: Rainer Boschung >> >> - make use of the QRIO1 32bit register at 0x20 as bootcounter register >> - check for BOOTCOUNT_MAGIC pattern

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

2014-01-21 Thread Valentin Longchamp
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 are multiplexed. > > This patch series tries to enhanc

[U-Boot] [PATCH v2 7/9] KM: add the KM_UBI_PART_BOOT_OPTS #define

2014-01-27 Thread Valentin Longchamp
additionnal argument that defines the VID offstet must be given to the kernel. The UBI cmd line option now looks like this "ubi.mtd=ubi0,2048" on this platform. Signed-off-by: Valentin Longchamp --- Changes in v2: None include/configs/km/keymile-common.h | 10 -- include/configs/

[U-Boot] [PATCH v2 1/9] kmp204x: support for QRIO1 bootcounter

2014-01-27 Thread Valentin Longchamp
From: Rainer Boschung - make use of the QRIO1 32bit register at 0x20 as bootcounter register - check for BOOTCOUNT_MAGIC pattern when before bootcounter value is read Signed-off-by: Rainer Boschung Signed-off-by: Valentin Longchamp --- Changes in v2: - change bootcounter implementation to

[U-Boot] [PATCH v2 8/9] kmp204x: enable support for SPANSION SPI NOR

2014-01-27 Thread Valentin Longchamp
The new prototype and the final series was moved from Micron to Spansion to have a better reset sequence that is easier to support. Signed-off-by: Valentin Longchamp --- Changes in v2: None include/configs/km/kmp204x-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs

[U-Boot] [PATCH v2 2/9] kmp204x: introduce QRIO GPIO functions

2014-01-27 Thread Valentin Longchamp
The QRIO GPIO functions can be of general interest. They are thus added to a qrio.c and their prototype are available from kmp204x.h. The QRIO prst function are also included in this file, as well as the functions required for the I2C deblocking support (open-drain). Signed-off-by: Valentin

[U-Boot] [PATCH v2 3/9] kmp204x: I2C deblocking for I2C-bus1 added

2014-01-27 Thread Valentin Longchamp
up externaly! Signed-off-by: Rainer Boschung Signed-off-by: Valentin Longchamp --- Changes in v2: None board/keymile/kmp204x/kmp204x.c | 53 ++--- include/configs/km/kmp204x-common.h | 10 +++ 2 files changed, 60 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH v2 4/9] kmp204x: implement workaround for A-006559

2014-01-27 Thread Valentin Longchamp
According to the errata, some bits of an undocumented register in the DCSR must be set for every core in order to avoid a possible data or instruction corruption. This is required for the 2.0 revision of the P2041 that should be used as soon as available in our design. Signed-off-by: Valentin

[U-Boot] [PATCH v2 5/9] kmp204x: add support for the kmcoge4 board

2014-01-27 Thread Valentin Longchamp
The kmcoge4 board is the product board derived from the kmlion1 prototype. The main difference between the 2 boards is that the kmcoge4 does not configure the Local Bus controller for LCS2. Signed-off-by: Valentin Longchamp --- Changes in v2: None boards.cfg| 1 + include

[U-Boot] [PATCH v2 0/9] Further support for the kmp204x architecture

2014-01-27 Thread Valentin Longchamp
enhancements Changes in v2: - change bootcounter implementation to use generic driver Rainer Boschung (2): kmp204x: support for QRIO1 bootcounter kmp204x: I2C deblocking for I2C-bus1 added Valentin Longchamp (7): kmp204x: introduce QRIO GPIO functions kmp204x: implement workaround for A

[U-Boot] [PATCH v2 6/9] kmp204x: update I2C field of RCW

2014-01-27 Thread Valentin Longchamp
On the previous HW revision (now unsupported), there was a need for external DMA signals and thus the I2C3/4 signals were used DMA1_DONE/ACK/REQ. These signals now are configured as GPIO[16:19]. Signed-off-by: Valentin Longchamp --- Changes in v2: None board/keymile/kmp204x/rcw_kmp204x.cfg

[U-Boot] [PATCH v2 9/9] kmp204x: initial support for PCIe FPGA configuration

2014-01-27 Thread Valentin Longchamp
used mechanism is taken from the km_kirkwood design and adapted to the kmp204x case (slightly different HW and PCIe configuration). Signed-off-by: Valentin Longchamp --- Changes in v2: None board/keymile/kmp204x/kmp204x.c | 7 +++- board/keymile/kmp204x/pci.c | 85

Re: [U-Boot] [PATCH v2 3/9] kmp204x: I2C deblocking for I2C-bus1 added

2014-01-29 Thread Valentin Longchamp
On 01/30/2014 03:30 AM, York Sun wrote: > On 01/27/2014 02:49 AM, Valentin Longchamp wrote: >> From: Rainer Boschung >> >> -uses common deblocking algorithm from ../common/common.c > > I don't see any algorithm in the common.c file. The file is board/ke

[U-Boot] [PATCH v3 3/9] kmp204x: I2C deblocking support

2014-01-31 Thread Valentin Longchamp
bus are some external GPIOs provided by the QRIO CPLD: - SCL = GPIOA_20 - SDA = GPIOA_21 The QRIO GPIOs act in an open-drain-like manner, for 0 the line is driven low and for 1 the GPIO is set as input and the line gets pulled-up. Signed-off-by: Rainer Boschung Signed-off-by: Valentin

[U-Boot] [PATCH v4 3/9] kmp204x: I2C deblocking support

2014-02-02 Thread Valentin Longchamp
bus are some external GPIOs provided by the QRIO CPLD: - SCL = GPIOA_20 - SDA = GPIOA_21 The QRIO GPIOs act in an open-drain-like manner, for 0 the line is driven low and for 1 the GPIO is set as input and the line gets pulled-up. Signed-off-by: Rainer Boschung Signed-off-by: Valentin

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

2012-05-15 Thread Valentin Longchamp
e spi toggle command Thomas Herzmann (2): arm/km: 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/k

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

2012-05-15 Thread Valentin Longchamp
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 --- 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 Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- include/configs/km/km_arm.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/km/km_arm.h b

[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 --- 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 changed, 14 insertions(+), 7

[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 --- board/keymile/km_arm/fpga_config.c | 13 + 1

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

2012-05-15 Thread Valentin Longchamp
From: Thomas Herzmann On kmcoge5un unfortunately the HW wiring is differently to other km arm boards. Signed-off-by: Thomas Herzmann Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- board/keymile/km_arm/km_arm.c |4 1 files changed, 4 insertions(+), 0 deletions

[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 --- board/keymile/km_arm/km_arm.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/board/keymile/km_arm

[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 --- board/keymile/common/common.h |7 -- board/keymile/km_arm/managed_switch.c | 169 +++-- board/keymile/km_arm/managed_switch.h | 99

[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 Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/config.h | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff

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

2012-05-15 Thread Valentin Longchamp
From: Thomas Herzmann Add a function to read the dip_switch on kmcoge5un. If the switch is set the actual_bank is set to 0 and this SW is booted. Signed-off-by: Thomas Herzmann Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp --- board/keymile/km_arm/km_arm.c | 14

[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 Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c | 55 + include/configs/km

[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 cc: Holger Brunck cc: Gerlando

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck This config option sounds like the it is responsible for the update of the environment, but it is the u-boot update handling. Therefore we adapt it to a more apropriate naming. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck This is already defined in the generic kirkwood header. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- include/configs/km/km_arm.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck Use the generic header km_kirkwood.h and get rid of the board specific header. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c |9 ++-- boards.cfg|2

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck Remove config options from boards.cfg and simply add one switch per board and differ afterwards in km_kirkwood.h between the features. More boards are upcoming and therefore it's easier to have this at one place. Signed-off-by: Holger Brunck Signed-off-by: Val

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

2012-05-15 Thread Valentin Longchamp
config option name is CONFIG_KM_FPGA_CONFIG Signed-off-by: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/common/common.h |6 + board/keymile/km_arm/Makefile |4 + board/keymile/km_arm/fpga_config.c | 212

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck On mgcoge3un the piggy mac adress is at offset 3. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- include/configs/mgcoge3un.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include

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

2012-05-15 Thread Valentin Longchamp
, this needs a new configuration for the mvgbe driver. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- MAINTAINERS |1 + board/keymile/km_arm/256M8-1.cfg | 296

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

2012-05-15 Thread Valentin Longchamp
* Holger Brunck, Keymile GmbH Hannover, holger.bru...@keymile.com. - * Valentin Longchamp, Keymile AG Bern, valentin.longch...@keymile.com - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify

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

2012-05-15 Thread Valentin Longchamp
between the simple switch and the kirkwood. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- MAINTAINERS |1 + board/keymile/km_arm/128M16-1.cfg | 294 + board

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

2012-05-15 Thread Valentin Longchamp
: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/common/common.h |6 + board/keymile/km_arm/Makefile |4 + board/keymile/km_arm/km_arm.c | 26 +- board/keymile/km_arm/managed_switch.c | 166

[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 Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck 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 Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c | 26

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck Some other kirkwood boards from keymile will follow. They will have some small differences, but we want to use the km_kirkwood.h for all to distinguish them. This patch a preparation for this. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm

[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 Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/kwbimage-memphis.cfg |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/keymile/km_arm/kwbimage-memphis.cfg b

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

2012-05-15 Thread Valentin Longchamp
From: Holger Brunck Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Heiko Schocher cc: Prafulla Wadaskar cc: Gerlando Falauto --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 708ded7..2be0e6e 100644

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

2012-05-16 Thread Valentin Longchamp
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 cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 18

[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 cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/spi.h |9 drivers/spi/kirkwood_spi.c | 34 ++ 2 files changed, 43 insertions(+), 0 deletions

[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 cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 13 - 1 files changed, 12

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

2012-05-29 Thread Valentin Longchamp
On 05/24/2012 10:35 AM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 16 May 2012 16:24 >> To: Prafulla Wadaskar; holger.bru...@keymile.com >> Cc: Valentin Longchamp; u-boot@lists.de

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

2012-05-29 Thread Valentin Longchamp
On 05/24/2012 10:38 AM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 16 May 2012 16:24 >> To: Prafulla Wadaskar; holger.bru...@keymile.com >> Cc: Valentin Longchamp; u-boot@lists.de

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

2012-05-29 Thread Valentin Longchamp
On 05/24/2012 10:26 AM, Prafulla Wadaskar wrote: > > >> -Original Message----- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 16 May 2012 16:24 >> To: Prafulla Wadaskar; holger.bru...@keymile.com >> Cc: Valentin Longchamp;

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

2012-05-29 Thread Valentin Longchamp
>> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 29 May 2012 14:15 >> To: Prafulla Wadaskar >> Cc: holger.bru...@keymile.com; u-boot@lists.denx.de >> Subject: Re: [PATCH 1/3] kirkwood: add kirkwood_mpp_sa

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

2012-05-29 Thread Valentin Longchamp
On 05/29/2012 12:29 PM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 29 May 2012 14:02 >> To: Prafulla Wadaskar >> Cc: holger.bru...@keymile.com; u-boot@lists.denx.de >> S

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

2012-05-29 Thread Valentin Longchamp
On 05/29/2012 02:06 PM, Prafulla Wadaskar wrote: > > >> -Original Message----- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 29 May 2012 16:59 >> To: Prafulla Wadaskar >> Cc: holger.bru...@keymile.com; u-boot@lists.denx.de

[U-Boot] [PATCH v2 1/4] kirkwood: add kirkwood_mpp_read function

2012-05-30 Thread Valentin Longchamp
called. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 41 ++ arch/arm/include/asm/arch-kirkwood/mpp.h |1 + 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu

[U-Boot] [PATCH v2 2/4] kw_spi: backup and reset the MPP of the chosen CS pin

2012-05-30 Thread Valentin Longchamp
This was not done before, and in the case of a shared pin (for MPP0 between NF_IO[2] and CSn) this could lead to problems. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 14 ++ 1 files changed, 6 insertions(+), 8

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

2012-05-30 Thread Valentin Longchamp
temporarily save and then restore the mpp configuration. Changes for v2: - save MPP configuration with mpp_read function as dicussed on ML - moved CS pin MPP config to spi_setup_slave only - add backup fo CS pin in spi_setup_slave and reset in spi_free_slave Valentin Longchamp (4

[U-Boot] [PATCH v2 4/4] kw_spi: add weak functions board_spi_claim/release_bus

2012-05-30 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 cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 13 - 1 files changed, 12

[U-Boot] [PATCH v2 3/4] kw_spi: support spi_claim/release_bus functions

2012-05-30 Thread Valentin Longchamp
with CONFIG_SYS_KW_SPI_MPP. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/spi.h | 11 drivers/spi/kirkwood_spi.c | 38 ++ 2 files changed, 49 insertions(+), 0 deletions

Re: [U-Boot] [PATCH v2 1/4] kirkwood: add kirkwood_mpp_read function

2012-05-31 Thread Valentin Longchamp
Hi Prafulla, On 05/31/2012 10:30 AM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 30 May 2012 21:12 >> To: Prafulla Wadaskar >> Cc: Valentin Longchamp; holger.bru...@keymile

Re: [U-Boot] [PATCH v2 2/4] kw_spi: backup and reset the MPP of the chosen CS pin

2012-05-31 Thread Valentin Longchamp
On 05/31/2012 10:36 AM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 30 May 2012 21:12 >> To: Prafulla Wadaskar >> Cc: Valentin Longchamp; holger.bru...@keymile.com; u- >> b

Re: [U-Boot] [PATCH v2 1/4] kirkwood: add kirkwood_mpp_read function

2012-05-31 Thread Valentin Longchamp
On 05/31/2012 10:49 AM, Prafulla Wadaskar wrote: > > >> -Original Message----- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 31 May 2012 14:14 >> To: Prafulla Wadaskar >> Cc: holger.bru...@keymile.com; u-boot@lists.d

[U-Boot] [PATCH v3 1/5] kirkwood: add save functionality kirkwood_mpp_conf function

2012-05-31 Thread Valentin Longchamp
with this saved list as first (mpp_conf) argment will set the configuration back. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 14 -- arch/arm/include/asm/arch-kirkwood/mpp.h |2 +- 2 files changed

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

2012-05-31 Thread Valentin Longchamp
: - moved mpp_read function functionality into mpp_conf function - fixed all calls to mpp_conf so that they are compliant with the newly necessary mpp_conf prototype Valentin Longchamp (5): kirkwood: add save functionality kirkwood_mpp_conf function kirkwood: fix calls to

[U-Boot] [PATCH v3 5/5] kw_spi: add weak functions board_spi_claim/release_bus

2012-05-31 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 cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 13 - 1 files changed, 12

[U-Boot] [PATCH v3 4/5] kw_spi: support spi_claim/release_bus functions

2012-05-31 Thread Valentin Longchamp
with CONFIG_SYS_KW_SPI_MPP. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/spi.h | 11 + drivers/spi/kirkwood_spi.c | 36 ++ 2 files changed, 47 insertions(+), 0 deletions

[U-Boot] [PATCH v3 3/5] kw_spi: backup and reset the MPP of the chosen CS pin

2012-05-31 Thread Valentin Longchamp
This was not done before, and in the case of a shared pin (for MPP0 between NF_IO[2] and CSn) this could lead to problems. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 15 ++- 1 files changed, 6 insertions(+), 9

[U-Boot] [PATCH v3 2/5] kirkwood: fix calls to kirkwood_mpp_conf

2012-05-31 Thread Valentin Longchamp
With the new second save argument introduced by the previous patch, all the calls to the function had to be fixed. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- board/LaCie/net2big_v2/net2big_v2.c |2 +- board/LaCie/netspace_v2/netspace_v2.c

Re: [U-Boot] [PATCH v3 1/5] kirkwood: add save functionality kirkwood_mpp_conf function

2012-06-01 Thread Valentin Longchamp
Hi Luka, On 06/01/2012 01:02 AM, Luka Perkov wrote: > Hi Valentin, > > On Thu, May 31, 2012 at 04:17:52PM +0200, Valentin Longchamp wrote: >> If a second non NULL argument is given to the kirkwood_mpp_conf >> function, it will be used to store the current configuration of

[U-Boot] [PATCH v4 1/5] kirkwood: add save functionality kirkwood_mpp_conf function

2012-06-01 Thread Valentin Longchamp
with this saved list as first (mpp_conf) argment will set the configuration back. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 10 +- arch/arm/include/asm/arch-kirkwood/mpp.h |2 +- 2 files changed, 10

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

2012-06-01 Thread Valentin Longchamp
: - moved mpp_read function functionality into mpp_conf function - fixed all calls to mpp_conf so that they are compliant with the newly necessary mpp_conf prototype Changes for v4: - minor fix in the mpp_conf function Valentin Longchamp (5): kirkwood: add save

[U-Boot] [PATCH v4 3/5] kw_spi: backup and reset the MPP of the chosen CS pin

2012-06-01 Thread Valentin Longchamp
This was not done before, and in the case of a shared pin (for MPP0 between NF_IO[2] and CSn) this could lead to problems. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 15 ++- 1 files changed, 6 insertions(+), 9

[U-Boot] [PATCH v4 1/5] kirkwood: add save functionality kirkwood_mpp_conf function

2012-06-01 Thread Valentin Longchamp
with this saved list as first (mpp_conf) argment will set the configuration back. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/cpu/arm926ejs/kirkwood/mpp.c| 10 +- arch/arm/include/asm/arch-kirkwood/mpp.h |2 +- 2 files changed, 10

[U-Boot] [PATCH v4 2/5] kirkwood: fix calls to kirkwood_mpp_conf

2012-06-01 Thread Valentin Longchamp
With the new second save argument introduced by the previous patch, all the calls to the function had to be fixed. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- board/LaCie/net2big_v2/net2big_v2.c |2 +- board/LaCie/netspace_v2/netspace_v2.c

[U-Boot] [PATCH v4 5/5] kw_spi: add weak functions board_spi_claim/release_bus

2012-06-01 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 cc: Holger Brunck cc: Prafulla Wadaskar --- drivers/spi/kirkwood_spi.c | 13 - 1 files changed, 12

[U-Boot] [PATCH v4 4/5] kw_spi: support spi_claim/release_bus functions

2012-06-01 Thread Valentin Longchamp
with CONFIG_SYS_KW_SPI_MPP. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/spi.h | 11 + drivers/spi/kirkwood_spi.c | 36 ++ 2 files changed, 47 insertions(+), 0 deletions

Re: [U-Boot] [PATCH v2] Consolidate bootcount code into drivers/bootcount

2012-06-04 Thread Valentin Longchamp
with the bootcount_ram driver and it works as expected on this platform. Tested-by: Valentin Longchamp > > Signed-off-by: Stefan Roese > Cc: Heiko Schocher > Cc: Valentin Longchamp > Cc: Christian Riesch > Cc: Manfred Rudigier > Cc: Mike Frysinger > Cc: Rob Herring

Re: [U-Boot] [PATCH] Kirkwood: Add support for Ka-Ro TK71

2012-06-04 Thread Valentin Longchamp
Hi Marek and Prafulla, On 06/01/2012 03:03 PM, Marek Vasut wrote: > Dear Prafulla Wadaskar, > >>> -Original Message- >>> From: Marek Vasut [mailto:ma...@denx.de] >>> Sent: 31 May 2012 16:37 >>> To: u-boot@lists.denx.de >>> Cc: Marek Vasut; Prafulla Wadaskar; Wolfgang Denk >>> Subject: [PA

Re: [U-Boot] [PATCH v4 5/5] wispy: add weak functions board_spi_claim/release_bus

2012-06-07 Thread Valentin Longchamp
Hi Prafulla, On 06/05/2012 04:21 PM, Prafulla Wadaskar wrote: >> -Original Message- >> From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] >> Sent: 01 June 2012 17:01 >> To: Prafulla Wadaskar >> Cc: u-boot@lists.denx.de; Valentin Longchamp; Holge

[U-Boot] [PATCH 00/20] updates for Keymile Marvell boards

2012-06-07 Thread Valentin Longchamp
implementation for read_dip_switch arm/km: fix testpin detection for kmcoge5un Valentin Longchamp (12): arm/km: enable spi claim bus 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 in the reset_phy

[U-Boot] [PATCH 02/20] arm/km: use correct kw_gpio function for NAND/SPI switching

2012-06-07 Thread Valentin Longchamp
This used to be done with registers direct access, which is not clear and optimal. Signed-off-by: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c | 53 +--- include/configs/km

[U-Boot] [PATCH 01/20] arm/km: enable spi claim bus

2012-06-07 Thread Valentin Longchamp
This is required for all our keymile ARM boards. The selected MPPs are the default one for the SPI controller, thus the 0x0 definition. Signed-off-by: Valentin Longchamp cc: Holger Brunck cc: Prafulla Wadaskar --- include/configs/km/km_arm.h |3 +++ 1 files changed, 3 insertions(+), 0

[U-Boot] [PATCH 03/20] arm/kirkwood: protect the ENV_SPI #defines

2012-06-07 Thread Valentin Longchamp
So that they can be redefined by some boards specific values. Signed-off-by: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- arch/arm/include/asm/arch-kirkwood/config.h | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff

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

2012-06-07 Thread Valentin Longchamp
: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/common/common.h |6 + board/keymile/km_arm/Makefile |4 + board/keymile/km_arm/km_arm.c | 26 +- board/keymile/km_arm/managed_switch.c | 166

[U-Boot] [PATCH 18/20] arm/km: implement weak function board_spi_clam_bus/release

2012-06-07 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 Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/km_arm

[U-Boot] [PATCH 04/20] arm/km: add kmnusa board support

2012-06-07 Thread Valentin Longchamp
between the simple switch and the kirkwood. Signed-off-by: Holger Brunck Signed-off-by: Valentin Longchamp cc: Gerlando Falauto cc: Prafulla Wadaskar --- MAINTAINERS |1 + board/keymile/km_arm/128M16-1.cfg | 294 + board

[U-Boot] [PATCH 10/20] arm/km: cleanup km_kirkwood boards

2012-06-07 Thread Valentin Longchamp
From: Holger Brunck Remove config options from boards.cfg and simply add one switch per board and differ afterwards in km_kirkwood.h between the features. More boards are upcoming and therefore it's easier to have this at one place. Signed-off-by: Holger Brunck Signed-off-by: Val

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

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

[U-Boot] [PATCH 09/20] arm/km: enable BOCO2 FPGA download support

2012-06-07 Thread Valentin Longchamp
config option name is CONFIG_KM_FPGA_CONFIG Signed-off-by: Valentin Longchamp Signed-off-by: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- board/keymile/common/common.h |6 + board/keymile/km_arm/Makefile |4 + board/keymile/km_arm/fpga_config.c | 212

[U-Boot] [PATCH 19/20] arm/km: remove spi toggle command

2012-06-07 Thread Valentin Longchamp
From: Holger Brunck 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 Signed-off-by: Valentin Longchamp cc: Prafulla Wadaskar --- board/keymile/km_arm/km_arm.c | 26

[U-Boot] [PATCH 14/20] arm/km: skip FPGA config when already configured

2012-06-07 Thread Valentin Longchamp
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 --- board/keymile/km_arm/fpga_config.c | 41

  1   2   3   4   5   6   >