]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c
1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright 2023 Gilles Talis <gilles.talis@gmail.com>
7 #include <asm-generic/gpio.h>
8 #include <asm/arch/clock.h>
9 #include <asm/arch/imx8mp_pins.h>
10 #include <asm/arch/sys_proto.h>
11 #include <asm/global_data.h>
12 #include <asm/mach-imx/gpio.h>
13 #include <asm/mach-imx/iomux-v3.h>
18 #include <linux/delay.h>
22 DECLARE_GLOBAL_DATA_PTR
;
24 static void setup_fec(void)
26 struct iomuxc_gpr_base_regs
*gpr
=
27 (struct iomuxc_gpr_base_regs
*)IOMUXC_GPR_BASE_ADDR
;
29 /* Enable RGMII TX clk output */
30 setbits_le32(&gpr
->gpr
[1], BIT(22));
33 #if CONFIG_IS_ENABLED(NET)
34 int board_phy_config(struct phy_device
*phydev
)
36 if (phydev
->drv
->config
)
37 phydev
->drv
->config(phydev
);
46 if (IS_ENABLED(CONFIG_FEC_MXC
))
52 int board_late_init(void)