• Andre Przywara's avatar
    arm_fpga: Adjust GICR size in DT to match number of cores · 283e5595
    Andre Przywara authored
    
    
    The size of a GICv3 redistributor region depends on the number of
    cores in the system. For the ARM FPGA port, we detect the topology at
    runtime, and adjust the CPU DT nodes accordingly.
    Now the size of the GICR region must also be adjusted, or Linux will
    fail to initialise the GICv3.
    
    Use the newly introduced function to overwrite the GICR size entry in
    the GICv3 reg property. We count the number of existing cores by
    iterating over the GICR frames until we find the LAST bit set in TYPER.
    
    Change-Id: Ib69565600859de9b1b15ceb8495172cd26d16fce
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    283e5595
fpga_gicv3.c 2.14 KB