瀏覽代碼

Merge with git://www.denx.de/git/u-boot.git

Peter Pearse 17 年之前
父節點
當前提交
1fc11f736c
共有 3 個文件被更改,包括 13 次插入4 次删除
  1. 6 3
      board/stxssa/stxssa.c
  2. 1 1
      include/configs/stxssa.h
  3. 6 0
      nand_spl/board/amcc/bamboo/Makefile

+ 6 - 3
board/stxssa/stxssa.c

@@ -378,9 +378,12 @@ static struct pci_config_table pci_stxgp3_config_table[] = {
 #endif
 #endif
 
 
 
 
-static struct pci_controller hose = {
+static struct pci_controller hose[] = {
 #ifndef CONFIG_PCI_PNP
 #ifndef CONFIG_PCI_PNP
-	config_table: pci_stxgp3_config_table,
+	{ config_table: pci_stxgp3_config_table,},
+#ifdef CONFIG_MPC85XX_PCI2
+	{},
+#endif
 #endif
 #endif
 };
 };
 
 
@@ -393,6 +396,6 @@ pci_init_board(void)
 #ifdef CONFIG_PCI
 #ifdef CONFIG_PCI
 	extern void pci_mpc85xx_init(struct pci_controller *hose);
 	extern void pci_mpc85xx_init(struct pci_controller *hose);
 
 
-	pci_mpc85xx_init(&hose);
+	pci_mpc85xx_init(hose);
 #endif /* CONFIG_PCI */
 #endif /* CONFIG_PCI */
 }
 }

+ 1 - 1
include/configs/stxssa.h

@@ -230,7 +230,7 @@
 #define CFG_PCI2_IO_SIZE	0x01000000	/* 16M */
 #define CFG_PCI2_IO_SIZE	0x01000000	/* 16M */
 
 
 #if defined(CONFIG_PCI) 		/* PCI Ethernet card */
 #if defined(CONFIG_PCI) 		/* PCI Ethernet card */
-
+#define CONFIG_MPC85XX_PCI2	1
 #define CONFIG_NET_MULTI
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP			/* do pci plug-and-play */
 #define CONFIG_PCI_PNP			/* do pci plug-and-play */
 
 

+ 6 - 0
nand_spl/board/amcc/bamboo/Makefile

@@ -84,6 +84,12 @@ $(obj)nand_ecc.c:
 	@rm -f $(obj)nand_ecc.c
 	@rm -f $(obj)nand_ecc.c
 	ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
 	ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
 
 
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)sdram.c:
+	@rm -f $(obj)sdram.c
+	ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/sdram.c $(obj)sdram.c
+endif
+
 #########################################################################
 #########################################################################
 
 
 $(obj)%.o:	$(obj)%.S
 $(obj)%.o:	$(obj)%.S