imx: imx8ulp: upower: replace magic number with macro
authorPeng Fan <peng.fan@nxp.com>
Tue, 31 Jan 2023 08:42:22 +0000 (16:42 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Mar 2023 18:15:42 +0000 (20:15 +0200)
commit90e43bc136facb5ea965c40c878997d823f36257
tree2e1433fa2021339acf24839dd475c9d7553b090b
parent4e08a510d23e2e23c8a776ccea582d0acd75fd4d
imx: imx8ulp: upower: replace magic number with macro

The swton indicates the logic switch, magic number 0xfff80 is hard
to understand, so use macro.

Some board design may not have MIPI_CSI voltage input connected per
data sheet. In that case, the upower power on API may dead loop mu to wait
response, however there is no response. So remove MIPI_CSI here, let
linux power domain driver to runtime enable the power domain.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8ulp/upower/upower_hal.c