[U-Boot] sunxi: SPI: reset bus when enabling clock

Fahad Sadah fahad at sadah.uk
Sat Aug 4 12:23:53 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.

Applies to the allwinner-spi head on the u-boot-spi tree. 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