// SPDX-License-Identifier: GPL-2.0 /* * Intel Cherry Trail Crystal Cove PMIC operation region driver * * Copyright (C) 2019 Hans de Goede <[email protected]> */ #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" /* * We have no docs for the CHT Crystal Cove PMIC. The Asus Zenfone-2 kernel * code has 2 Crystal Cove regulator drivers, one calls the PMIC a "Crystal * Cove Plus" PMIC and talks about Cherry Trail, so presumably that one * could be used to get register info for the regulators if we need to * implement regulator support in the future. * * For now the sole purpose of this driver is to make * intel_soc_pmic_exec_mipi_pmic_seq_element work on devices with a * CHT Crystal Cove PMIC. */ static const struct intel_pmic_opregion_data intel_chtcrc_pmic_opregion_data = …; static int intel_chtcrc_pmic_opregion_probe(struct platform_device *pdev) { … } static struct platform_driver intel_chtcrc_pmic_opregion_driver = …; builtin_platform_driver(…) …;