3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 /* ------------------------------------------------------------------------- */
30 #define _NOT_USED_ 0xFFFFFFFF
32 /* ------------------------------------------------------------------------- */
35 int board_early_init_f (void)
38 * Set port pin in escc2 to keep living, and configure user led output
40 *(unsigned char *) 0x2000033e = 0x77; /* ESCC2: PCR bit3=pwr on, bit7=led out */
41 *(unsigned char *) 0x2000033c = 0x88; /* ESCC2: PVR pwr on, led off */
46 *(unsigned long *) 0x50000304 = 0x02900007; /* enable mem/io/master bits */
47 *(unsigned long *) 0x500001b4 = 0x00000000; /* disable pci interrupt output enable */
48 *(unsigned long *) 0x50000354 = 0x00c05800; /* disable emun interrupt output enable */
49 *(unsigned long *) 0x50000344 = 0x00000000; /* disable pme interrupt output enable */
50 *(unsigned long *) 0x50000310 = 0x00000000; /* pcibar0 */
51 *(unsigned long *) 0x50000314 = 0x00000000; /* pcibar1 */
52 *(unsigned long *) 0x50000318 = 0x00000000; /* pcibar2 */
59 * Check Board Identity:
65 int i = getenv_f("serial#", str, sizeof (str));
69 if (!i || strncmp (str, "ADCIOP", 6)) {
70 puts ("### No HW ID - assuming ADCIOP\n");
81 /* ------------------------------------------------------------------------- */
83 phys_size_t initdram (int board_type)
85 return (16 * 1024 * 1024);
88 /* ------------------------------------------------------------------------- */
92 /* TODO: XXX XXX XXX */
93 printf ("test: 16 MB - ok\n");
98 /* ------------------------------------------------------------------------- */
100 int board_eth_init(bd_t *bis)
102 return pci_eth_init(bis);