blob: 83663c7e4d3fd140687e491d0db5a333483050c1 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stefan Roeseae9996c2015-11-18 11:06:09 +01002/*
3 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
Stefan Roeseae9996c2015-11-18 11:06:09 +01004 */
5
6#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -06007#include <init.h>
Stefan Roeseae9996c2015-11-18 11:06:09 +01008#include <asm/arch/reset_manager.h>
9#include <asm/gpio.h>
10#include <asm/io.h>
11
Stefan Roeseae9996c2015-11-18 11:06:09 +010012int 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}