mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
d8588ba55f
commit
abb65f123c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue