linux/drivers/phy/starfive/phy-jh7110-dphy-rx.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * StarFive JH7110 DPHY RX driver
 *
 * Copyright (C) 2023 StarFive Technology Co., Ltd.
 * Author: Jack Zhu <[email protected]>
 * Author: Changhuang Liang <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.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/pm_runtime.h>
#include <linux/reset.h>

#define STF_DPHY_APBCFGSAIF_SYSCFG(x)

#define STF_DPHY_ENABLE_CLK
#define STF_DPHY_ENABLE_CLK1
#define STF_DPHY_ENABLE_LAN0
#define STF_DPHY_ENABLE_LAN1
#define STF_DPHY_ENABLE_LAN2
#define STF_DPHY_ENABLE_LAN3
#define STF_DPHY_LANE_SWAP_CLK
#define STF_DPHY_LANE_SWAP_CLK1
#define STF_DPHY_LANE_SWAP_LAN0
#define STF_DPHY_LANE_SWAP_LAN1

#define STF_DPHY_LANE_SWAP_LAN2
#define STF_DPHY_LANE_SWAP_LAN3
#define STF_DPHY_PLL_CLK_SEL
#define STF_DPHY_PRECOUNTER_IN_CLK

#define STF_DPHY_PRECOUNTER_IN_CLK1
#define STF_DPHY_PRECOUNTER_IN_LAN0
#define STF_DPHY_PRECOUNTER_IN_LAN1
#define STF_DPHY_PRECOUNTER_IN_LAN2

#define STF_DPHY_PRECOUNTER_IN_LAN3
#define STF_DPHY_RX_1C2C_SEL

#define STF_MAP_LANES_NUM

struct stf_dphy_info {};

struct stf_dphy {};

static int stf_dphy_configure(struct phy *phy, union phy_configure_opts *opts)
{}

static int stf_dphy_power_on(struct phy *phy)
{}

static int stf_dphy_power_off(struct phy *phy)
{}

static const struct phy_ops stf_dphy_ops =;

static int stf_dphy_probe(struct platform_device *pdev)
{}

static const struct stf_dphy_info starfive_dphy_info =;

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

static struct platform_driver stf_dphy_driver =;
module_platform_driver();

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