Commit 27b1dc5fe2f723cf3ca6aa46ab614c95ba2736e9
1 parent
9c861c521f
Exists in
smarc-imx-l5.0.0_1.0.0-ga
Add SPI0 CS0 Lock Signal
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
board/embedian/smarcfimx6/smarcfimx6.c
... | ... | @@ -1205,7 +1205,12 @@ |
1205 | 1205 | #endif |
1206 | 1206 | |
1207 | 1207 | #ifdef CONFIG_SYS_USE_SPINOR |
1208 | + /*Unlock SPI Flash*/ | |
1209 | + gpio_direction_output(IMX_GPIO_NR(4,20), 1); | |
1210 | + udelay(100); | |
1208 | 1211 | setup_spinor(); |
1212 | + /*Lock SPI Flash and Free SPI0*/ | |
1213 | + gpio_direction_output(IMX_GPIO_NR(4,20), 0); | |
1209 | 1214 | #endif |
1210 | 1215 | |
1211 | 1216 | setup_spi1(); |