Home
last modified time | relevance | path

Searched +full:s32g2 +full:- +full:dwmac (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-s32.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2019-2024 NXP
10 #include <linux/clk-provider.h>
43 writel(PHY_INTF_SEL_RGMII, gmac->ctrl_sts); in s32_gmac_write_phy_intf_select()
45 dev_dbg(gmac->dev, "PHY mode set to %s\n", phy_modes(*gmac->intf_mode)); in s32_gmac_write_phy_intf_select()
56 ret = clk_prepare_enable(gmac->tx_clk); in s32_gmac_init()
58 dev_err(&pdev->dev, "Can't enable tx clock\n"); in s32_gmac_init()
61 ret = clk_set_rate(gmac->tx_clk, GMAC_INTF_RATE_125M); in s32_gmac_init()
63 dev_err(&pdev->dev, "Can't set tx clock\n"); in s32_gmac_init()
68 ret = clk_prepare_enable(gmac->rx_clk); in s32_gmac_init()
[all …]