blob: c9e32e396031ae0bbebf21ea55c982ff6b3d24ea [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01002/*
3 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01004 */
5
6#include <common.h>
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01007#include <asm/arch/reset_manager.h>
8#include <asm/gpio.h>
9#include <asm/io.h>
10
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010011int board_early_init_f(void)
12{
13 int ret;
14
15 /* Reset the Marvell PHY 88E1510 */
16 ret = gpio_request(63, "PHY reset");
17 if (ret)
18 return ret;
19
20 gpio_direction_output(63, 0);
21 mdelay(1);
22 gpio_set_value(63, 1);
23 mdelay(10);
24
25 return 0;
26}