Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    336a4487
    fdt: Correct fdt_get_base_address() · 336a4487
    Simon Glass authored
    
    This function appears to obtain the value of the 'ranges' property rather
    than 'reg'. As such it does not behave as documented or expected.
    
    In addition it picks up the second field of the property which is the size
    (with prop += naddr) rather than the first which is the address.
    
    Fix it.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    336a4487
    History
    fdt: Correct fdt_get_base_address()
    Simon Glass authored
    
    This function appears to obtain the value of the 'ranges' property rather
    than 'reg'. As such it does not behave as documented or expected.
    
    In addition it picks up the second field of the property which is the size
    (with prop += naddr) rather than the first which is the address.
    
    Fix it.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>