• Thor Thayer's avatar
    spi: Add Flag to Enable Slave Select with GPIO Chip Select. · 8eee6b9d
    Thor Thayer authored
    Some SPI masters require slave selection before the transfer
    can begin [1]. The SPI framework currently selects the chip using
    either 1) the internal CS mechanism or 2) the GPIO CS, but not both.
    
    This patch adds a new master->flags define to indicate both the GPIO
    CS and the internal chip select mechanism should be used.
    
    Tested On:
        Altera CycloneV development kit
        Compile tested for build errors on x86_64 (allyesconfigs)
    
    [1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39)
    Signed-off-by: default avatarThor Thayer <tthayer@opensource.altera.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    8eee6b9d
spi.c 87.8 KB