2 * (C) Copyright 2000-2005
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/processor.h>
12 long int spd_sdram(void);
14 int board_early_init_f(void)
16 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
17 mtdcr(UIC0ER, 0x00000000); /* disable all ints */
18 mtdcr(UIC0CR, 0x00000010);
19 mtdcr(UIC0PR, 0xFFFF7FF0); /* set int polarities */
20 mtdcr(UIC0TR, 0x00000010); /* set int trigger levels */
21 mtdcr(UIC0SR, 0xFFFFFFFF); /* clear all ints */
24 * Configure CPC0_PCI to enable PerWE as output
25 * and enable the internal PCI arbiter if selected
27 if (in_8((void *)FPGA_REG1) & FPGA_REG1_PCI_INT_ARB)
28 mtdcr(CPC0_PCI, CPC0_PCI_HOST_CFG_EN | CPC0_PCI_ARBIT_EN);
30 mtdcr(CPC0_PCI, CPC0_PCI_HOST_CFG_EN);
36 * Check Board Identity:
41 int i = getenv_f("serial#", buf, sizeof(buf));
43 puts("Board: Bubinga - AMCC PPC405EP Evaluation Board");
54 /* -------------------------------------------------------------------------
55 initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of
56 the necessary info for SDRAM controller configuration
57 ------------------------------------------------------------------------- */
58 phys_size_t initdram(int board_type)