diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-04-27 11:31:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-06 09:25:21 +0200 |
commit | 7eb43ad7e6bdb8613a25637d21e4695814cbe6f0 (patch) | |
tree | 9a65183734f4bd6894b688d2121aff8fad159631 /drivers/net | |
parent | f398880accf9b1f5cbfa86a8146b9555b4be922f (diff) | |
download | barebox-7eb43ad7e6bdb8613a25637d21e4695814cbe6f0.tar.gz barebox-7eb43ad7e6bdb8613a25637d21e4695814cbe6f0.tar.xz |
net: fec_imx: Make ptp clock optional
The ptp clock doesn't exist on all SoCs, make it optional. In fact it
was optional before due to a bug in the driver.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fec_imx.c | 4 | ||||
-rw-r--r-- | drivers/net/fec_imx.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index f814b3b960..585cdcb24c 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -705,10 +705,10 @@ static int fec_clk_get(struct fec_priv *fec) { int i, err = 0; static const char *clk_names[ARRAY_SIZE(fec->clk)] = { - "ipg", "ahb", "ptp" + "ipg", "ahb", }; static const char *opt_clk_names[ARRAY_SIZE(fec->opt_clk)] = { - "enet_clk_ref", "enet_out", + "enet_clk_ref", "enet_out", "ptp" }; for (i = 0; i < ARRAY_SIZE(fec->clk); i++) { diff --git a/drivers/net/fec_imx.h b/drivers/net/fec_imx.h index d1ac92f0e3..316eefe48f 100644 --- a/drivers/net/fec_imx.h +++ b/drivers/net/fec_imx.h @@ -121,7 +121,6 @@ enum fec_type { enum fec_clock { FEC_CLK_IPG, FEC_CLK_AHB, - FEC_CLK_PTP, FEC_CLK_NUM }; @@ -129,6 +128,7 @@ enum fec_clock { enum fec_opt_clock { FEC_OPT_CLK_REF, FEC_OPT_CLK_OUT, + FEC_OPT_CLK_PTP, FEC_OPT_CLK_NUM }; |