]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/sr1500/socfpga.c
env: Convert CONFIG_ENV_IS_IN... to a choice
[people/ms/u-boot.git] / board / sr1500 / socfpga.c
1 /*
2 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #include <common.h>
8 #include <asm/arch/reset_manager.h>
9 #include <asm/gpio.h>
10 #include <asm/io.h>
11
12 int board_early_init_f(void)
13 {
14 int ret;
15
16 /* Reset the Marvell PHY 88E1510 */
17 ret = gpio_request(63, "PHY reset");
18 if (ret)
19 return ret;
20
21 gpio_direction_output(63, 0);
22 mdelay(1);
23 gpio_set_value(63, 1);
24 mdelay(10);
25
26 return 0;
27 }