Skip to content
  • Lukasz Wiecaszek's avatar
    arm: Check FEAT_CCIDX when parsing ccsidr_el1 register · 95167db3
    Lukasz Wiecaszek authored and Tom Rini's avatar Tom Rini committed
    
    
    Current Cache Size ID Register (ccsidr_el1) has two "flavors"
    depending on whether FEAT_CCIDX is implemented or not.
    When FEAT_CCIDX is implemented Associativity parameter
    is coded on bits [23:3] and NumSets parameter on bits [55:32].
    When FEAT_CCIDX is not implemented then Associativity parameter
    is coded on bits [12:3] and NumSets parameter on bits [27:13].
    Current U-Boot code does not check whether FEAT_CCIDX is implemented
    and always parses ccsidr_el1 as if FEAT_CCIDX was not implemented.
    This is of course wrong on systems where FEAT_CCIDX is implemented.
    This patch fixes that problems and tests whether FEAT_CCIDX
    is implemented or not and accordingly parses the ccsidr_el1 register.
    
    Signed-off-by: default avatarLukasz Wiecaszek <lukasz.wiecaszek@gmail.com>
    95167db3