OSDN Git Service

media: atomisp: Fix regulator registers on BYT devices with CRC PMIC
authorHans de Goede <hdegoede@redhat.com>
Thu, 1 Dec 2022 21:59:40 +0000 (22:59 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 06:57:22 +0000 (07:57 +0100)
commit0c144c9308a66b4a8d7eb9a0f58d251999870fd1
tree55afd1f6acf35d061a5a1af6d8deda1881a20858
parentbcc5997250a4e4d44056fb49367ed46fb97bc300
media: atomisp: Fix regulator registers on BYT devices with CRC PMIC

The Crystal Cove PMIC used on some BYT/CHT devices has different revisions
when paired with Bay Trail (BYT) vs Cherry Trail (CHT) SoCs.

The current hardcoded values are only valid for CHT devices, change
the code so that it uses the correct register values on both BYT and CHT.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c