linux/drivers/net/mdio/mdio-mux-meson-g12a.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2019 Baylibre, SAS.
 * Author: Jerome Brunet <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/mdio-mux.h>
#include <linux/module.h>
#include <linux/phy.h>
#include <linux/platform_device.h>

#define ETH_PLL_STS
#define ETH_PLL_CTL0
#define PLL_CTL0_LOCK_DIG
#define PLL_CTL0_RST
#define PLL_CTL0_EN
#define PLL_CTL0_SEL
#define PLL_CTL0_N
#define PLL_CTL0_M
#define PLL_LOCK_TIMEOUT
#define PLL_MUX_NUM_PARENT
#define ETH_PLL_CTL1
#define ETH_PLL_CTL2
#define ETH_PLL_CTL3
#define ETH_PLL_CTL4
#define ETH_PLL_CTL5
#define ETH_PLL_CTL6
#define ETH_PLL_CTL7

#define ETH_PHY_CNTL0
#define EPHY_G12A_ID
#define ETH_PHY_CNTL1
#define PHY_CNTL1_ST_MODE
#define PHY_CNTL1_ST_PHYADD
#define EPHY_DFLT_ADD
#define PHY_CNTL1_MII_MODE
#define EPHY_MODE_RMII
#define PHY_CNTL1_CLK_EN
#define PHY_CNTL1_CLKFREQ
#define PHY_CNTL1_PHY_ENB
#define ETH_PHY_CNTL2
#define PHY_CNTL2_USE_INTERNAL
#define PHY_CNTL2_SMI_SRC_MAC
#define PHY_CNTL2_RX_CLK_EPHY

#define MESON_G12A_MDIO_EXTERNAL_ID
#define MESON_G12A_MDIO_INTERNAL_ID

struct g12a_mdio_mux {};

struct g12a_ephy_pll {};

#define g12a_ephy_pll_to_dev(_hw)

static unsigned long g12a_ephy_pll_recalc_rate(struct clk_hw *hw,
					       unsigned long parent_rate)
{}

static int g12a_ephy_pll_enable(struct clk_hw *hw)
{}

static void g12a_ephy_pll_disable(struct clk_hw *hw)
{}

static int g12a_ephy_pll_is_enabled(struct clk_hw *hw)
{}

static int g12a_ephy_pll_init(struct clk_hw *hw)
{}

static const struct clk_ops g12a_ephy_pll_ops =;

static int g12a_enable_internal_mdio(struct g12a_mdio_mux *priv)
{}

static int g12a_enable_external_mdio(struct g12a_mdio_mux *priv)
{}

static int g12a_mdio_switch_fn(int current_child, int desired_child,
			       void *data)
{}

static const struct of_device_id g12a_mdio_mux_match[] =;
MODULE_DEVICE_TABLE(of, g12a_mdio_mux_match);

static int g12a_ephy_glue_clk_register(struct device *dev)
{}

static int g12a_mdio_mux_probe(struct platform_device *pdev)
{}

static void g12a_mdio_mux_remove(struct platform_device *pdev)
{}

static struct platform_driver g12a_mdio_mux_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();