projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
board/bsc9131rdb:Add NAND boot support using new SPL format
[oweals/u-boot.git]
/
board
/
eltec
/
elppc
/
pci.c
diff --git
a/board/eltec/elppc/pci.c
b/board/eltec/elppc/pci.c
index 07158e67867f9299729a1aff911fa5226c3635c6..29485319a5aabab9e28327bd2566185243a07826 100644
(file)
--- a/
board/eltec/elppc/pci.c
+++ b/
board/eltec/elppc/pci.c
@@
-33,7
+33,7
@@
struct pci_controller local_hose;
struct pci_controller local_hose;
-void pci_init(void)
+void pci_init
_board
(void)
{
struct pci_controller* hose = (struct pci_controller *)&local_hose;
u16 reg16;
{
struct pci_controller* hose = (struct pci_controller *)&local_hose;
u16 reg16;
@@
-42,44
+42,44
@@
void pci_init(void)
hose->last_busno = 0xff;
pci_set_region(hose->regions + 0,
hose->last_busno = 0xff;
pci_set_region(hose->regions + 0,
-
CFG
_PCI_MEMORY_BUS,
-
CFG
_PCI_MEMORY_PHYS,
-
CFG
_PCI_MEMORY_SIZE,
-
PCI_REGION_MEM | PCI_REGION
_MEMORY);
+
CONFIG_SYS
_PCI_MEMORY_BUS,
+
CONFIG_SYS
_PCI_MEMORY_PHYS,
+
CONFIG_SYS
_PCI_MEMORY_SIZE,
+
PCI_REGION_MEM | PCI_REGION_SYS
_MEMORY);
/* PCI memory space */
pci_set_region(hose->regions + 1,
/* PCI memory space */
pci_set_region(hose->regions + 1,
-
CFG
_PCI_MEM_BUS,
-
CFG
_PCI_MEM_PHYS,
-
CFG
_PCI_MEM_SIZE,
-
PCI_REGION_MEM);
+
CONFIG_SYS
_PCI_MEM_BUS,
+
CONFIG_SYS
_PCI_MEM_PHYS,
+
CONFIG_SYS
_PCI_MEM_SIZE,
+ PCI_REGION_MEM);
/* ISA/PCI memory space */
pci_set_region(hose->regions + 2,
/* ISA/PCI memory space */
pci_set_region(hose->regions + 2,
-
CFG
_ISA_MEM_BUS,
-
CFG
_ISA_MEM_PHYS,
-
CFG
_ISA_MEM_SIZE,
-
PCI_REGION_MEM);
+
CONFIG_SYS
_ISA_MEM_BUS,
+
CONFIG_SYS
_ISA_MEM_PHYS,
+
CONFIG_SYS
_ISA_MEM_SIZE,
+ PCI_REGION_MEM);
/* PCI I/O space */
pci_set_region(hose->regions + 3,
/* PCI I/O space */
pci_set_region(hose->regions + 3,
-
CFG
_PCI_IO_BUS,
-
CFG
_PCI_IO_PHYS,
-
CFG
_PCI_IO_SIZE,
-
PCI_REGION_IO);
+
CONFIG_SYS
_PCI_IO_BUS,
+
CONFIG_SYS
_PCI_IO_PHYS,
+
CONFIG_SYS
_PCI_IO_SIZE,
+ PCI_REGION_IO);
/* ISA/PCI I/O space */
pci_set_region(hose->regions + 4,
/* ISA/PCI I/O space */
pci_set_region(hose->regions + 4,
-
CFG
_ISA_IO_BUS,
-
CFG
_ISA_IO_PHYS,
-
CFG
_ISA_IO_SIZE,
-
PCI_REGION_IO);
+
CONFIG_SYS
_ISA_IO_BUS,
+
CONFIG_SYS
_ISA_IO_PHYS,
+
CONFIG_SYS
_ISA_IO_SIZE,
+ PCI_REGION_IO);
hose->region_count = 5;
pci_setup_indirect(hose,
hose->region_count = 5;
pci_setup_indirect(hose,
-
MPC106_REG_ADDR,
-
MPC106_REG_DATA);
+ MPC106_REG_ADDR,
+ MPC106_REG_DATA);
pci_register_hose(hose);
pci_register_hose(hose);