commit | 8412062a001a5f11344dd6eb463ab975d9c2314d | [log] [tgz] |
---|---|---|
author | Johannes Holland <johannes.holland@infineon.com> | Mon May 11 15:22:26 2020 +0200 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Jul 09 20:58:06 2020 +0530 |
tree | 297615bf836bef7798649ec1932b225d01eed60b | |
parent | b7d3d45654c4401283086f71ea0077188e5b3e1f [diff] |
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: Johannes Holland <johannes.holland@infineon.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>