提交 ea339205 编写于 作者: S Stefan Roese

Updated PCI mapping for esd CPCI2DP board.

Add support for error LED.
Patch by Matthias Fuchs, 07 Nov 2005
上级 527b5a51
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
Changes for U-Boot 1.1.4: Changes for U-Boot 1.1.4:
====================================================================== ======================================================================
* Updated PCI mapping for esd CPCI2DP board.
Add support for error LED.
Patch by Matthias Fuchs, 07 Nov 2005
* Fix MPC85xx PCI support (pci_register_hose() before pci config access) * Fix MPC85xx PCI support (pci_register_hose() before pci config access)
Patch by Stefan Roese, 07 Nov 2005 Patch by Stefan Roese, 07 Nov 2005
......
...@@ -31,14 +31,17 @@ int board_early_init_f (void) ...@@ -31,14 +31,17 @@ int board_early_init_f (void)
unsigned long cntrl0Reg; unsigned long cntrl0Reg;
/* /*
* Setup GPIO pins (CS4 as GPIO) * Setup GPIO pins (CS4+CS7 as GPIO)
*/ */
cntrl0Reg = mfdcr(cntrl0); cntrl0Reg = mfdcr(cntrl0);
mtdcr(cntrl0, cntrl0Reg | 0x00800000); mtdcr(cntrl0, cntrl0Reg | 0x00900000);
out32(GPIO0_OR, CFG_INTA_FAKE | CFG_EEPROM_WP); /* set output pins to high */ /* set output pins to high */
out32(GPIO0_ODR, CFG_INTA_FAKE); /* INTA# is open drain */ out32(GPIO0_OR, CFG_INTA_FAKE | CFG_EEPROM_WP | CFG_PB_LED);
out32(GPIO0_TCR, CFG_INTA_FAKE | CFG_EEPROM_WP); /* setup for output */ /* INTA# is open drain */
out32(GPIO0_ODR, CFG_INTA_FAKE);
/* setup for output */
out32(GPIO0_TCR, CFG_INTA_FAKE | CFG_EEPROM_WP);
/* /*
* IRQ 0-15 405GP internally generated; active high; level sensitive * IRQ 0-15 405GP internally generated; active high; level sensitive
......
...@@ -146,9 +146,9 @@ ...@@ -146,9 +146,9 @@
#define CFG_PCI_PTM1LA 0x00000000 /* point to sdram */ #define CFG_PCI_PTM1LA 0x00000000 /* point to sdram */
#define CFG_PCI_PTM1MS 0xfc000001 /* 64MB, enable hard-wired to 1 */ #define CFG_PCI_PTM1MS 0xfc000001 /* 64MB, enable hard-wired to 1 */
#define CFG_PCI_PTM1PCI 0x00000000 /* Host: use this pci address */ #define CFG_PCI_PTM1PCI 0x00000000 /* Host: use this pci address */
#define CFG_PCI_PTM2LA 0xef600000 /* point to internal regs + PB0/1 */ #define CFG_PCI_PTM2LA 0xef000000 /* point to internal regs + PB0/1 */
#define CFG_PCI_PTM2MS 0xff000001 /* 16MB, enable */ #define CFG_PCI_PTM2MS 0xff000001 /* 16MB, enable */
#define CFG_PCI_PTM2PCI 0x04000000 /* Host: use this pci address */ #define CFG_PCI_PTM2PCI 0x00000000 /* Host: use this pci address */
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------
* Start addresses for the final memory configuration * Start addresses for the final memory configuration
...@@ -237,11 +237,11 @@ ...@@ -237,11 +237,11 @@
/* Memory Bank 2 (PB0) initialization */ /* Memory Bank 2 (PB0) initialization */
#define CFG_EBC_PB2AP 0x03004580 /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */ #define CFG_EBC_PB2AP 0x03004580 /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
#define CFG_EBC_PB2CR 0xF0018000 /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit */ #define CFG_EBC_PB2CR 0xEF018000 /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit */
/* Memory Bank 3 (PB1) initialization */ /* Memory Bank 3 (PB1) initialization */
#define CFG_EBC_PB3AP 0x03004580 /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */ #define CFG_EBC_PB3AP 0x03004580 /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
#define CFG_EBC_PB3CR 0xF0118000 /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit */ #define CFG_EBC_PB3CR 0xEF118000 /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit */
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------
* Definitions for initial stack pointer and data area (in data cache) * Definitions for initial stack pointer and data area (in data cache)
...@@ -258,6 +258,7 @@ ...@@ -258,6 +258,7 @@
* GPIO definitions * GPIO definitions
*/ */
#define CFG_EEPROM_WP (0x80000000 >> 13) /* GPIO13 */ #define CFG_EEPROM_WP (0x80000000 >> 13) /* GPIO13 */
#define CFG_PB_LED (0x80000000 >> 16) /* GPIO16 */
#define CFG_INTA_FAKE (0x80000000 >> 23) /* GPIO23 */ #define CFG_INTA_FAKE (0x80000000 >> 23) /* GPIO23 */
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册