summaryrefslogtreecommitdiff
path: root/include/linux/mfd/intel_soc_pmic.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-01-07 14:15:53 +0300
committerHans de Goede <hdegoede@redhat.com>2019-01-09 12:35:02 +0300
commit7b5618f4b834330a052958db934c3dffad4a15c2 (patch)
tree4a485cc0635dac2b16d17796657fd588488b7d41 /include/linux/mfd/intel_soc_pmic.h
parent2f80d7bd8d93cac9d80fee7339ef673609fa8164 (diff)
downloadlinux-7b5618f4b834330a052958db934c3dffad4a15c2.tar.xz
ACPI / PMIC: Add support for executing PMIC MIPI sequence elements
DSI LCD panels describe an initialization sequence in the Video BIOS Tables using so called MIPI sequences. One possible element in these sequences is a PMIC specific element of 15 bytes. Although this is not really an ACPI opregion, the ACPI opregion code is the closest thing we have. We need to have support for these PMIC specific MIPI sequence elements somwhere. Since we already instantiate a special platform device for Intel PMICs for the ACPI PMIC OpRegion handler to bind to, with PMIC specific implementations of the OpRegion, the handling of MIPI sequence PMIC elements fits very well in the ACPI PMIC OpRegion code. This commit adds a new intel_soc_pmic_exec_mipi_pmic_seq_element() function, which is to be backed by a PMIC specific exec_mipi_pmic_seq_element callback. This function will be called by the i915 code to execture MIPI sequence PMIC elements. Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190107111556.4510-2-hdegoede@redhat.com
Diffstat (limited to 'include/linux/mfd/intel_soc_pmic.h')
-rw-r--r--include/linux/mfd/intel_soc_pmic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h
index ed1dfba5e5f9..bfecd6bd4990 100644
--- a/include/linux/mfd/intel_soc_pmic.h
+++ b/include/linux/mfd/intel_soc_pmic.h
@@ -26,4 +26,7 @@ struct intel_soc_pmic {
struct device *dev;
};
+int intel_soc_pmic_exec_mipi_pmic_seq_element(u16 i2c_address, u32 reg_address,
+ u32 value, u32 mask);
+
#endif /* __INTEL_SOC_PMIC_H__ */