summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZick Wei <zick.wei@quanta.corp-partner.google.com>2021-12-27 15:38:17 +0800
committerCommit Bot <commit-bot@chromium.org>2022-01-03 02:04:42 +0000
commitbfa7f08415500e7b2671e7c4265b65a88167bfe3 (patch)
treeb88b15b9777c71c3004f31ac1952b2f21b86c47b
parent7fcaabafe09e1014471392bd97e0a77fd2e9566d (diff)
downloadchrome-ec-bfa7f08415500e7b2671e7c4265b65a88167bfe3.tar.gz
draco: remove tune_mp2964
BUG=b:210970640 BRANCH=none TEST=make BOARD=draco Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I5017934223861e6cb867d6b610656c7a3478a4f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354203 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
-rw-r--r--board/draco/board.h5
-rw-r--r--board/draco/build.mk1
-rw-r--r--board/draco/tune_mp2964.c43
3 files changed, 0 insertions, 49 deletions
diff --git a/board/draco/board.h b/board/draco/board.h
index 92bf5ac2ce..ee8e8883fb 100644
--- a/board/draco/board.h
+++ b/board/draco/board.h
@@ -24,8 +24,6 @@
*/
#define CONFIG_HIBERNATE_PSL_VCC1_RST_WAKEUP
-#define CONFIG_MP2964
-
/* LED */
#define CONFIG_LED_PWM
#define CONFIG_LED_PWM_COUNT 2
@@ -171,12 +169,9 @@
#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
-
#define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x56
#define USBC_PORT_C2_BB_RETIMER_I2C_ADDR 0x57
diff --git a/board/draco/build.mk b/board/draco/build.mk
index e56ad592fe..c4260fac02 100644
--- a/board/draco/build.mk
+++ b/board/draco/build.mk
@@ -22,5 +22,4 @@ board-y+=keyboard.o
board-y+=led.o
board-y+=pwm.o
board-y+=sensors.o
-board-y+=tune_mp2964.o
board-y+=usbc_config.o
diff --git a/board/draco/tune_mp2964.c b/board/draco/tune_mp2964.c
deleted file mode 100644
index b6d9c383e8..0000000000
--- a/board/draco/tune_mp2964.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Tune the MP2964 IMVP9.1 parameters for draco */
-
-#include "common.h"
-#include "compile_time_macros.h"
-#include "console.h"
-#include "hooks.h"
-#include "mp2964.h"
-
-const static struct mp2964_reg_val rail_a[] = {
- { MP2964_MFR_ALT_SET, 0xe081 }, /* ALERT_DELAY = 200ns */
-};
-const static struct mp2964_reg_val rail_b[] = {
- { MP2964_MFR_ALT_SET, 0xe081 }, /* ALERT_DELAY = 200ns */
-};
-
-static void mp2964_on_startup(void)
-{
- static int chip_updated;
- int status;
-
- if (get_board_id() != 1)
- return;
-
- if (chip_updated)
- return;
-
- chip_updated = 1;
-
- ccprintf("%s: attempting to tune PMIC\n", __func__);
-
- status = mp2964_tune(rail_a, ARRAY_SIZE(rail_a),
- rail_b, ARRAY_SIZE(rail_b));
- if (status != EC_SUCCESS)
- ccprintf("%s: could not update all settings\n", __func__);
-}
-
-DECLARE_HOOK(HOOK_CHIPSET_STARTUP, mp2964_on_startup,
- HOOK_PRIO_FIRST);