• Benjamin Herrenschmidt's avatar
    [POWERPC] 4xx: Rework clock probing in boot wrapper · 190de005
    Benjamin Herrenschmidt authored
    This reworks the boot wrapper library function that probes
    the chip clocks. Better separate the base function that is
    used on 440GX,SPe,EP,... from the uart fixups as those need
    different device-tree path on different processors.
    
    Also, rework the function itself based on the arch/ppc code
    from Eugene Surovegin which I find more readable, and which
    handles one more bypass case. Also handle the subtle difference
    between 440EP/EPx and 440SPe/GX, on the former, PerClk is derived
    from the PLB clock while on the later, it's derived from the OPB.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
    190de005
bamboo.c 1.13 KB