Skip to content
  • George Shore's avatar
    spi/dw_spi: conditional transfer mode changes · 052dc7c4
    George Shore authored
    
    
    This allows the switching between transfer modes between 'transmit only',
    'receive only' and 'transmit and receive' modes. Due to the design of the SPI
    block, changing transfer modes requires that the block be disabled; in doing
    so the chipselect line is inherently deasserted and (usually) the attached
    device discards its state. Consequentially, switching modes requires that a
    platform-specific chipselect function has been defined so that the chipselect
    is not dropped during the change.
    
    Signed-off-by: default avatarGeorge Shore <george@georgeshore.com>
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    052dc7c4