Skip to content
  • André Przywara's avatar
    ARM: psci: move GIC address override to Kconfig · 3d5e52bd
    André Przywara authored and Tom Rini's avatar Tom Rini committed
    
    
    As the code to switch an ARM core from secure to the non-secure state
    needs to know the base address of the Generic Interrupt Controller
    (GIC), we read an Arm Cortex defined system register that is supposed to
    hold that base address. However there are SoCs out there that get this
    wrong, and this CBAR register either reads as 0 or points to the wrong
    address. To accommodate those systems, so far we use a macro defined in
    some platform specific header files, for affected boards.
    
    To simplify future extensions, replace that macro with a Kconfig variable
    that holds this override address, and define a default value for SoCs
    that need it.
    
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    Reviewed-by: default avatarSam Edwards <CFSworks@gmail.com>
    3d5e52bd