media: atomisp: detect the PMIC type
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 10 May 2020 20:04:37 +0000 (22:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 12:51:28 +0000 (14:51 +0200)
commit93e24ec6bfe6eeb5e74915e2761136c25cf6cd8d
tree776e131c89bc9efebb0e65d7649563edccdbaae9
parenta79afb97e0227f7224bbf2e0ee12f2a4f719cc0a
media: atomisp: detect the PMIC type

Sub-device's power management can be provided via different ways.

Instead of hardcoding it, add a code that would be detecting it.

This uses a code similar to what's found at the atomisp driver
inside the Intel Aero repository:

https://github.com/intel-aero/meta-intel-aero.git

(driver was removed on some commit, but it can be found on
git history).

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c