MLK-13140 ARM: imx: update REFTOP_VBGADJ according to fuse setting
On i.MX6ULL, according to the latest REFTOP_TRIM fuse define, we need
to set the REFTOP_VBGADJ bits in PMU_MISC0 register as below table:
'000" - set REFTOP_VBGADJ[2:0] to 3'b000
'001" - set REFTOP_VBGADJ[2:0] to 3'b001
'010" - set REFTOP_VBGADJ[2:0] to 3'b010
'011" - set REFTOP_VBGADJ[2:0] to 3'b011
'100" - set REFTOP_VBGADJ[2:0] to 3'b100
'101" - set REFTOP_VBGADJ[2:0] to 3'b101
'110" - set REFTOP_VBGADJ[2:0] to 3'b110
'111" - set REFTOP_VBGADJ[2:0] to 3'b111
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit b2690f5cf54390999acb2f1f7b788bfd18fa11be)
This commit is contained in:
@ -349,11 +349,6 @@ static void init_bandgap(void)
|
||||
val >>= OCOTP_MEM0_REFTOP_TRIM_SHIFT;
|
||||
val &= 0x7;
|
||||
|
||||
if (val == 0) {
|
||||
val = 6;
|
||||
} else if (val == 6) {
|
||||
val = 0;
|
||||
}
|
||||
writel(val << BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ_SHIFT,
|
||||
&anatop->ana_misc0_set);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user