4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/processor.h>
11 #include <spd_sdram.h>
14 int board_early_init_f (void)
17 * IRQ 0-15 405GP internally generated; active high; level sensitive
18 * IRQ 16 405GP internally generated; active low; level sensitive
20 * IRQ 25 (EXT IRQ 0) CAN0; active low; level sensitive
21 * IRQ 26 (EXT IRQ 1) SER0 ; active low; level sensitive
22 * IRQ 27 (EXT IRQ 2) SER1; active low; level sensitive
23 * IRQ 28 (EXT IRQ 3) FPGA 0; active low; level sensitive
24 * IRQ 29 (EXT IRQ 4) FPGA 1; active low; level sensitive
25 * IRQ 30 (EXT IRQ 5) PCI INTA; active low; level sensitive
26 * IRQ 31 (EXT IRQ 6) COMPACT FLASH; active high; level sensitive
28 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
29 mtdcr(UIC0ER, 0x00000000); /* disable all ints */
30 mtdcr(UIC0CR, 0x00000000); /* set all to be non-critical*/
31 mtdcr(UIC0PR, 0xFFFFFF81); /* set int polarities */
32 mtdcr(UIC0TR, 0x10000000); /* set int trigger levels */
33 mtdcr(UIC0VCR, 0x00000001); /* set vect base=0,INT0 highest priority*/
34 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
37 * EBC Configuration Register: set ready timeout to 512 ebc-clks -> ca. 15 us
39 mtebc (EBC0_CFG, 0xa8400000);
45 /* ------------------------------------------------------------------------- */
47 int misc_init_f (void)
49 return 0; /* dummy implementation */
53 int misc_init_r (void)
60 * Check Board Identity:
66 int i = getenv_f("serial#", str, sizeof(str));
71 puts ("### No HW ID - assuming sbc405");
81 /* ------------------------------------------------------------------------- */
85 /* TODO: XXX XXX XXX */
86 printf ("test: 64 MB - ok\n");
91 /* ------------------------------------------------------------------------- */