Skip to content

Commit

Permalink
power: domain: add power domain support for MT7622
Browse files Browse the repository at this point in the history
This patch add power domain support for Mediatek MT7622 SoCs

Signed-off-by: Ryder Lee <[email protected]>
Signed-off-by: Sam Shih <[email protected]>
  • Loading branch information
SamShih33 authored and trini committed Jan 16, 2020
1 parent d8588ba commit abb65f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/power/domain/mtk-power-domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#define DCM_TOP_EN BIT(0)

enum scp_domain_type {
SCPSYS_MT7622,
SCPSYS_MT7623,
SCPSYS_MT7629,
};
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -378,6 +380,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,
Expand Down

0 comments on commit abb65f1

Please sign in to comment.