2 * Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
5 * Marvell Semiconductor <www.marvell.com>
6 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/arch/orion5x.h>
14 #include "../common/common.h"
17 #include <asm/mach-types.h>
19 DECLARE_GLOBAL_DATA_PTR;
23 /* arch number of board */
24 gd->bd->bi_arch_number = MACH_TYPE_EDMINI_V2;
26 /* boot parameter start at 256th byte of RAM base */
27 gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
32 #if defined(CONFIG_CMD_NET) && defined(CONFIG_RESET_PHY_R)
33 /* Configure and enable MV88E1116 PHY */
36 mv_phy_88e1116_init("egiga0", 8);
38 #endif /* CONFIG_RESET_PHY_R */
41 * SPL serial setup and NOR boot device selection
44 #ifdef CONFIG_SPL_BUILD
46 void spl_board_init(void)
48 preloader_console_init();
51 u32 spl_boot_device(void)
53 return BOOT_DEVICE_NOR;
56 #endif /* CONFIG_SPL_BUILD */