mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 09:59:44 +00:00
d526f340f7
Add the power domain DM driver for i.MX8, that it depends on the DTB power domain trees to generate the power domain provider devices. Users need to add power domain trees with property "compatible = "nxp,imx8-pd";" When power on a PD device, the driver will power on its ancestor PD devices in power domain tree. When power off a PD device, the driver will check its child PD devices first. Only if all child PD devices are off, then power off the current PD device. Then the driver checks sibling PD devices. If sibling PD devices are off, then it will power off parent PD device. There is no counter maintained in this driver, but a state to hold current on/off state. So the request and free functions are empty. The power domain implementation in i.MX8 DTB set the "#power-domain-cells" to 0, so there is no ID binding with each PD device. We don't use "id" variable in struct power_domain. At the same time, we have to set of_xlate to empty to bypass standard of_xlate in uclass driver. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Anatolij Gustschin <agust@denx.de> Cc: Stefano Babic <sbabic@denx.de>
54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
menu "Power Domain Support"
|
|
|
|
config POWER_DOMAIN
|
|
bool "Enable power domain support using Driver Model"
|
|
depends on DM && OF_CONTROL
|
|
help
|
|
Enable support for the power domain driver class. Many SoCs allow
|
|
power to be applied to or removed from portions of the SoC (power
|
|
domains). This may be used to save power. This API provides the
|
|
means to control such power management hardware.
|
|
|
|
config BCM6328_POWER_DOMAIN
|
|
bool "Enable the BCM6328 power domain driver"
|
|
depends on POWER_DOMAIN && ARCH_BMIPS
|
|
help
|
|
Enable support for manipulating BCM6345 power domains via MMIO
|
|
mapped registers.
|
|
|
|
config IMX8_POWER_DOMAIN
|
|
bool "Enable i.MX8 power domain driver"
|
|
depends on ARCH_IMX8
|
|
help
|
|
Enable support for manipulating NXP i.MX8 on-SoC power domains via IPC
|
|
requests to the SCU.
|
|
|
|
config MESON_GX_VPU_POWER_DOMAIN
|
|
bool "Enable Amlogic Meson GX VPU power domain driver"
|
|
depends on ARCH_MESON
|
|
help
|
|
Enable support for manipulating Amlogic Meson GX Video Processing
|
|
Unit power domain.
|
|
|
|
config SANDBOX_POWER_DOMAIN
|
|
bool "Enable the sandbox power domain test driver"
|
|
depends on POWER_DOMAIN && SANDBOX
|
|
help
|
|
Enable support for a test power domain driver implementation, which
|
|
simply accepts requests to power on/off various HW modules without
|
|
actually doing anything beyond a little error checking.
|
|
|
|
config TEGRA186_POWER_DOMAIN
|
|
bool "Enable Tegra186 BPMP-based power domain driver"
|
|
depends on TEGRA186_BPMP
|
|
help
|
|
Enable support for manipulating Tegra's on-SoC power domains via IPC
|
|
requests to the BPMP (Boot and Power Management Processor).
|
|
|
|
config TI_SCI_POWER_DOMAIN
|
|
bool "Enable the TI SCI-based power domain driver"
|
|
depends on POWER_DOMAIN && TI_SCI_PROTOCOL
|
|
help
|
|
Generic power domain implementation for TI devices implementing the
|
|
TI SCI protocol.
|
|
endmenu
|