|
@@ -85,10 +85,27 @@
|
|
|
/*
|
|
|
* System IO Config
|
|
|
*/
|
|
|
-#define CONFIG_SYS_SICRH 0x01b7d103
|
|
|
-#define CONFIG_SYS_SICRL 0x00000040 /* 3.3V, no delay */
|
|
|
-
|
|
|
-#define CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */
|
|
|
+#define CONFIG_SYS_SICRH (\
|
|
|
+ SICRH_ESDHC_A_SD |\
|
|
|
+ SICRH_ESDHC_B_SD |\
|
|
|
+ SICRH_ESDHC_C_SD |\
|
|
|
+ SICRH_GPIO_A_TSEC2 |\
|
|
|
+ SICRH_GPIO_B_TSEC2_GTX_CLK125 |\
|
|
|
+ SICRH_IEEE1588_A_GPIO |\
|
|
|
+ SICRH_USB |\
|
|
|
+ SICRH_GTM_GPIO |\
|
|
|
+ SICRH_IEEE1588_B_GPIO |\
|
|
|
+ SICRH_ETSEC2_CRS |\
|
|
|
+ SICRH_GPIOSEL_1 |\
|
|
|
+ SICRH_TMROBI_V3P3 |\
|
|
|
+ SICRH_TSOBI1_V2P5 |\
|
|
|
+ SICRH_TSOBI2_V2P5) /* 0x01b7d103 */
|
|
|
+#define CONFIG_SYS_SICRL (\
|
|
|
+ SICRL_SPI_PF0 |\
|
|
|
+ SICRL_UART_PF0 |\
|
|
|
+ SICRL_IRQ_PF0 |\
|
|
|
+ SICRL_I2C2_PF0 |\
|
|
|
+ SICRL_ETSEC1_GTX_CLK125) /* 0x00000040 */
|
|
|
|
|
|
/*
|
|
|
* IMMR new address
|
|
@@ -218,7 +235,7 @@
|
|
|
|
|
|
/* Window base at flash base */
|
|
|
#define CONFIG_SYS_LBLAWBAR0_PRELIM CONFIG_SYS_FLASH_BASE
|
|
|
-#define CONFIG_SYS_LBLAWAR0_PRELIM 0x80000016 /* 8MB window size */
|
|
|
+#define CONFIG_SYS_LBLAWAR0_PRELIM (LBLAWAR_EN | LBLAWAR_8MB)
|
|
|
|
|
|
#define CONFIG_SYS_BR0_PRELIM (\
|
|
|
CONFIG_SYS_FLASH_BASE /* Flash Base address */ |\
|
|
@@ -260,7 +277,7 @@
|
|
|
/* 0xFFFF8396 */
|
|
|
|
|
|
#define CONFIG_SYS_LBLAWBAR1_PRELIM CONFIG_SYS_NAND_BASE
|
|
|
-#define CONFIG_SYS_LBLAWAR1_PRELIM 0x8000000E /* 32KB */
|
|
|
+#define CONFIG_SYS_LBLAWAR1_PRELIM (LBLAWAR_EN | LBLAWAR_32KB)
|
|
|
|
|
|
#ifdef CONFIG_VSC7385_ENET
|
|
|
#define CONFIG_TSEC2
|
|
@@ -270,7 +287,7 @@
|
|
|
/* Access window base at VSC7385 base */
|
|
|
#define CONFIG_SYS_LBLAWBAR2_PRELIM CONFIG_SYS_VSC7385_BASE
|
|
|
/* Access window size 128K */
|
|
|
-#define CONFIG_SYS_LBLAWAR2_PRELIM 0x80000010
|
|
|
+#define CONFIG_SYS_LBLAWAR2_PRELIM (LBLAWAR_EN | LBLAWAR_128KB)
|
|
|
/* The flash address and size of the VSC7385 firmware image */
|
|
|
#define CONFIG_VSC7385_IMAGE 0xFE7FE000
|
|
|
#define CONFIG_VSC7385_IMAGE_SIZE 8192
|
|
@@ -335,19 +352,8 @@
|
|
|
#define CONFIG_SYS_PCIE1_IO_PHYS 0xB1000000
|
|
|
#define CONFIG_SYS_PCIE1_IO_SIZE 0x00800000
|
|
|
|
|
|
-/*
|
|
|
- * Fake PCIE2 definitions: there is no PCIE2 on this board but the code
|
|
|
- * in arch/powerpc/cpu/mpc83xx/pcie.c doesn't compile without this
|
|
|
- */
|
|
|
-#define CONFIG_SYS_PCIE2_BASE 0xC0000000
|
|
|
-#define CONFIG_SYS_PCIE2_MEM_BASE 0xC0000000
|
|
|
-#define CONFIG_SYS_PCIE2_MEM_PHYS 0xC0000000
|
|
|
-#define CONFIG_SYS_PCIE2_MEM_SIZE 0x10000000
|
|
|
-#define CONFIG_SYS_PCIE2_CFG_BASE 0xD0000000
|
|
|
-#define CONFIG_SYS_PCIE2_CFG_SIZE 0x01000000
|
|
|
-#define CONFIG_SYS_PCIE2_IO_BASE 0x00000000
|
|
|
-#define CONFIG_SYS_PCIE2_IO_PHYS 0xD1000000
|
|
|
-#define CONFIG_SYS_PCIE2_IO_SIZE 0x00800000
|
|
|
+/* enable PCIE clock */
|
|
|
+#define CONFIG_SYS_SCCR_PCIEXP1CM 1
|
|
|
|
|
|
#define CONFIG_PCI
|
|
|
#define CONFIG_PCIE
|