#include <linux/acpi.h>
#include <linux/init.h>
#include <linux/mfd/intel_soc_pmic.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include "intel_pmic.h"
#define CHT_WC_V1P05A_CTRL …
#define CHT_WC_V1P15_CTRL …
#define CHT_WC_V1P05A_VSEL …
#define CHT_WC_V1P15_VSEL …
#define CHT_WC_V1P8A_CTRL …
#define CHT_WC_V1P8SX_CTRL …
#define CHT_WC_VDDQ_CTRL …
#define CHT_WC_V1P2A_CTRL …
#define CHT_WC_V1P2SX_CTRL …
#define CHT_WC_V1P8A_VSEL …
#define CHT_WC_VDDQ_VSEL …
#define CHT_WC_V2P8SX_CTRL …
#define CHT_WC_V3P3A_CTRL …
#define CHT_WC_V3P3SD_CTRL …
#define CHT_WC_VSDIO_CTRL …
#define CHT_WC_V3P3A_VSEL …
#define CHT_WC_VPROG1A_CTRL …
#define CHT_WC_VPROG1B_CTRL …
#define CHT_WC_VPROG1F_CTRL …
#define CHT_WC_VPROG2D_CTRL …
#define CHT_WC_VPROG3A_CTRL …
#define CHT_WC_VPROG3B_CTRL …
#define CHT_WC_VPROG4A_CTRL …
#define CHT_WC_VPROG4B_CTRL …
#define CHT_WC_VPROG4C_CTRL …
#define CHT_WC_VPROG4D_CTRL …
#define CHT_WC_VPROG5A_CTRL …
#define CHT_WC_VPROG5B_CTRL …
#define CHT_WC_VPROG6A_CTRL …
#define CHT_WC_VPROG6B_CTRL …
#define CHT_WC_VPROG1A_VSEL …
#define CHT_WC_VPROG1B_VSEL …
#define CHT_WC_V1P8SX_VSEL …
#define CHT_WC_V1P2SX_VSEL …
#define CHT_WC_V1P2A_VSEL …
#define CHT_WC_VPROG1F_VSEL …
#define CHT_WC_VSDIO_VSEL …
#define CHT_WC_V2P8SX_VSEL …
#define CHT_WC_V3P3SD_VSEL …
#define CHT_WC_VPROG2D_VSEL …
#define CHT_WC_VPROG3A_VSEL …
#define CHT_WC_VPROG3B_VSEL …
#define CHT_WC_VPROG4A_VSEL …
#define CHT_WC_VPROG4B_VSEL …
#define CHT_WC_VPROG4C_VSEL …
#define CHT_WC_VPROG4D_VSEL …
#define CHT_WC_VPROG5A_VSEL …
#define CHT_WC_VPROG5B_VSEL …
#define CHT_WC_VPROG6A_VSEL …
#define CHT_WC_VPROG6B_VSEL …
static const struct pmic_table power_table[] = …;
static int intel_cht_wc_pmic_get_power(struct regmap *regmap, int reg,
int bit, u64 *value)
{ … }
static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,
int bitmask, bool on)
{ … }
static int intel_cht_wc_exec_mipi_pmic_seq_element(struct regmap *regmap,
u16 i2c_client_address,
u32 reg_address,
u32 value, u32 mask)
{ … }
static const struct intel_pmic_opregion_data intel_cht_wc_pmic_opregion_data = …;
static int intel_cht_wc_pmic_opregion_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id cht_wc_opregion_id_table[] = …;
static struct platform_driver intel_cht_wc_pmic_opregion_driver = …;
builtin_platform_driver(…) …;