summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Shih <sam.shih@mediatek.com>2020-01-10 16:30:31 +0800
committerTom Rini <trini@konsulko.com>2020-01-16 09:39:45 -0500
commitabb65f123c2c20a61461f731f7fd9740fac09cd5 (patch)
treeef3fabb6ffe61ab1b7f0944d4a26994ee1dc71aa
parentd8588ba55f84059ef43f6ad5b892df59543d0c41 (diff)
downloadu-boot-abb65f123c2c20a61461f731f7fd9740fac09cd5.tar.gz
power: domain: add power domain support for MT7622
This patch add power domain support for Mediatek MT7622 SoCs Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Sam Shih <sam.shih@mediatek.com>
-rw-r--r--drivers/power/domain/mtk-power-domain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c
index c67e8804b1..0bf8a16447 100644
--- a/drivers/power/domain/mtk-power-domain.c
+++ b/drivers/power/domain/mtk-power-domain.c
@@ -60,6 +60,7 @@
#define DCM_TOP_EN BIT(0)
enum scp_domain_type {
+ SCPSYS_MT7622,
SCPSYS_MT7623,
SCPSYS_MT7629,
};
@@ -328,6 +329,7 @@ static int mtk_power_domain_hook(struct udevice *dev)
case SCPSYS_MT7623:
scpd->data = scp_domain_mt7623;
break;
+ case SCPSYS_MT7622:
case SCPSYS_MT7629:
scpd->data = scp_domain_mt7629;
break;
@@ -379,6 +381,10 @@ static int mtk_power_domain_probe(struct udevice *dev)
static const struct udevice_id mtk_power_domain_ids[] = {
{
+ .compatible = "mediatek,mt7622-scpsys",
+ .data = SCPSYS_MT7622,
+ },
+ {
.compatible = "mediatek,mt7623-scpsys",
.data = SCPSYS_MT7623,
},