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

// SPDX-License-Identifier: GPL-2.0
/* Toshiba Visconti Ethernet Support
 *
 * (C) Copyright 2020 TOSHIBA CORPORATION
 * (C) Copyright 2020 Toshiba Electronic Devices & Storage Corporation
 */

#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/of_net.h>
#include <linux/stmmac.h>

#include "stmmac_platform.h"
#include "dwmac4.h"

#define REG_ETHER_CONTROL
#define ETHER_ETH_CONTROL_RESET

#define REG_ETHER_CLOCK_SEL
#define ETHER_CLK_SEL_TX_CLK_EN
#define ETHER_CLK_SEL_RX_CLK_EN
#define ETHER_CLK_SEL_RMII_CLK_EN
#define ETHER_CLK_SEL_RMII_CLK_RST
#define ETHER_CLK_SEL_DIV_SEL_2
#define ETHER_CLK_SEL_DIV_SEL_20
#define ETHER_CLK_SEL_FREQ_SEL_125M
#define ETHER_CLK_SEL_FREQ_SEL_50M
#define ETHER_CLK_SEL_FREQ_SEL_25M
#define ETHER_CLK_SEL_FREQ_SEL_2P5M
#define ETHER_CLK_SEL_TX_CLK_EXT_SEL_IN
#define ETHER_CLK_SEL_TX_CLK_EXT_SEL_TXC
#define ETHER_CLK_SEL_TX_CLK_EXT_SEL_DIV
#define ETHER_CLK_SEL_RX_CLK_EXT_SEL_IN
#define ETHER_CLK_SEL_RX_CLK_EXT_SEL_RXC
#define ETHER_CLK_SEL_RX_CLK_EXT_SEL_DIV
#define ETHER_CLK_SEL_TX_CLK_O_TX_I
#define ETHER_CLK_SEL_TX_CLK_O_RMII_I
#define ETHER_CLK_SEL_TX_O_E_N_IN
#define ETHER_CLK_SEL_RMII_CLK_SEL_IN
#define ETHER_CLK_SEL_RMII_CLK_SEL_RX_C

#define ETHER_CLK_SEL_RX_TX_CLK_EN

#define ETHER_CONFIG_INTF_MII
#define ETHER_CONFIG_INTF_RGMII
#define ETHER_CONFIG_INTF_RMII

struct visconti_eth {};

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

static int visconti_eth_init_hw(struct platform_device *pdev, struct plat_stmmacenet_data *plat_dat)
{}

static int visconti_eth_clock_probe(struct platform_device *pdev,
				    struct plat_stmmacenet_data *plat_dat)
{}

static void visconti_eth_clock_remove(struct platform_device *pdev)
{}

static int visconti_eth_dwmac_probe(struct platform_device *pdev)
{}

static void visconti_eth_dwmac_remove(struct platform_device *pdev)
{}

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

static struct platform_driver visconti_eth_dwmac_driver =;
module_platform_driver();

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