mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 19:04:38 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
27 lines
451 B
C
27 lines
451 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
|
|
*/
|
|
|
|
#include <init.h>
|
|
#include <asm/arch/reset_manager.h>
|
|
#include <asm/gpio.h>
|
|
#include <asm/io.h>
|
|
#include <linux/delay.h>
|
|
|
|
int board_early_init_f(void)
|
|
{
|
|
int ret;
|
|
|
|
/* Reset the Marvell PHY 88E1510 */
|
|
ret = gpio_request(63, "PHY reset");
|
|
if (ret)
|
|
return ret;
|
|
|
|
gpio_direction_output(63, 0);
|
|
mdelay(1);
|
|
gpio_set_value(63, 1);
|
|
mdelay(10);
|
|
|
|
return 0;
|
|
}
|