• Stephen Warren's avatar
    ARM: implement some Cortex-A9 errata workarounds · 0678587f
    Stephen Warren authored
    Various errata exist in the Cortex-A9 CPU, and may be worked around by
    setting some bits in a CP15 diagnostic register. Add code to implement
    the workarounds, enabled by new CONFIG_ options.
    This code was taken from the Linux kernel, v3.8, arch/arm/mm/proc-v7.S,
    and modified to remove the logic to conditionally apply the WAR (since we
    know exactly which CPU we're running on given the U-Boot configuration),
    and use r0 instead of r10 for consistency with the rest of U-Boot's
    Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
    Acked-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>