[U-Boot] [PATCH V6 03/10] 83xx/85xx/86xx: LBC register cleanup

Kumar Gala kumar.gala at freescale.com
Thu Jul 1 05:18:52 CEST 2010


On Jun 17, 2010, at 11:37 AM, Becky Bruce wrote:

> Currently, 83xx, 86xx, and 85xx have a lot of duplicated code
> dedicated to defining and manipulating the LBC registers.  Merge
> this into a single spot.
> 
> To do this, we have to decide on a common name for the data structure
> that holds the lbc registers - it will now be known as fsl_lbc_t, and we
> adopt a common name for the immap layouts that include the lbc - this was
> previously known as either im_lbc or lbus; use the former.
> 
> In addition, create accessors for the BR/OR regs that use in/out_be32
> and use those instead of the mismash of access methods currently in play.
> 
> I have done a successful ppc build all and tested a board or two from
> each processor family.
> 
> Signed-off-by: Becky Bruce <beckyb at kernel.crashing.org>
> Acked-by: Kim Phillips <kim.phillips at freescale.com>
> ---
> Makefile                                       |    1 +
> arch/powerpc/cpu/mpc83xx/cpu.c                 |   12 ++--
> 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                 |   12 +--
> 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/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             |   84 ++++++++++++++++++
> arch/powerpc/include/asm/config.h              |    6 ++
> arch/powerpc/include/asm/fsl_lbc.h             |  109 ++++++++++++++----------
> arch/powerpc/include/asm/immap_83xx.h          |   13 ++--
> arch/powerpc/include/asm/immap_85xx.h          |   46 +----------
> arch/powerpc/include/asm/immap_86xx.h          |   49 +----------
> 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 +-
> drivers/mtd/nand/fsl_elbc_nand.c               |   18 ++---
> include/mpc85xx.h                              |    2 -
> nand_spl/board/freescale/mpc8536ds/nand_boot.c |    5 +-
> nand_spl/nand_boot_fsl_elbc.c                  |    4 +-
> 53 files changed, 321 insertions(+), 500 deletions(-)
> create mode 100644 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c

applied to 85xx

- k



More information about the U-Boot mailing list