aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorStephan Olbrich <[email protected]>2016-02-14 10:04:29 +0000
committerMark Brown <[email protected]>2016-02-15 20:45:47 +0000
commite9dd4edcc98593bbcdffc0c4f37545b8fd0ad3ea (patch)
tree69d6cc2f8d528c87b0828401659ad6ec3f751965 /lib/assoc_array.c
parentspi: bcm2835aux: set up spi-mode before asserting cs-gpio (diff)
downloadkernel-e9dd4edcc98593bbcdffc0c4f37545b8fd0ad3ea.tar.gz
kernel-e9dd4edcc98593bbcdffc0c4f37545b8fd0ad3ea.zip
spi: bcm2835aux: fix CPOL/CPHA setting
The auxiliary spi supports only CPHA=0 modes as the first bit is always output to the pin before the first clock cycle. In CPHA=1 modes the first clock edge outputs the second bit hence the slave can never read the first bit. Also the CPHA registers switch between clocking data in/out on rising/falling edge hence depend on the CPOL setting. Signed-off-by: Stephan Olbrich <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions