Skip to content

Commit 6843faa

Browse files
rriveramcruscarlescufi
authored andcommitted
regulator: cp9314: Adds support for B1 CHIP_REV
Adds support for revision B1 silicon when checking CHIP_REV. This silicon revision introduces the hardware I2C lock. Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent 63acbef commit 6843faa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/regulator/regulator_cp9314.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ LOG_MODULE_REGISTER(CP9314, CONFIG_REGULATOR_LOG_LEVEL);
119119
#define CP9314_REG_BC_STS_C 0x62
120120
#define CP9314_CHIP_REV_MASK GENMASK(7, 4)
121121
#define CP9314_CHIP_REV_B0 0x1
122+
#define CP9314_CHIP_REV_B1 0x3
122123

123124
#define CP9314_REG_FORCE_SC_MISC 0x69
124125
#define CP9314_FORCE_CSI_EN BIT(0)
@@ -525,6 +526,8 @@ static int regulator_cp9314_init(const struct device *dev)
525526
return ret;
526527
}
527528
break;
529+
case CP9314_CHIP_REV_B1:
530+
break;
528531
default:
529532
LOG_ERR("Invalid CP9314 REV:0x%x\n", value);
530533
return -ENOTSUP;

0 commit comments

Comments
 (0)