Skip to content
  • Simon Glass's avatar
    dm: core: Add a flag to control sequence numbering · 9cc36a2b
    Simon Glass authored
    
    
    At present we try to use the 'reg' property and device tree aliases to give
    devices a sequence number. The 'reg' property is often actually a memory
    address, so the sequence numbers thus-obtained are not useful. It would be
    better if the devices were just sequentially numbered in that case. In fact
    neither I2C nor SPI use this feature, so drop it.
    
    Some devices need us to look up an alias to number them within the uclass.
    Add a flag to control this, so it is not done unless it is needed.
    
    Adjust the tests to test this new behaviour.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    9cc36a2b