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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Loongson-1 DWMAC glue layer
 *
 * Copyright (C) 2011-2023 Keguang Zhang <[email protected]>
 */

#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#include "stmmac.h"
#include "stmmac_platform.h"

#define LS1B_GMAC0_BASE
#define LS1B_GMAC1_BASE

/* Loongson-1 SYSCON Registers */
#define LS1X_SYSCON0
#define LS1X_SYSCON1

/* Loongson-1B SYSCON Register Bits */
#define GMAC1_USE_UART1
#define GMAC1_USE_UART0

#define GMAC1_SHUT
#define GMAC0_SHUT

#define GMAC1_USE_TXCLK
#define GMAC0_USE_TXCLK
#define GMAC1_USE_PWM23
#define GMAC0_USE_PWM01

/* Loongson-1C SYSCON Register Bits */
#define GMAC_SHUT

#define PHY_INTF_SELI
#define PHY_INTF_MII
#define PHY_INTF_RMII

struct ls1x_dwmac {};

static int ls1b_dwmac_syscon_init(struct platform_device *pdev, void *priv)
{}

static int ls1c_dwmac_syscon_init(struct platform_device *pdev, void *priv)
{}

static int ls1x_dwmac_probe(struct platform_device *pdev)
{}

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

static struct platform_driver ls1x_dwmac_driver =;
module_platform_driver();

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