linux/drivers/mfd/smpro-core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Ampere Altra Family SMPro core driver
 * Copyright (c) 2022, Ampere Computing LLC
 */

#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/mfd/core.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/regmap.h>

/* Identification Registers */
#define MANUFACTURER_ID_REG
#define AMPERE_MANUFACTURER_ID

#define CORE_CE_ERR_DATA
#define CORE_UE_ERR_DATA
#define MEM_CE_ERR_DATA
#define MEM_UE_ERR_DATA
#define PCIE_CE_ERR_DATA
#define PCIE_UE_ERR_DATA
#define OTHER_CE_ERR_DATA
#define OTHER_UE_ERR_DATA

static int smpro_core_write(void *context, const void *data, size_t count)
{}

static int smpro_core_read(void *context, const void *reg, size_t reg_size,
			   void *val, size_t val_size)
{}

static const struct regmap_bus smpro_regmap_bus =;

static bool smpro_core_readable_noinc_reg(struct device *dev, unsigned int reg)
{}

static const struct regmap_config smpro_regmap_config =;

static const struct mfd_cell smpro_devs[] =;

static int smpro_core_probe(struct i2c_client *i2c)
{}

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

static struct i2c_driver smpro_core_driver =;
module_i2c_driver();

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