Skip to contentSkip to conversation

amlogic: Add support for the Everything-Else power domain driver

PATCH New Neil Armstrong 1 participant 4 messages Oct 11, 2019 – Oct 18, 2019 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover amlogic: Add support for the Everything-Else power domain driver

For SM1 support a new Power Domain driver is needed to handle more than the VPU power domain.

This Power Domain driver is also used for G12A to also control the Ethernet Power Domain for example.

Neil Armstrong (2):
power: domain: add Amlogic Everything-Else power domain driver
configs: sei510: enable everything-else power domain

 configs/sei510_defconfig             |   2 +-
 drivers/power/domain/Kconfig         |   7 +
 drivers/power/domain/Makefile        |   1 +
 drivers/power/domain/meson-ee-pwrc.c | 430 +++++++++++++++++++++++++++
 4 files changed, 439 insertions(+), 1 deletion(-)
 create mode 100644 drivers/power/domain/meson-ee-pwrc.c
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/2 power: domain: add Amlogic Everything-Else power domain driver

Based on the 54ecb8f7028c ("Linux 5.4-rc1") Everything-Else power domain driver for Amlogic SoCs.

This driver handles the VPU Power domain and other domains from the Everything-Else part of the SM1 and G12A SoCs.

---
 drivers/power/domain/Kconfig         |   7 +
 drivers/power/domain/Makefile        |   1 +
 drivers/power/domain/meson-ee-pwrc.c | 430 +++++++++++++++++++++++++++
 3 files changed, 438 insertions(+)
 create mode 100644 drivers/power/domain/meson-ee-pwrc.c
drivers/power/domain/Kconfig +7 -0
index 06bba6220b..f5e428b3f5 100644
@@ -37,6 +37,13 @@ config MESON_GX_VPU_POWER_DOMAIN
 	  Enable support for manipulating Amlogic Meson GX Video Processing
 	  Unit power domain.
 
+config MESON_EE_POWER_DOMAIN
+	bool "Enable Amlogic Everything-Else power domain driver"
+	depends on POWER_DOMAIN && ARCH_MESON
+	help
+	  Enable support for manipulating Amlogic Meson Everything-Else power
+	  domains.
+
 config SANDBOX_POWER_DOMAIN
 	bool "Enable the sandbox power domain test driver"
 	depends on POWER_DOMAIN && SANDBOX
drivers/power/domain/Makefile +1 -0
index 695aafe17d..91e4ca9d29 100644
@@ -8,6 +8,7 @@ obj-$(CONFIG_BCM6328_POWER_DOMAIN) += bcm6328-power-domain.o
 obj-$(CONFIG_IMX8_POWER_DOMAIN) += imx8-power-domain.o
 obj-$(CONFIG_MTK_POWER_DOMAIN) += mtk-power-domain.o
 obj-$(CONFIG_MESON_GX_VPU_POWER_DOMAIN) += meson-gx-pwrc-vpu.o
+obj-$(CONFIG_MESON_EE_POWER_DOMAIN) += meson-ee-pwrc.o
 obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain.o
 obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain-test.o
 obj-$(CONFIG_TEGRA186_POWER_DOMAIN) += tegra186-power-domain.o
drivers/power/domain/meson-ee-pwrc.c new file +430 -0

430 lines not on this page · raw message

Signature · 1 line
2.22.0
#2 lore raw

PATCH 2/2 configs: sei510: enable everything-else power domain

In reply to Neil Armstrong

The GX VPU Power Domain driver has been replaced by the Everything-Else Power Domain driver for G12A and SM1.

---
 configs/sei510_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/sei510_defconfig +1 -1
index 9eb205bc63..9df04c345d 100644
@@ -48,7 +48,7 @@ CONFIG_MESON_G12A_USB_PHY=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_MESON_G12A=y
 CONFIG_POWER_DOMAIN=y
-CONFIG_MESON_GX_VPU_POWER_DOMAIN=y
+CONFIG_MESON_EE_POWER_DOMAIN=y
 CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_VIDEO_MESON=y
Signature · 1 line
2.22.0
#3 lore raw

cover amlogic: Add support for the Everything-Else power domain driver

In reply to Neil Armstrong
Quoted 10 lines · Neil Armstrong

For SM1 support a new Power Domain driver is needed to handle more than the VPU power domain.

This Power Domain driver is also used for G12A to also control the Ethernet Power Domain for example.

Neil Armstrong (2):
power: domain: add Amlogic Everything-Else power domain driver
configs: sei510: enable everything-else power domain

Quoted 7 lines
 configs/sei510_defconfig             |   2 +-
 drivers/power/domain/Kconfig         |   7 +
 drivers/power/domain/Makefile        |   1 +
 drivers/power/domain/meson-ee-pwrc.c | 430 +++++++++++++++++++++++++++
 4 files changed, 439 insertions(+), 1 deletion(-)
 create mode 100644 drivers/power/domain/meson-ee-pwrc.c

Applied to u-boot-amlogic