summaryrefslogtreecommitdiff
path: root/board/brya/board.h
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-04-13 17:19:43 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-16 23:58:21 +0000
commitf4686eb9b5edd2a43d9dc60de676286e913d83fd (patch)
tree73989378942e1a49badf6b3e6d336daf74361a6b /board/brya/board.h
parent38fe2ff702427d99bb8663840f11c1b1d6420919 (diff)
downloadchrome-ec-f4686eb9b5edd2a43d9dc60de676286e913d83fd.tar.gz
brya: Tune mp2964 settings
This tunes some parameters in the MP2964 IMVP9 to improve system stability. In this round, the only tuning we have identified is to change the SVID alert delay time to 200ns. The tuning is applied to the PMIC registers, then committed to the PMIC non volatile memory. On subsequent boots (including power cycle), the tuned values are used and no further tuning is required. 1st boot: mp2964_on_startup: attempting to tune PMIC mp2964: tuning reg 0x3f from 0xe001 to 0xe081 mp2964: tuning reg 0x3f from 0xe001 to 0xe081 mp2964_store_user_all: updating persistent settings mp2964: reg 0x3f already 0xe081 mp2964: reg 0x3f already 0xe081 2nd+ boot, also after removing battery: mp2964_on_startup: attempting to tune PMIC mp2964: reg 0x3f already 0xe081 mp2964: reg 0x3f already 0xe081 BRANCH=none BUG=b:185424011 TEST=unplugged battery, verified new values are persistent Change-Id: Idcb540eed6f893586853b8fed6e84e24b4a2f9e3 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2823634 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'board/brya/board.h')
-rw-r--r--board/brya/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/brya/board.h b/board/brya/board.h
index e48ed173ac..9765c93b1c 100644
--- a/board/brya/board.h
+++ b/board/brya/board.h
@@ -22,6 +22,8 @@
*/
#define CONFIG_HIBERNATE_PSL_VCC1_RST_WAKEUP
+#define CONFIG_MP2964
+
/* LED */
#define CONFIG_LED_PWM
#define CONFIG_LED_PWM_COUNT 2
@@ -155,9 +157,12 @@
#define I2C_PORT_BATTERY NPCX_I2C_PORT5_0
#define I2C_PORT_CHARGER NPCX_I2C_PORT7_0
#define I2C_PORT_EEPROM NPCX_I2C_PORT7_0
+#define I2C_PORT_MP2964 NPCX_I2C_PORT7_0
#define I2C_ADDR_EEPROM_FLAGS 0x50
+#define I2C_ADDR_MP2964_FLAGS 0x20
+
/*
* see b/174768555#comment22
*/