[U-Boot] [PATCH 4/4] powerpc/85xx & 86xx: Rework ft_fsl_pci_setup to not require aliases

Kumar Gala galak at kernel.crashing.org
Wed Jul 21 07:36:02 CEST 2010


On Jul 9, 2010, at 12:18 AM, Kumar Gala wrote:

> Previously we used an alias the pci node to determine which node to
> fixup or delete.  Now we use the new fdt_node_offset_by_compat_reg to
> find the node to update.
> 
> Additionally, we replace the code in each board with a single macro call
> that makes assumes uniform naming and reduces duplication in this area.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> arch/powerpc/include/asm/fsl_pci.h        |   84 +++++++++++++++++++++++++++-
> board/atum8548/atum8548.c                 |   10 +---
> board/freescale/mpc8536ds/mpc8536ds.c     |   22 +-------
> board/freescale/mpc8544ds/mpc8544ds.c     |   15 +-----
> board/freescale/mpc8548cds/mpc8548cds.c   |    9 +---
> board/freescale/mpc8568mds/mpc8568mds.c   |    9 +---
> board/freescale/mpc8569mds/mpc8569mds.c   |    7 +--
> board/freescale/mpc8572ds/mpc8572ds.c     |   13 +----
> board/freescale/mpc8610hpcd/mpc8610hpcd.c |   12 +----
> board/freescale/mpc8641hpcn/mpc8641hpcn.c |    7 +--
> board/freescale/p1022ds/p1022ds.c         |   18 +------
> board/freescale/p1_p2_rdb/pci.c           |   15 +-----
> board/freescale/p2020ds/p2020ds.c         |   13 +----
> board/sbc8548/sbc8548.c                   |    8 +--
> board/sbc8641d/sbc8641d.c                 |    7 +--
> board/tqc/tqm85xx/tqm85xx.c               |    7 +--
> board/xes/common/fsl_8xxx_pci.c           |   14 +-----
> drivers/pci/fsl_pci_init.c                |   15 ++++--
> 18 files changed, 122 insertions(+), 163 deletions(-)

applied to 85xx

- k


More information about the U-Boot mailing list