linux/drivers/acpi/pmic/intel_pmic_chtwc.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Intel CHT Whiskey Cove PMIC operation region driver
 * Copyright (C) 2017 Hans de Goede <[email protected]>
 *
 * Based on various non upstream patches to support the CHT Whiskey Cove PMIC:
 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
 */

#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

/*
 * Regulator support is based on the non upstream patch:
 * "regulator: whiskey_cove: implements Whiskey Cove pmic VRF support"
 * https://github.com/intel-aero/meta-intel-aero/blob/master/recipes-kernel/linux/linux-yocto/0019-regulator-whiskey_cove-implements-WhiskeyCove-pmic-V.patch
 */
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)
{}

/*
 * The thermal table and ops are empty, we do not support the Thermal opregion
 * (DPTF) due to lacking documentation.
 */
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();