]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/ixdp425/ixdp425.c
3 * Stefan Roese, DENX Software Engineering, sr@denx.de.
6 * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
9 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
10 * Marius Groeger <mgroeger@sysgo.de>
12 * See file CREDITS for list of people who contributed to this
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 #include <asm/arch/ixp425.h>
36 DECLARE_GLOBAL_DATA_PTR
;
39 * Miscelaneous platform dependent initialisations
41 int board_post_init (void)
48 /* arch number of IXDP */
49 gd
->bd
->bi_arch_number
= MACH_TYPE_IXDP425
;
51 /* adress of boot parameters */
52 gd
->bd
->bi_boot_params
= 0x00000100;
54 #ifdef CONFIG_IXDPG425
55 /* arch number of IXDP */
56 gd
->bd
->bi_arch_number
= MACH_TYPE_IXDPG425
;
59 * Get realtek RTL8305 switch and SLIC out of reset
61 GPIO_OUTPUT_SET(CFG_GPIO_SWITCH_RESET_N
);
62 GPIO_OUTPUT_ENABLE(CFG_GPIO_SWITCH_RESET_N
);
63 GPIO_OUTPUT_SET(CFG_GPIO_SLIC_RESET_N
);
64 GPIO_OUTPUT_ENABLE(CFG_GPIO_SLIC_RESET_N
);
67 * Setup GPIO's for PCI INTA & INTB
69 GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTA_N
);
70 GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTA_N
);
71 GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTB_N
);
72 GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTB_N
);
75 * Setup GPIO's for 33MHz clock output
77 *IXP425_GPIO_GPCLKR
= 0x01FF01FF;
78 GPIO_OUTPUT_ENABLE(CFG_GPIO_PCI_CLK
);
79 GPIO_OUTPUT_ENABLE(CFG_GPIO_EXTBUS_CLK
);
86 * Check Board Identity
90 char *s
= getenv("serial#");
92 #ifdef CONFIG_IXDPG425
93 puts("Board: IXDPG425 - Intel Network Gateway Reference Platform");
95 puts("Board: IXDP425 - Intel Development Platform");
109 gd
->bd
->bi_dram
[0].start
= PHYS_SDRAM_1
;
110 gd
->bd
->bi_dram
[0].size
= PHYS_SDRAM_1_SIZE
;
115 #if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI)
116 extern struct pci_controller hose
;
117 extern void pci_ixp_init(struct pci_controller
* hose
);
119 void pci_init_board(void)
121 extern void pci_ixp_init (struct pci_controller
*hose
);