4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #include <asm/processor.h>
27 #include <spd_sdram.h>
30 int board_early_init_f (void)
33 * IRQ 0-15 405GP internally generated; active high; level sensitive
34 * IRQ 16 405GP internally generated; active low; level sensitive
36 * IRQ 25 (EXT IRQ 0) CAN0; active low; level sensitive
37 * IRQ 26 (EXT IRQ 1) SER0 ; active low; level sensitive
38 * IRQ 27 (EXT IRQ 2) SER1; active low; level sensitive
39 * IRQ 28 (EXT IRQ 3) FPGA 0; active low; level sensitive
40 * IRQ 29 (EXT IRQ 4) FPGA 1; active low; level sensitive
41 * IRQ 30 (EXT IRQ 5) PCI INTA; active low; level sensitive
42 * IRQ 31 (EXT IRQ 6) COMPACT FLASH; active high; level sensitive
44 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
45 mtdcr(UIC0ER, 0x00000000); /* disable all ints */
46 mtdcr(UIC0CR, 0x00000000); /* set all to be non-critical*/
47 mtdcr(UIC0PR, 0xFFFFFF81); /* set int polarities */
48 mtdcr(UIC0TR, 0x10000000); /* set int trigger levels */
49 mtdcr(UIC0VCR, 0x00000001); /* set vect base=0,INT0 highest priority*/
50 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
53 * EBC Configuration Register: set ready timeout to 512 ebc-clks -> ca. 15 us
55 mtebc (EBC0_CFG, 0xa8400000);
61 /* ------------------------------------------------------------------------- */
63 int misc_init_f (void)
65 return 0; /* dummy implementation */
69 int misc_init_r (void)
76 * Check Board Identity:
82 int i = getenv_f("serial#", str, sizeof(str));
87 puts ("### No HW ID - assuming sbc405");
97 /* ------------------------------------------------------------------------- */
99 phys_size_t initdram (int board_type)
104 /* ------------------------------------------------------------------------- */
108 /* TODO: XXX XXX XXX */
109 printf ("test: 64 MB - ok\n");
114 /* ------------------------------------------------------------------------- */