mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-19 13:41:31 +02:00
Remove <common.h> from this board vendor directory and when needed add missing include files directly. Acked-by: Adam Ford <aford173@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
35 lines
623 B
C
35 lines
623 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/* Copyright 2023 Logic PD, Inc dba Beacon EmbeddedWorks */
|
|
|
|
#include <init.h>
|
|
#include <miiphy.h>
|
|
#include <asm/arch/sys_proto.h>
|
|
|
|
static void setup_fec(void)
|
|
{
|
|
struct iomuxc_gpr_base_regs *gpr =
|
|
(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
|
|
|
|
/* Enable RGMII TX clk output */
|
|
setbits_le32(&gpr->gpr[1], BIT(22));
|
|
}
|
|
|
|
#if IS_ENABLED(CONFIG_NET)
|
|
int board_phy_config(struct phy_device *phydev)
|
|
{
|
|
if (phydev->drv->config)
|
|
phydev->drv->config(phydev);
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
int board_init(void)
|
|
{
|
|
int ret = 0;
|
|
|
|
if (CONFIG_IS_ENABLED(FEC_MXC))
|
|
setup_fec();
|
|
|
|
return ret;
|
|
}
|