platform/x86: int3472: Evaluate device's _DSM method to control imaging clock
authorBingbu Cao <bingbu.cao@intel.com>
Wed, 31 May 2023 13:44:29 +0000 (15:44 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 8 Jun 2023 08:59:59 +0000 (10:59 +0200)
commite4543de8b6ffeba0622b9910df90d89676523975
tree7e05cad7d2398f412367f10063c9cc4fb3fa4c81
parent139332e2fce621f759af8c86052417e3307b239f
platform/x86: int3472: Evaluate device's _DSM method to control imaging clock

On some platforms, the imaging clock should be controlled by evaluating
specific clock device's _DSM method instead of setting gpio, so this
change register clock if no gpio based clock and then use the _DSM method
to enable and disable clock.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Hao Yao <hao.yao@intel.com>
Link: https://lore.kernel.org/r/20230524035135.90315-2-bingbu.cao@intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230531134429.171337-1-hdegoede@redhat.com
drivers/platform/x86/intel/int3472/clk_and_regulator.c
drivers/platform/x86/intel/int3472/common.h
drivers/platform/x86/intel/int3472/discrete.c