summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2021-03-15 14:46:34 -0700
committerDavid S. Miller <davem@davemloft.net>2021-03-15 14:46:34 -0700
commit63fe60596b9bff7d28bbfe9a3ca57ef77b8dcd26 (patch)
treeffb91d61a63067ba8fabb5e68ba3d116bc87345b /include
parent91de5ac99a6e53ade273722b3335bba1c262899d (diff)
parent8f2f83765eb0c402fdf77bc8a81d6435b5aa98b7 (diff)
downloadcachepc-linux-63fe60596b9bff7d28bbfe9a3ca57ef77b8dcd26.tar.gz
cachepc-linux-63fe60596b9bff7d28bbfe9a3ca57ef77b8dcd26.zip
Merge branch 'stmmac-clocks'
Joakim Zhang says: ==================== net: stmmac: implement clocks management This patch set tries to implement clocks management, and takes i.MX platform as an example. --- ChangeLogs: V1->V2: * change to pm runtime mechanism. * rename function: _enable() -> _config() * take MDIO bus into account, it needs clocks when interface is closed. * reverse Christmass tree. V2->V3: * slightly simple the code according to Andrew's suggesstion and also add tag: Reviewed-by: Andrew Lunn <andrew@lunn.ch> ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index 722dc167b5c9..51004ebd0540 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -184,6 +184,7 @@ struct plat_stmmacenet_data {
int (*init)(struct platform_device *pdev, void *priv);
void (*exit)(struct platform_device *pdev, void *priv);
struct mac_device_info *(*setup)(void *priv);
+ int (*clks_config)(void *priv, bool enabled);
void *bsp_priv;
struct clk *stmmac_clk;
struct clk *pclk;