Skip to content

PPC LBC/TLB cleanups; reginfo command for 85xx

Becky Bruce u-boot 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest10 patches 0 repliesNew
  2. v5 posting 2/210 patches 0 repliesSuperseded
  3. v5 posting 1/21 patch 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v4 posting 2/21 patch0 repliesSuperseded
v4 posting 1/20 of 10 patches0 repliesSuperseded
v210 patches0 repliesSuperseded
v110 patches0 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10powerpc: Update configs to properly set FSL_ELBCinclude/configs/MPC8313ERDB.h include/configs/MPC8315ERDB.h include/configs/MPC837XEMDS.h +3 more+6 -01 reply
2/10drivers/usb/host/ohci-hcd: undef readl/writel before redefiningdrivers/usb/host/ohci-hcd.c drivers/usb/host/ohci.h+13 -114 replies
3/1083xx/85xx/86xx: LBC register cleanupMakefile arch/powerpc/cpu/mpc83xx/cpu.c arch/powerpc/cpu/mpc83xx/cpu_init.c +50 more+321 -5004 replies
4/10mpc85xx: tlb.c cleanupsarch/powerpc/cpu/mpc85xx/tlb.c arch/powerpc/include/asm/mmu.h+25 -261 reply
5/10mpc85xx: Add print_tlbcam() functionarch/powerpc/cpu/mpc85xx/tlb.c arch/powerpc/include/asm/mmu.h+21 -01 reply
6/10drivers/misc/fsl_law.c: Rearrange code to avoid duplicationarch/powerpc/include/asm/fsl_law.h drivers/misc/fsl_law.c+49 -771 reply
7/10fsl_law.c: Add print_laws() for FSL_CORENET platforms.drivers/misc/fsl_law.c+6 -01 reply
8/10mpc85xx: Add reginfo commandarch/powerpc/cpu/mpc85xx/cpu.c common/cmd_reginfo.c include/configs/MPC8536DS.h +22 more+41 -01 reply
9/10powerpc 83xx/85xx: Merge lbc upmconfig codearch/powerpc/cpu/mpc83xx/cpu.c arch/powerpc/cpu/mpc85xx/cpu.c arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +1 more+53 -1271 reply
10/10MAKEALL: Add missing powerpc 36-bit targetsMAKEALL+2 -01 reply

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchKim Phillips
1/10A-b
2/10
3/10A-b
4/10
5/10
6/10
7/10
8/10
9/10A-b
10/10

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

Read the v6 thread

Cover letter [U-Boot] [PATCH v6 0/10] PPC LBC/TLB cleanups; reginfo command for 85xx

This somewhat random patch series got its start when I was asked to create a reginfo command for 85xx by one of the internal teams here at FSL to dump the BR/ORs, LAWs, and the TLBCAM entries. As I started doing that, I began to notice that there was a lot of duplicated and inconsistent code for manipulating the TLBs and LBC registers, which, in some cases, would have caused me to have to write extra code to make reginfo useful on multiple platforms. So I decided to clean this up. The bulk of these patches are just merges of duplicated code and renames of things to get to a consistent naming scheme.

These really need to be picked up by a single maintainer, as there's a definite dependency chain here; I'll let Kumar and Wolfgang decide who wants it.

Changes from last rev: Fix whitespace, missing signoff, added Kim's Acks.

Diffstat below.

Cheers,
Becky

 MAKEALL                                        |    2 +
 Makefile                                       |    1 +
 arch/powerpc/cpu/mpc83xx/cpu.c                 |   66 ------------
 arch/powerpc/cpu/mpc83xx/cpu_init.c            |   53 ++--------
 arch/powerpc/cpu/mpc83xx/nand_init.c           |    4 +-
 arch/powerpc/cpu/mpc83xx/speed.c               |    2 +-
 arch/powerpc/cpu/mpc85xx/cpu.c                 |   78 +++------------
 arch/powerpc/cpu/mpc85xx/cpu_init.c            |   58 +----------
 arch/powerpc/cpu/mpc85xx/cpu_init_nand.c       |    6 +-
 arch/powerpc/cpu/mpc85xx/speed.c               |    5 +-
 arch/powerpc/cpu/mpc85xx/tlb.c                 |   70 ++++++++-----
 arch/powerpc/cpu/mpc86xx/cpu.c                 |   15 +---
 arch/powerpc/cpu/mpc86xx/cpu_init.c            |   55 +----------
 arch/powerpc/cpu/mpc86xx/speed.c               |    5 +-
 arch/powerpc/cpu/mpc8xxx/Makefile              |    3 +
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c             |  134 ++++++++++++++++++++++++
 arch/powerpc/include/asm/config.h              |    6 +
 arch/powerpc/include/asm/fsl_law.h             |    1 +
 arch/powerpc/include/asm/fsl_lbc.h             |  112 ++++++++++++--------
 arch/powerpc/include/asm/immap_83xx.h          |   13 ++-
 arch/powerpc/include/asm/immap_85xx.h          |   46 +--------
 arch/powerpc/include/asm/immap_86xx.h          |   49 +--------
 arch/powerpc/include/asm/mmu.h                 |    2 +
 board/atum8548/atum8548.c                      |    2 +-
 board/esd/vme8349/vme8349.c                    |    2 +-
 board/freescale/mpc8313erdb/sdram.c            |    2 +-
 board/freescale/mpc8349emds/mpc8349emds.c      |    2 +-
 board/freescale/mpc8349itx/mpc8349itx.c        |    7 +-
 board/freescale/mpc8360emds/mpc8360emds.c      |    6 +-
 board/freescale/mpc8360erdk/nand.c             |    6 +-
 board/freescale/mpc8540ads/mpc8540ads.c        |    8 +-
 board/freescale/mpc8541cds/mpc8541cds.c        |   13 +--
 board/freescale/mpc8544ds/mpc8544ds.c          |    2 +-
 board/freescale/mpc8548cds/mpc8548cds.c        |   13 +--
 board/freescale/mpc8555cds/mpc8555cds.c        |   12 +--
 board/freescale/mpc8560ads/mpc8560ads.c        |    8 +-
 board/freescale/mpc8568mds/mpc8568mds.c        |   11 +--
 board/freescale/mpc8569mds/mpc8569mds.c        |    2 +-
 board/mpc8540eval/mpc8540eval.c                |    6 +-
 board/pm854/pm854.c                            |    2 +-
 board/pm856/pm856.c                            |    2 +-
 board/sbc8349/sbc8349.c                        |    2 +-
 board/sbc8548/sbc8548.c                        |   20 +---
 board/sbc8560/sbc8560.c                        |    6 +-
 board/sheldon/simpc8313/sdram.c                |    2 +-
 board/sheldon/simpc8313/simpc8313.c            |    2 +-
 board/socrates/socrates.c                      |   31 +++---
 board/tqc/tqm834x/tqm834x.c                    |    8 +-
 board/tqc/tqm85xx/nand.c                       |   12 +-
 board/tqc/tqm85xx/tqm85xx.c                    |   35 +++---
 board/xes/xpedite5170/xpedite5170.c            |   10 +-
 board/xes/xpedite5200/xpedite5200.c            |   11 +-
 board/xes/xpedite5370/xpedite5370.c            |    9 +-
 common/cmd_reginfo.c                           |    5 +
 drivers/misc/fsl_law.c                         |  131 ++++++++++--------------
 drivers/mtd/nand/fsl_elbc_nand.c               |   18 ++--
 drivers/usb/host/ohci-hcd.c                    |   11 --
 drivers/usb/host/ohci.h                        |   13 +++
 include/configs/MPC8313ERDB.h                  |    1 +
 include/configs/MPC8315ERDB.h                  |    1 +
 include/configs/MPC837XEMDS.h                  |    1 +
 include/configs/MPC837XERDB.h                  |    1 +
 include/configs/MPC8536DS.h                    |    1 +
 include/configs/MPC8540EVAL.h                  |    1 +
 include/configs/MPC8541CDS.h                   |    1 +
 include/configs/MPC8544DS.h                    |    1 +
 include/configs/MPC8548CDS.h                   |    1 +
 include/configs/MPC8555CDS.h                   |    1 +
 include/configs/MPC8560ADS.h                   |    1 +
 include/configs/MPC8568MDS.h                   |    1 +
 include/configs/MPC8569MDS.h                   |    1 +
 include/configs/MPC8572DS.h                    |    1 +
 include/configs/P1_P2_RDB.h                    |    1 +
 include/configs/P2020DS.h                      |    1 +
 include/configs/PM854.h                        |    1 +
 include/configs/PM856.h                        |    1 +
 include/configs/SBC8540.h                      |    1 +
 include/configs/SIMPC8313.h                    |    1 +
 include/configs/TQM85xx.h                      |    1 +
 include/configs/XPEDITE5200.h                  |    1 +
 include/configs/XPEDITE5370.h                  |    2 +
 include/configs/sbc8548.h                      |    1 +
 include/configs/sbc8560.h                      |    1 +
 include/configs/socrates.h                     |    1 +
 include/configs/stxgp3.h                       |    1 +
 include/configs/stxssa.h                       |    1 +
 include/mpc85xx.h                              |    2 -
 nand_spl/board/freescale/mpc8536ds/nand_boot.c |    5 +-
 nand_spl/nand_boot_fsl_elbc.c                  |    4 +-
 89 files changed, 527 insertions(+), 731 deletions(-)