linux/drivers/hwmon/pmbus/mp9941.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers(MP9941)
 */

#include <linux/bitfield.h>
#include <linux/bits.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include "pmbus.h"

/*
 * Vender specific registers. The MFR_ICC_MAX(0x02) is used to
 * config the iin scale. The MFR_RESO_SET(0xC7) is used to
 * config the vout format. The MFR_VR_MULTI_CONFIG_R1(0x0D) is
 * used to identify the vout vid step.
 */
#define MFR_ICC_MAX
#define MFR_RESO_SET
#define MFR_VR_MULTI_CONFIG_R1

#define MP9941_VIN_LIMIT_UINT
#define MP9941_VIN_LIMIT_DIV
#define MP9941_READ_VIN_UINT
#define MP9941_READ_VIN_DIV

#define MP9941_PAGE_NUM

#define MP9941_RAIL1_FUNC

struct mp9941_data {};

#define to_mp9941_data(x)

static int mp9941_set_vout_format(struct i2c_client *client)
{}

static int
mp9941_identify_vid_resolution(struct i2c_client *client, struct pmbus_driver_info *info)
{}

static int mp9941_identify_iin_scale(struct i2c_client *client)
{}

static int mp9941_identify(struct i2c_client *client, struct pmbus_driver_info *info)
{}

static int mp9941_read_word_data(struct i2c_client *client, int page, int phase,
				 int reg)
{}

static int mp9941_write_word_data(struct i2c_client *client, int page, int reg,
				  u16 word)
{}

static const struct pmbus_driver_info mp9941_info =;

static int mp9941_probe(struct i2c_client *client)
{}

static const struct i2c_device_id mp9941_id[] =;
MODULE_DEVICE_TABLE(i2c, mp9941_id);

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

static struct i2c_driver mp9941_driver =;

module_i2c_driver();

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