Skip to content

powerpc/mpc86xx: Fix BAT register setup

Becky Bruce u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/mpc8641hpcn: fix SRIO BAT configinclude/configs/MPC8641HPCN.h+0 -51 reply
2/2powerpc/mpc86xx: Disable translation for BAT setuparch/powerpc/cpu/mpc86xx/cpu_init.c arch/powerpc/cpu/mpc86xx/start.S include/configs/MPC8641HPCN.h +1 more+142 -791 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchYork Sun
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] powerpc/mpc86xx: Fix BAT register setup

This set of 2 patches fixes the BAT register setup on mpc86xx. Currently, we overwrite a BAT register while running out of it which is dangerous and can cause problems like the system going into the weeds.

The first patch cleans up the SRIO config information used for setup of the SRIO BAT registers - there were duplicate defines there. The second changes the method used for setting up BATs to disable translation while we do the setup.

We have tested this on mpc8641, and I believe it is safe for the other 86xx platforms like the sbc, but I'd appreciate input.

Cheers,
Becky

 arch/powerpc/cpu/mpc86xx/cpu_init.c |   28 --------
 arch/powerpc/cpu/mpc86xx/start.S    |   69 ++++++++++++++++++-
 include/configs/MPC8641HPCN.h       |  128 ++++++++++++++++++++---------------
 include/mpc86xx.h                   |    1 +
 4 files changed, 142 insertions(+), 84 deletions(-)