[U-Boot] [PATCH 0/2] sunxi: SPI: reset bus when enabling clock

Fahad Sadah fahad at sadah.uk
Fri Aug 3 23:24:09 UTC 2018


Hi all,

The sun6i SPI peripheral needs to be reset before it can be used

Add the necessary offset #defines and perform this reset

Tested on Orange Pi R1 (Allwinner H2+ / sun8i) and successfully booted
from SPI

Thanks,

Signed-off-by: Fahad Sadah <fahad at sadah.uk>

Fahad Sadah (2):
  sunxi: SPI: add AHB gate and reset offsets
  sunxi: SPI: reset bus when enabling clock

 arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 4 ++++
 drivers/spi/sun6i_spi.c                       | 1 +
 2 files changed, 5 insertions(+)

-- 
2.14.1



More information about the U-Boot mailing list