diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-11-24 11:07:10 +0000 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-03-25 15:25:54 +0000 |
commit | bb104f27d4d764e4e47e67887d1c21164adccc04 (patch) | |
tree | 790e93e663b3a2fafffe8b69b7f3718a1604adb5 | |
parent | 01cec8f40cd7749e1cecc8123bff88903a6d8be9 (diff) | |
download | trusted-firmware-a-bb104f27d4d764e4e47e67887d1c21164adccc04.tar.gz |
allwinner: Add H616 SoC ID
Change-Id: I557fd05401e24204952135cf3ca26479a43ad1f1
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
-rw-r--r-- | plat/allwinner/common/include/sunxi_def.h | 1 | ||||
-rw-r--r-- | plat/allwinner/common/sunxi_bl31_setup.c | 3 | ||||
-rw-r--r-- | plat/allwinner/common/sunxi_common.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/plat/allwinner/common/include/sunxi_def.h b/plat/allwinner/common/include/sunxi_def.h index 73c445386b..f0368167c5 100644 --- a/plat/allwinner/common/include/sunxi_def.h +++ b/plat/allwinner/common/include/sunxi_def.h @@ -17,5 +17,6 @@ #define SUNXI_SOC_A64 0x1689 #define SUNXI_SOC_H5 0x1718 #define SUNXI_SOC_H6 0x1728 +#define SUNXI_SOC_H616 0x1823 #endif /* SUNXI_DEF_H */ diff --git a/plat/allwinner/common/sunxi_bl31_setup.c b/plat/allwinner/common/sunxi_bl31_setup.c index fb741dc0d6..d3c450762f 100644 --- a/plat/allwinner/common/sunxi_bl31_setup.c +++ b/plat/allwinner/common/sunxi_bl31_setup.c @@ -123,6 +123,9 @@ void bl31_platform_setup(void) case SUNXI_SOC_H6: soc_name = "H6"; break; + case SUNXI_SOC_H616: + soc_name = "H616"; + break; default: soc_name = "unknown"; break; diff --git a/plat/allwinner/common/sunxi_common.c b/plat/allwinner/common/sunxi_common.c index 7166392f4d..3d3a761b11 100644 --- a/plat/allwinner/common/sunxi_common.c +++ b/plat/allwinner/common/sunxi_common.c @@ -112,6 +112,7 @@ int sunxi_init_platform_r_twi(uint16_t socid, bool use_rsb) device_bit = BIT(6); break; case SUNXI_SOC_H6: + case SUNXI_SOC_H616: pin_func = use_rsb ? 0x22 : 0x33; device_bit = BIT(16); reset_offset = use_rsb ? 0x1bc : 0x19c; |