3 * Michael Schwingen, michael@schwingen.org
6 * Stefan Roese, DENX Software Engineering, sr@denx.de.
9 * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
12 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
13 * Marius Groeger <mgroeger@sysgo.de>
15 * See file CREDITS for list of people who contributed to this
18 * This program is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU General Public License as
20 * published by the Free Software Foundation; either version 2 of
21 * the License, or (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
37 #include <asm/arch/ixp425.h>
42 #include <asm/arch/ixp425pci.h>
45 #include "actux4_hw.h"
47 DECLARE_GLOBAL_DATA_PTR;
49 int board_early_init_f(void)
51 writel(0xbd113c42, IXP425_EXP_CS1);
57 gd->bd->bi_arch_number = MACH_TYPE_ACTUX4;
59 /* adress of boot parameters */
60 gd->bd->bi_boot_params = 0x00000100;
62 GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_nPWRON);
63 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_nPWRON);
65 GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_IORST);
66 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_IORST);
68 /* led not populated on board*/
69 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_LED3);
70 GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_LED3);
73 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_LED2);
74 GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_LED2);
77 /* weak pulldown = LED weak on */
78 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_LED1);
79 GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_LED1);
81 /* Setup GPIO's for Interrupt inputs */
82 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_USBINTA);
83 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_USBINTB);
84 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_USBINTC);
85 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_RTCINT);
86 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTA);
87 GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTB);
89 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_USBINTA);
90 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_USBINTB);
91 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_USBINTC);
92 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_RTCINT);
93 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTA);
94 GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTB);
96 /* Setup GPIO's for 33MHz clock output */
97 writel(0x011001FF, IXP425_GPIO_GPCLKR);
98 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_EXTBUS_CLK);
99 GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_PCI_CLK);
102 GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_IORST);
104 GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_IORST);
106 GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_IORST);
111 /* Check Board Identity */
114 puts("Board: AcTux-4\n");
120 gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, 128<<20);
125 struct pci_controller hose;
127 void pci_init_board(void)
134 * Hardcoded flash setup:
135 * Flash 0 is a non-CFI SST 39VF020 flash, 8 bit flash / 8 bit bus.
136 * Flash 1 is an Intel *16 flash using the CFI driver.
138 ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
140 if (banknum == 0) { /* non-CFI boot flash */
143 info->interface = FLASH_CFI_X8;