diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2022-01-11 15:09:31 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-11 09:57:19 +0000 |
commit | 52d3985bb2b9c155cd1bc1b48e3617ce7b5ce4dc (patch) | |
tree | dfe1100a2e8dc3dbe8c4eb96ca206753a327ad3f | |
parent | 55fbae19d4c2c62859987c99aa7e6a462fb0e136 (diff) | |
download | chrome-ec-52d3985bb2b9c155cd1bc1b48e3617ce7b5ce4dc.tar.gz |
volmar: Remove tune_mp2964.c
Remove tune_mp2964.c due to outdated.
BUG=None
BRANCH=brya
TEST=make BOARD=volmar
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I3a861d78b589775461250e5fb5081c860c3c2d89
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3379784
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/volmar/build.mk | 1 | ||||
-rw-r--r-- | board/volmar/tune_mp2964.c | 43 |
2 files changed, 0 insertions, 44 deletions
diff --git a/board/volmar/build.mk b/board/volmar/build.mk index e69587a781..cd6a38a852 100644 --- a/board/volmar/build.mk +++ b/board/volmar/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/volmar/tune_mp2964.c b/board/volmar/tune_mp2964.c deleted file mode 100644 index f67caa587e..0000000000 --- a/board/volmar/tune_mp2964.c +++ /dev/null @@ -1,43 +0,0 @@ -/* Copyright 2022 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 brya */ - -#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); |