From: Valentin Longchamp <valentin.longch...@keymile.com> They are needed on all km_arm boards where we have the environement variables in the NOR Flash. This is #ifdefed by CONFIG_KM_ENV_IS_IN_SPI_NOR. First boards using this feature are the upcoming boards kmcoge5un and kmnusa.
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/km_arm/km_arm.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index 2507734..dcecf83 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -33,6 +33,7 @@ #include <nand.h> #include <netdev.h> #include <miiphy.h> +#include <spi.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/kirkwood.h> @@ -302,6 +303,16 @@ int km_hw_spi_bus_claim(int on) return 0; } +int board_spi_claim_bus(struct spi_slave *slave) +{ + return km_hw_spi_bus_claim(1); +} + +void board_spi_release_bus(struct spi_slave *slave) +{ + km_hw_spi_bus_claim(0); +} + #if defined(CONFIG_CMD_SF) int do_spi_toggle(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { -- 1.7.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot