commit | a4e697f196593bafb083e867ad703524418fae27 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Wed Apr 08 12:02:03 2020 +0200 |
committer | Stefan Roese <sr@denx.de> | Tue Apr 14 13:16:42 2020 +0200 |
tree | ae9fa14843e7238e8b157f1d8680e3c3264b6e82 | |
parent | 026d472e723084fe8a7e27f6566f6c67e1538ac0 [diff] |
arm: mvebu: turris_mox: Fix early SPI communication The SPI clock signal changes value when the SPI configuration register is configured. This can sometimes lead to the device misinterpreting the enablement of the SPI controller as actual clock tick. This can be solved by first setting the SPI CS1 pin from GPIO to SPI mode, and only after that writing the SPI configuration register. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>