]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37470a1c5ee3a565b4f39791d8a514f26d680439
tree776e131c89bc9efebb0e65d7649563edccdbaae9
parentdb3cdbf8464f9a3f05d1e7d9314642bd2580f2bd
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