From 8d735d2aa34655fa49c86b3df3ae9c478315ca61 Mon Sep 17 00:00:00 2001 From: Hsin-Hsiung Wang Date: Thu, 4 Mar 2021 12:05:57 +0800 Subject: soc/mediatek/mt8192: mt6315: revise initial setting Remove unused boot status settings. Reset the power-off sequence to zero to meet hardware requirement. BUG=b:179000151 BRANCH=none TEST=boot asurada correctly Signed-off-by: Hsin-Hsiung Wang Change-Id: Ie9d39be532ec378bd6df6bf1b93307dae4068fc6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51246 Reviewed-by: Hung-Te Lin Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8192/mt6315.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/soc/mediatek/mt8192/mt6315.c b/src/soc/mediatek/mt8192/mt6315.c index 7f9b770197..4f3e54c966 100644 --- a/src/soc/mediatek/mt8192/mt6315.c +++ b/src/soc/mediatek/mt8192/mt6315.c @@ -20,11 +20,6 @@ static const struct mt6315_setting init_setting_cpu[] = { {0x1417, 0x43, 0xFF, 0}, {0x3A2, 0x2A, 0xFF, 0}, {0x3A1, 0x7C, 0xFF, 0}, - /* clear boot status */ - {0x12A, 0x3, 0xFF, 0}, - {0xD, 1, 0x1, 0}, - {0xD, 0, 0x1, 0}, - {0x1416, 0xF, 0xF, 0}, /* init setting */ {0x13, 0x2, 0x2, 0}, {0x15, 0x1F, 0x1F, 0}, @@ -90,6 +85,8 @@ static const struct mt6315_setting init_setting_cpu[] = { {0x16AC, 0xD7, 0xFF, 0}, {0x16AD, 0x81, 0xFF, 0}, {0x16AE, 0x13, 0x3F, 0}, + /* reset sequence off to zero */ + {0x139, 0, 0x1, 0}, /* enable magic key protection */ {0x3A1, 0, 0xFF, 0}, {0x3A2, 0, 0xFF, 0}, @@ -182,6 +179,8 @@ static const struct mt6315_setting init_setting_gpu[] = { {0x16AE, 0x13, 0x3F, 0}, /* Don't remove this! it's MT6315 for GPU only to disable VBUCK3 */ {0x1440, 0x0, 0x4, 0}, + /* reset sequence off to zero */ + {0x139, 0, 0x1, 0}, /* enable magic key protection */ {0x3A1, 0, 0xFF, 0}, {0x3A2, 0, 0xFF, 0}, -- cgit v1.2.3