Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Simon Glass's avatar
    73845350
    dm: i2c: Add a compatbility layer · 73845350
    Simon Glass authored
    
    For boards which use multiple I2C devices, or for SOCs which support
    multiple boards, we might want to convert these to driver model at different
    times. At present this is difficult because we need to either use
    CONFIG_DM_I2C for a board or not.
    
    Add a compatibility layer which implements the old API, thus allowing a
    board to move to driver model for I2C without requiring that everything it
    uses is moved in the same commit.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    73845350
    History
    dm: i2c: Add a compatbility layer
    Simon Glass authored
    
    For boards which use multiple I2C devices, or for SOCs which support
    multiple boards, we might want to convert these to driver model at different
    times. At present this is difficult because we need to either use
    CONFIG_DM_I2C for a board or not.
    
    Add a compatibility layer which implements the old API, thus allowing a
    board to move to driver model for I2C without requiring that everything it
    uses is moved in the same commit.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>