• Andre Przywara's avatar
    plat: rpi4: Skip UART initialisation · 0eda713b
    Andre Przywara authored
    
    
    So far we have seen two different clock setups for the Raspberry Pi 4
    board, with the VPU clock divider being different. This was handled by
    reading the divider register and adjusting the base clock rate
    accordingly.
    Recently a new GPU firmware version appeared that changed the clock rate
    *again*, though this time at a higher level, so the VPU rate (and the
    apparent PLLC parent clock) did not seem to change, judging by reading
    the clock registers.
    So rather than playing cat and mouse with the GPU firmware or going
    further down the rabbit hole of exploring the whole clock tree, let's
    just skip the baud rate programming altogether. This works because the
    GPU firmware actually sets up and programs the debug UART already, so
    we can just use it.
    
    Pass 0 as the base clock rate to let the console driver skip the setup,
    also remove the no longer needed clock code.
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    Change-Id: Ica88a3f3c9c11059357c1e6dd8f7a4d9b1f98fd7
    0eda713b
rpi4_bl31_setup.c 7.82 KB