diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2020-12-04 11:20:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-12-07 10:38:33 +0100 |
commit | d1e7a74b97fdb73936fecd4e07c2d32bbd2fd420 (patch) | |
tree | 100f25ac079ac02be515e90edb517f4397154b20 /include | |
parent | b68c3dddf74e89d88a7f4a8b30b45f547368ec0f (diff) | |
download | barebox-d1e7a74b97fdb73936fecd4e07c2d32bbd2fd420.tar.gz barebox-d1e7a74b97fdb73936fecd4e07c2d32bbd2fd420.tar.xz |
ARM i.MX6Q: fix network configuration for Protonic PRTI6G board
By default the iMX6UL is configured to output clock on the ENET1_TX_CLK
pin. Since on the Protonic PRTI6G board the PHY is actual refclock provider, we
should change the clock source to the external clock.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/mfd/imx6q-iomuxc-gpr.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mfd/imx6q-iomuxc-gpr.h b/include/mfd/imx6q-iomuxc-gpr.h index b2c9da6579..2e7aa6dc7a 100644 --- a/include/mfd/imx6q-iomuxc-gpr.h +++ b/include/mfd/imx6q-iomuxc-gpr.h @@ -344,4 +344,22 @@ #define IMX6Q_GPR13_SATA_PHY_1_MED (0x1 << 0) #define IMX6Q_GPR13_SATA_PHY_1_SLOW (0x2 << 0) +/* For imx6ul iomux gpr register field define */ +/* IMX6UL_GPR1_ENET*_CLK_DIR: + * 0 - ENET1_TX_CLK output driver is disabled when configured for ALT1 + * 1 - ENET1_TX_CLK output driver is enabled when configured for ALT1 + */ +#define IMX6UL_GPR1_ENET2_CLK_DIR (0x1 << 18) +#define IMX6UL_GPR1_ENET1_CLK_DIR (0x1 << 17) + +/* IMX6UL_GPR1_ENET*_CLK_SEL: + * 0 - ENET TX reference clock driven by ref_enetpll. This clock is also + * output to pins via the IOMUX. ENET_REF_CLK2 function. + * 1 - Gets ENET2 TX reference clk from the ENET2_TX_CLK pin. In this use case, + * an external OSC provides the clock for both the external PHY and the + * internal controller. + */ +#define IMX6UL_GPR1_ENET2_CLK_SEL (0x1 << 14) +#define IMX6UL_GPR1_ENET1_CLK_SEL (0x1 << 13) + #endif /* __LINUX_IMX6Q_IOMUXC_GPR_H */ |