• A
    spi: imx: fix ecspi mode setup · 1476253c
    Andrew Y. Kuksov 提交于
    Fixed problem with setting spi mode 0 or 1 after setting mode 2 or 3
    
    SPI_MODE_0 and SPI_MODE_1 requires clock low when inactive. SPI_MODE_2
    and SPI_MODE_3 requires clk high when inactive.
    Currently driver can just set bits in fields SCLK_PHA (SPI Clock/Data
    Phase Control), SCLK_POL (SPI Clock Polarity Control),
    SCLK_CTL (controls the inactive state of SCLK) ans SS_POL (SPI SS
    Polarity Select) of ECSPIx_CONFIGREG register.
    This patch allows driver to clear corresponding bits in these fields.
    Signed-off-by: NAndrew Y. Kuksov <qxovxp@gmail.com>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    1476253c
spi-imx.c 33.1 KB