diff options
author | Michael Sit Wei Hong <michael.wei.hong.sit@intel.com> | 2021-05-17 12:43:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-18 01:53:58 +0300 |
commit | e80fe71b3ffe1ec31c4a9be60170f897bbdf1b92 (patch) | |
tree | 3c680fdc647e8191167059fa1f6cb724333c0f12 /include/linux/stmmac.h | |
parent | 7617af3d1a5e0938eb1fd2742f19bcea772c7f8d (diff) | |
download | linux-e80fe71b3ffe1ec31c4a9be60170f897bbdf1b92.tar.xz |
net: stmmac: Add callbacks for DWC xpcs Energy Efficient Ethernet
Link xpcs callback functions for MAC to configure the xpcs EEE feature.
The clk_eee frequency is used to calculate the MULT_FACT_100NS. This is
to adjust the clock tic closer to 100ns.
Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 0db36360ef21..e14a12df381b 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -223,6 +223,7 @@ struct plat_stmmacenet_data { struct clk *clk_ptp_ref; unsigned int clk_ptp_rate; unsigned int clk_ref_rate; + unsigned int mult_fact_100ns; s32 ptp_max_adj; struct reset_control *stmmac_rst; struct stmmac_axi *axi; |