Skip to content
Commit 0e146993 authored by Johannes Holland's avatar Johannes Holland Committed by Jagan Teki
Browse files

spi: add support for all spi modes with soft spi



The spi bitbanging driver did not implement all spi modes properly. Add
code to support all spi modes, honoring soft_spi_set_mode() and
defaulting to spi mode 0. Previously, CPHA was implemented inversely
(defaulting to CPHA=1) and CPOL=1 was hardcoded.

Signed-off-by: default avatarJohannes Holland <johannes.holland@infineon.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent f2473547
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment