Skip to content

Commit 14d9f1a

Browse files
committed
Separate temp formula for Hi3536Dv100
1 parent 6c9e542 commit 14d9f1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hal/hisi/hal_hisi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,11 @@ static float hisi_get_temp() {
556556
tempo = ((tempo - 117) / 798) * 165 - 40;
557557
break;
558558
case HISI_3536D:
559+
// PMC70 bit[9:0]
560+
tempo =
561+
hisi_reg_temp(HI3536_PERI_PMC70, 10, HI3536_PERI_PMC68, 0x40000000);
562+
tempo = ((tempo * 180) / 256) - 40;
563+
break;
559564
case HISI_3536C:
560565
// PMC70 bit[9:0]
561566
tempo =

0 commit comments

Comments
 (0)