mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 23:48:52 +09:00
![Marek Vasut](/assets/img/avatar_default.png)
Drop all the common board code, since it is not completely useless. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
28 lines
431 B
C
28 lines
431 B
C
/*
|
|
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/reset_manager.h>
|
|
#include <asm/gpio.h>
|
|
#include <asm/io.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;
|
|
}
|