#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#define INNO_PHY_PORT_NUM …
#define REF_CLK_STABLE_TIME …
#define UTMI_CLK_STABLE_TIME …
#define TEST_CLK_STABLE_TIME …
#define PHY_CLK_STABLE_TIME …
#define UTMI_RST_COMPLETE_TIME …
#define POR_RST_COMPLETE_TIME …
#define PHY_TYPE_0 …
#define PHY_TYPE_1 …
#define PHY_TEST_DATA …
#define PHY_TEST_ADDR_OFFSET …
#define PHY0_TEST_ADDR …
#define PHY0_TEST_PORT_OFFSET …
#define PHY0_TEST_PORT …
#define PHY0_TEST_WREN …
#define PHY0_TEST_CLK …
#define PHY0_TEST_RST …
#define PHY1_TEST_ADDR …
#define PHY1_TEST_PORT_OFFSET …
#define PHY1_TEST_PORT …
#define PHY1_TEST_WREN …
#define PHY1_TEST_CLK …
#define PHY1_TEST_RST …
#define PHY_CLK_ENABLE …
struct hisi_inno_phy_port { … };
struct hisi_inno_phy_priv { … };
static void hisi_inno_phy_write_reg(struct hisi_inno_phy_priv *priv,
u8 port, u32 addr, u32 data)
{ … }
static void hisi_inno_phy_setup(struct hisi_inno_phy_priv *priv)
{ … }
static int hisi_inno_phy_init(struct phy *phy)
{ … }
static int hisi_inno_phy_exit(struct phy *phy)
{ … }
static const struct phy_ops hisi_inno_phy_ops = …;
static int hisi_inno_phy_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id hisi_inno_phy_of_match[] = …;
MODULE_DEVICE_TABLE(of, hisi_inno_phy_of_match);
static struct platform_driver hisi_inno_phy_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;