From 86250dffd64828bdf3f2de49b79e7f62d85373d6 Mon Sep 17 00:00:00 2001 From: Wyon Bi Date: Mon, 20 Mar 2023 08:48:42 +0000 Subject: [PATCH] mfd: max96745: Set I2C speed to Fast-mode Signed-off-by: Wyon Bi Change-Id: Ide9286e46ec3b1829a6c0346c7780f355d7e2281 --- drivers/mfd/max96745.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/max96745.c b/drivers/mfd/max96745.c index 53cf69a5521b..bd93d2db71a7 100644 --- a/drivers/mfd/max96745.c +++ b/drivers/mfd/max96745.c @@ -116,6 +116,9 @@ static void max96745_power_on(struct max96745 *max96745) msleep(200); } + /* Set for I2C Fast-mode speed */ + regmap_write(max96745->regmap, 0x0070, 0x16); + if (max96745->idle_disc) { regmap_update_bits(max96745->regmap, 0x0076, DIS_REM_CC, FIELD_PREP(DIS_REM_CC, 1));