diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-11-09 08:14:14 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-11 08:07:00 +0100 |
commit | 2de277264c27a5baceff014678823c8469edd4aa (patch) | |
tree | 3fe980daa368acad85fa85a9eb8fe9aa7b466f23 /drivers/net/fec_imx.h | |
parent | e8371faca1027a4ae8e84ae5679ccd08ad827316 (diff) | |
download | barebox-2de277264c27a5baceff014678823c8469edd4aa.tar.gz barebox-2de277264c27a5baceff014678823c8469edd4aa.tar.xz |
i.MX: fec: Enable all clocks specified for FEC
For some i.MX variants more than just "ipg" clock need to be enabled for
Ethernet to function, so change the code to enable all of the clock
defined for FEC node (this is what analogous Linux driver does as well).
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/fec_imx.h')
-rw-r--r-- | drivers/net/fec_imx.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/fec_imx.h b/drivers/net/fec_imx.h index 1947e60f69..85d51bad60 100644 --- a/drivers/net/fec_imx.h +++ b/drivers/net/fec_imx.h @@ -129,6 +129,14 @@ enum fec_type { FEC_TYPE_IMX6, }; +enum fec_clock { + FEC_CLK_IPG, + FEC_CLK_AHB, + FEC_CLK_PTP, + + FEC_CLK_NUM +}; + /** * @brief i.MX27-FEC private structure */ @@ -144,7 +152,7 @@ struct fec_priv { u32 phy_flags; struct mii_bus miibus; void (*phy_init)(struct phy_device *dev); - struct clk *clk; + struct clk *clk[FEC_CLK_NUM]; enum fec_type type; }; |