Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    6172e94c
    x86: Change condition for using CAR · 6172e94c
    Simon Glass authored
    
    At present we assume that CAR (Cache-as-RAM) is used if HOBs (Hand-off
    blocks) are not, since HOBs typically indicate that an FSP is in use, and
    FSPs handle the CAR init.
    
    However this is a bit indirect, and for FSP2 machines which use their own
    CAR implementation (such as apollolake) but use the FSP for other
    functions, the logic is wrong.
    
    To fix this, add a dedicated Kconfig option to indicate when CAR is used.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    [bmeng: fix a typo in the commit message]
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    6172e94c
    History
    x86: Change condition for using CAR
    Simon Glass authored
    
    At present we assume that CAR (Cache-as-RAM) is used if HOBs (Hand-off
    blocks) are not, since HOBs typically indicate that an FSP is in use, and
    FSPs handle the CAR init.
    
    However this is a bit indirect, and for FSP2 machines which use their own
    CAR implementation (such as apollolake) but use the FSP for other
    functions, the logic is wrong.
    
    To fix this, add a dedicated Kconfig option to indicate when CAR is used.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    [bmeng: fix a typo in the commit message]
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>