From 27b1dc5fe2f723cf3ca6aa46ab614c95ba2736e9 Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Mon, 26 Oct 2015 16:41:37 +0800 Subject: [PATCH] Add SPI0 CS0 Lock Signal --- board/embedian/smarcfimx6/smarcfimx6.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/embedian/smarcfimx6/smarcfimx6.c b/board/embedian/smarcfimx6/smarcfimx6.c index de7a9e4..748509d 100644 --- a/board/embedian/smarcfimx6/smarcfimx6.c +++ b/board/embedian/smarcfimx6/smarcfimx6.c @@ -1205,7 +1205,12 @@ int board_early_init_f(void) #endif #ifdef CONFIG_SYS_USE_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