]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PMIC: Add support for executing PMIC MIPI sequence elements
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 Jan 2019 11:15:53 +0000 (12:15 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 9 Jan 2019 09:35:02 +0000 (10:35 +0100)
commitaff8c8684c354721a85c10e5fdd1ab1d1ef1f8ae
tree4a485cc0635dac2b16d17796657fd588488b7d41
parentf9d97d56513751b7559e7808e653ccf98e18c38e
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
drivers/acpi/pmic/intel_pmic.c
drivers/acpi/pmic/intel_pmic.h
include/linux/mfd/intel_soc_pmic.h