linux/drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * StarFive DWMAC platform driver
 *
 * Copyright (C) 2021 Emil Renner Berthing <[email protected]>
 * Copyright (C) 2022 StarFive Technology Co., Ltd.
 *
 */

#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>

#include "stmmac_platform.h"

#define STARFIVE_DWMAC_PHY_INFT_RGMII
#define STARFIVE_DWMAC_PHY_INFT_RMII
#define STARFIVE_DWMAC_PHY_INFT_FIELD

#define JH7100_SYSMAIN_REGISTER49_DLYCHAIN

struct starfive_dwmac_data {};

struct starfive_dwmac {};

static void starfive_dwmac_fix_mac_speed(void *priv, unsigned int speed, unsigned int mode)
{}

static int starfive_dwmac_set_mode(struct plat_stmmacenet_data *plat_dat)
{}

static int starfive_dwmac_probe(struct platform_device *pdev)
{}

static const struct starfive_dwmac_data jh7100_data =;

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

static struct platform_driver starfive_dwmac_driver =;
module_platform_driver();

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