Commit 53ba5ad791546c4f423457a85e57cd07864e3653

Authored by Eric Lee
1 parent 00daf591e4

Add SPI0 CS0 Lock Signal

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

board/embedian/smarcfimx6/smarcfimx6.c
... ... @@ -1204,7 +1204,12 @@
1204 1204 #endif
1205 1205  
1206 1206 #ifdef CONFIG_SYS_USE_SPINOR
1207   - setup_spinor();
  1207 + /*Unlock SPI Flash*/
  1208 + gpio_direction_output(IMX_GPIO_NR(4,20), 1);
  1209 + udelay(100);
  1210 + setup_spinor();
  1211 + /*Lock SPI Flash and Free SPI0*/
  1212 + gpio_direction_output(IMX_GPIO_NR(4,20), 0);
1208 1213 #endif
1209 1214  
1210 1215 setup_spi1();