Skip to content

Commit fe98d0f

Browse files
jianxinpankhilman
authored andcommitted
firmware: meson_sm: Add secure power domain support
The Amlogic Meson A1/C1 Secure Monitor implements calls to control power domain. Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Link: https://lore.kernel.org/r/1579087831-94965-2-git-send-email-jianxin.pan@amlogic.com
1 parent bb6d3fb commit fe98d0f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/firmware/meson/meson_sm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ static const struct meson_sm_chip gxbb_chip = {
4444
CMD(SM_EFUSE_WRITE, 0x82000031),
4545
CMD(SM_EFUSE_USER_MAX, 0x82000033),
4646
CMD(SM_GET_CHIP_ID, 0x82000044),
47+
CMD(SM_A1_PWRC_SET, 0x82000093),
48+
CMD(SM_A1_PWRC_GET, 0x82000095),
4749
{ /* sentinel */ },
4850
},
4951
};

‎include/linux/firmware/meson/meson_sm.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ enum {
1212
SM_EFUSE_WRITE,
1313
SM_EFUSE_USER_MAX,
1414
SM_GET_CHIP_ID,
15+
SM_A1_PWRC_SET,
16+
SM_A1_PWRC_GET,
1517
};
1618

1719
struct meson_sm_firmware;

0 commit comments

Comments
 (0)