Skip to content
  • Simon Glass's avatar
    dm: spi: Add a uclass for SPI · d7af6a48
    Simon Glass authored
    
    
    Add a uclass which provides access to SPI buses and includes operations
    required by SPI.
    
    For a time driver model will need to co-exist with the legacy SPI interface
    so some parts of the header file are changed depending on which is in use.
    The exports are adjusted also since some functions are not available with
    driver model.
    
    Boards must define CONFIG_DM_SPI to use driver model for SPI.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
    (Discussed some follow-up comments which will address in future add-ons)
    d7af6a48