linux/drivers/net/mdio/mdio-ipq8064.c

// SPDX-License-Identifier: GPL-2.0
/* Qualcomm IPQ8064 MDIO interface driver
 *
 * Copyright (C) 2019 Christian Lamparter <[email protected]>
 * Copyright (C) 2020 Ansuel Smith <[email protected]>
 */

#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_mdio.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* MII address register definitions */
#define MII_ADDR_REG_ADDR
#define MII_BUSY
#define MII_WRITE
#define MII_CLKRANGE(x)
#define MII_CLKRANGE_60_100M
#define MII_CLKRANGE_100_150M
#define MII_CLKRANGE_20_35M
#define MII_CLKRANGE_35_60M
#define MII_CLKRANGE_150_250M
#define MII_CLKRANGE_250_300M
#define MII_CLKRANGE_MASK
#define MII_REG_SHIFT
#define MII_REG_MASK
#define MII_ADDR_SHIFT
#define MII_ADDR_MASK

#define MII_DATA_REG_ADDR

#define MII_MDIO_DELAY_USEC
#define MII_MDIO_RETRY_MSEC

struct ipq8064_mdio {};

static int
ipq8064_mdio_wait_busy(struct ipq8064_mdio *priv)
{}

static int
ipq8064_mdio_read(struct mii_bus *bus, int phy_addr, int reg_offset)
{}

static int
ipq8064_mdio_write(struct mii_bus *bus, int phy_addr, int reg_offset, u16 data)
{}

static const struct regmap_config ipq8064_mdio_regmap_config =;

static int
ipq8064_mdio_probe(struct platform_device *pdev)
{}

static void ipq8064_mdio_remove(struct platform_device *pdev)
{}

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

static struct platform_driver ipq8064_mdio_driver =;

module_platform_driver();

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