summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2021-06-22 14:54:39 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-22 09:17:13 +0000
commit4ec9bbd593d44d4709737fc4a5c8551f530a088b (patch)
tree4235575dabefed128e53583a7b152430dd52eb9f
parent4f188e6e2659880d5214747edfa326c8c261f104 (diff)
downloadchrome-ec-4ec9bbd593d44d4709737fc4a5c8551f530a088b.tar.gz
primus: remove tuning MP2964
We don't need to tuning MP2964 timing which already confirmed by MPS. BUG=b:191719287 BRANCH=none TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ief219d418dee74949b50d99af3580a973198136d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977868 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/primus/build.mk1
-rw-r--r--board/primus/tune_mp2964.c41
2 files changed, 0 insertions, 42 deletions
diff --git a/board/primus/build.mk b/board/primus/build.mk
index b2f1423b1f..81b9d5efe3 100644
--- a/board/primus/build.mk
+++ b/board/primus/build.mk
@@ -22,5 +22,4 @@ board-y+=led.o
board-y+=pwm.o
board-y+=ps2.o
board-y+=sensors.o
-board-y+=tune_mp2964.o
board-y+=usbc_config.o
diff --git a/board/primus/tune_mp2964.c b/board/primus/tune_mp2964.c
deleted file mode 100644
index 2d37d4ee61..0000000000
--- a/board/primus/tune_mp2964.c
+++ /dev/null
@@ -1,41 +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 primus */
-
-#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);