From 53ba5ad791546c4f423457a85e57cd07864e3653 Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Mon, 26 Oct 2015 16:35:29 +0800 Subject: [PATCH] Add SPI0 CS0 Lock Signal --- board/embedian/smarcfimx6/smarcfimx6.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/embedian/smarcfimx6/smarcfimx6.c b/board/embedian/smarcfimx6/smarcfimx6.c index 4810cd2..0b48bde 100644 --- a/board/embedian/smarcfimx6/smarcfimx6.c +++ b/board/embedian/smarcfimx6/smarcfimx6.c @@ -1204,7 +1204,12 @@ int board_early_init_f(void) #endif #ifdef CONFIG_SYS_USE_SPINOR - setup_spinor(); + /*Unlock SPI Flash*/ + gpio_direction_output(IMX_GPIO_NR(4,20), 1); + udelay(100); + setup_spinor(); + /*Lock SPI Flash and Free SPI0*/ + gpio_direction_output(IMX_GPIO_NR(4,20), 0); #endif setup_spi1(); -- 1.9.1