avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
27
u-boot/board/sr1500/socfpga.c
Normal file
27
u-boot/board/sr1500/socfpga.c
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user