mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI
PATCH 1/1 mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI
Signed-off-by Kim Phillips <[email protected]>
--- board/freescale/mpc832xemds/Makefile | 4 +- board/freescale/mpc832xemds/pci.c | 285 +++++++------------------- board/freescale/mpc8349emds/Makefile | 4 +- board/freescale/mpc8349emds/pci.c | 6 +- board/freescale/mpc8349itx/Makefile | 4 +- board/freescale/mpc8349itx/pci.c | 361 +++++---------------------------- board/freescale/mpc8360emds/Makefile | 4 +- board/freescale/mpc8360emds/pci.c | 287 +++++++-------------------- board/freescale/mpc837xemds/Makefile | 4 +- board/freescale/mpc837xemds/pci.c | 4 +- board/freescale/mpc837xerdb/Makefile | 4 +- board/freescale/mpc837xerdb/pci.c | 4 +- board/sbc8349/Makefile | 4 +- board/sbc8349/pci.c | 340 +++----------------------------- board/tqc/tqm834x/Makefile | 4 +- board/tqc/tqm834x/pci.c | 213 +++----------------- include/configs/MPC832XEMDS.h | 32 ++-- include/configs/MPC8349ITX.h | 1 + include/configs/MPC8360EMDS.h | 28 ++-- include/configs/TQM834x.h | 14 +- include/configs/sbc8349.h | 1 + 21 files changed, 342 insertions(+), 1266 deletions(-)
board/freescale/mpc832xemds/Makefile +3 -1
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc832xemds/pci.c +77 -208
334 lines not on this page · raw message
board/freescale/mpc8349emds/Makefile +3 -1
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc8349emds/pci.c +2 -4
@@ -1,4 +1,6 @@/* +* Copyright (C) 2006-2009 Freescale Semiconductor, Inc. +* * See file CREDITS for list of people who contributed to this * project. *
@@ -29,8 +31,6 @@DECLARE_GLOBAL_DATA_PTR ; -#ifdef CONFIG_PCI -static struct pci_region pci1_regions[] = { { bus_start:CONFIG_SYS_PCI1_MEM_BASE ,
@@ -207,5 +207,3 @@ void pci_init_board(void) printf("PCI: Agent mode enabled\n"); }#endif /* CONFIG_PCISLAVE */ - -#endif /* CONFIG_PCI */
board/freescale/mpc8349itx/Makefile +3 -1
@@ -24,8 +24,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc8349itx/pci.c +55 -306
401 lines not on this page · raw message
board/freescale/mpc8360emds/Makefile +3 -1
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc8360emds/pci.c +77 -210
337 lines not on this page · raw message
board/freescale/mpc837xemds/Makefile +3 -1
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc837xemds/pci.c +1 -3
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007 Freescale Semiconductor, Inc. +* Copyright (C) 2006-2009 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project.
@@ -20,7 +20,6 @@#include <asm/fsl_i2c.h> #include <asm/fsl_serdes.h> -#if defined(CONFIG_PCI)static struct pci_region pci_regions[] = { { bus_start:CONFIG_SYS_PCI_MEM_BASE ,
@@ -152,4 +151,3 @@ void ft_pcie_fixup(void *blob, bd_t *bd)do_fixup_by_path (blob,"pci2" ,"status" , status,strlen (status) +1 ,1 ); } -#endif /* CONFIG_PCI */
board/freescale/mpc837xerdb/Makefile +3 -1
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/freescale/mpc837xerdb/pci.c +1 -3
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007 Freescale Semiconductor, Inc. +* Copyright (C) 2006-2009 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project.
@@ -15,7 +15,6 @@#include <pci.h> #include <asm/io.h> -#if defined(CONFIG_PCI)static struct pci_region pci_regions[] = { { bus_start:CONFIG_SYS_PCI_MEM_BASE ,
@@ -113,4 +112,3 @@ void pci_init_board(void)mpc83xx_pcie_init (2 , pcie_reg,0 ); } -#endif /* CONFIG_PCI */
board/sbc8349/Makefile +3 -1
@@ -24,8 +24,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/sbc8349/pci.c +31 -309
376 lines not on this page · raw message
board/tqc/tqm834x/Makefile +3 -1
@@ -27,8 +27,10 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS = $(BOARD).o pci.o +COBJS-y += $(BOARD).o +COBJS-$(CONFIG_PCI) += pci.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/tqc/tqm834x/pci.c +32 -181
254 lines not on this page · raw message
include/configs/MPC832XEMDS.h +16 -16
@@ -315,15 +315,15 @@* General PCI * Addresses are mapped 1-1. */ -#define CONFIG_SYS_PCI_MEM_BASE 0x80000000 -#define CONFIG_SYS_PCI_MEM_PHYS CONFIG_SYS_PCI_MEM_BASE -#define CONFIG_SYS_PCI_MEM_SIZE 0x10000000/* 256M */ -#define CONFIG_SYS_PCI_MMIO_BASE 0x90000000 -#define CONFIG_SYS_PCI_MMIO_PHYS CONFIG_SYS_PCI_MMIO_BASE -#define CONFIG_SYS_PCI_MMIO_SIZE 0x10000000/* 256M */ -#define CONFIG_SYS_PCI_IO_BASE 0x00000000 -#define CONFIG_SYS_PCI_IO_PHYS 0xE0300000 -#define CONFIG_SYS_PCI_IO_SIZE 0x100000/* 1M */ +#define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 +#define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE +#define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000/* 256M */ +#define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000 +#define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE +#define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000/* 256M */ +#define CONFIG_SYS_PCI1_IO_BASE 0x00000000 +#define CONFIG_SYS_PCI1_IO_PHYS 0xE0300000 +#define CONFIG_SYS_PCI1_IO_SIZE 0x100000/* 1M */ #define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE#define CONFIG_SYS_PCI_SLV_MEM_BUS 0x00000000
@@ -334,6 +334,8 @@#define CONFIG_NET_MULTI #define CONFIG_PCI_PNP /* do pci plug-and-play */ +#define CONFIG_83XX_GENERIC_PCI +#define CONFIG_83XX_PCI_STREAMING #undef CONFIG_EEPRO100#undef CONFIG_PCI_SCAN_SHOW/* show pci devices on startup */
@@ -500,14 +502,14 @@#ifdef CONFIG_PCI /* PCI MEM space: cacheable */ -#define CONFIG_SYS_IBAT6L (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE) -#define CONFIG_SYS_IBAT6U (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT6L (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE) +#define CONFIG_SYS_IBAT6U (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)#define CONFIG_SYS_DBAT6L CONFIG_SYS_IBAT6L#define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U/* PCI MMIO space: cache-inhibit and guarded */ -#define CONFIG_SYS_IBAT7L (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \ +#define CONFIG_SYS_IBAT7L (CONFIG_SYS_PCI1_MMIO_PHYS | BATL_PP_10 | \ BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_IBAT7U (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT7U (CONFIG_SYS_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)#define CONFIG_SYS_DBAT7L CONFIG_SYS_IBAT7L#define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U#else
@@ -536,9 +538,7 @@/* * Environment Configuration -*/ - -#define CONFIG_ENV_OVERWRITE +*/ #define CONFIG_ENV_OVERWRITE #if defined(CONFIG_UEC_ETH )#define CONFIG_HAS_ETH0
include/configs/MPC8349ITX.h +1 -0
@@ -382,6 +382,7 @@ boards, we say we have two, but don't display a message if we find only one. */#define CONFIG_NET_MULTI #define CONFIG_PCI_PNP /* do pci plug-and-play */ +#define CONFIG_83XX_GENERIC_PCI #ifndef CONFIG_PCI_PNP #define PCI_ENET0_IOADDR 0x00000000
include/configs/MPC8360EMDS.h +15 -13
@@ -350,15 +350,15 @@* General PCI * Addresses are mapped 1-1. */ -#define CONFIG_SYS_PCI_MEM_BASE 0x80000000 -#define CONFIG_SYS_PCI_MEM_PHYS CONFIG_SYS_PCI_MEM_BASE -#define CONFIG_SYS_PCI_MEM_SIZE 0x10000000/* 256M */ -#define CONFIG_SYS_PCI_MMIO_BASE 0x90000000 -#define CONFIG_SYS_PCI_MMIO_PHYS CONFIG_SYS_PCI_MMIO_BASE -#define CONFIG_SYS_PCI_MMIO_SIZE 0x10000000/* 256M */ -#define CONFIG_SYS_PCI_IO_BASE 0x00000000 -#define CONFIG_SYS_PCI_IO_PHYS 0xE0300000 -#define CONFIG_SYS_PCI_IO_SIZE 0x100000/* 1M */ +#define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 +#define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE +#define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000/* 256M */ +#define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000 +#define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE +#define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000/* 256M */ +#define CONFIG_SYS_PCI1_IO_BASE 0x00000000 +#define CONFIG_SYS_PCI1_IO_PHYS 0xE0300000 +#define CONFIG_SYS_PCI1_IO_SIZE 0x100000/* 1M */ #define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE#define CONFIG_SYS_PCI_SLV_MEM_BUS 0x00000000
@@ -369,6 +369,8 @@#define CONFIG_NET_MULTI #define CONFIG_PCI_PNP /* do pci plug-and-play */ +#define CONFIG_83XX_GENERIC_PCI +#define CONFIG_83XX_PCI_STREAMING #undef CONFIG_EEPRO100#undef CONFIG_PCI_SCAN_SHOW/* show pci devices on startup */
@@ -539,14 +541,14 @@#ifdef CONFIG_PCI /* PCI MEM space: cacheable */ -#define CONFIG_SYS_IBAT6L (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE) -#define CONFIG_SYS_IBAT6U (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT6L (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE) +#define CONFIG_SYS_IBAT6U (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)#define CONFIG_SYS_DBAT6L CONFIG_SYS_IBAT6L#define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U/* PCI MMIO space: cache-inhibit and guarded */ -#define CONFIG_SYS_IBAT7L (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \ +#define CONFIG_SYS_IBAT7L (CONFIG_SYS_PCI1_MMIO_PHYS | BATL_PP_10 | \ BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_IBAT7U (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT7U (CONFIG_SYS_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)#define CONFIG_SYS_DBAT7L CONFIG_SYS_IBAT7L#define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U#else
include/configs/TQM834x.h +9 -5
@@ -247,12 +247,16 @@ extern int tqm834x_num_flash_banks;#if defined(CONFIG_PCI )#define CONFIG_PCI_PNP /* do pci plug-and-play */ +#define CONFIG_83XX_GENERIC_PCI #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ /* PCI1 host bridge */ -#define CONFIG_SYS_PCI1_MEM_BASE 0xc0000000 +#define CONFIG_SYS_PCI1_MEM_BASE 0x80000000#define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE -#define CONFIG_SYS_PCI1_MEM_SIZE 0x20000000/* 512M */ +#define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000/* 256M */ +#define CONFIG_SYS_PCI1_MMIO_BASE (CONFIG_SYS_PCI1_MEM_BASE + CONFIG_SYS_PCI1_MEM_SIZE) +#define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE +#define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000/* 256M */ #define CONFIG_SYS_PCI1_IO_BASE 0xe2000000#define CONFIG_SYS_PCI1_IO_PHYS CONFIG_SYS_PCI1_IO_BASE#define CONFIG_SYS_PCI1_IO_SIZE 0x1000000/* 16M */
@@ -418,10 +422,10 @@ extern int tqm834x_num_flash_banks;#ifdef CONFIG_PCI #define CONFIG_SYS_IBAT3L (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)#define CONFIG_SYS_IBAT3U (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) -#define CONFIG_SYS_IBAT4L (CONFIG_SYS_PCI1_MEM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE) -#define CONFIG_SYS_IBAT4U (CONFIG_SYS_PCI1_MEM_BASE + 0x10000000 | BATU_BL_256M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT4L (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_MEMCOHERENCE | BATL_GUARDEDSTORAGE) +#define CONFIG_SYS_IBAT4U (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)#define CONFIG_SYS_IBAT5L (CONFIG_SYS_PCI1_IO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_IBAT5U (CONFIG_SYS_PCI1_IO_BASE + 0x10000000 | BATU_BL_16M | BATU_VS | BATU_VP) +#define CONFIG_SYS_IBAT5U (CONFIG_SYS_PCI1_IO_BASE | BATU_BL_16M | BATU_VS | BATU_VP)#else #define CONFIG_SYS_IBAT3L (0)#define CONFIG_SYS_IBAT3U (0)
include/configs/sbc8349.h +1 -0
@@ -329,6 +329,7 @@#define CONFIG_NET_MULTI #define CONFIG_PCI_PNP /* do pci plug-and-play */ +#define CONFIG_83XX_GENERIC_PCI #undef CONFIG_EEPRO100#undef CONFIG_TULIP
Signature · 1 line
1.6.3