summaryrefslogtreecommitdiff
path: root/board/redrix
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2021-06-30 10:51:40 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-01 08:45:44 +0000
commite039057ac888e5c65f56600f5e4ef27887e7e128 (patch)
treed3516f11ad155c710ace3424ed11241655e3057c /board/redrix
parent529423710567a36b8709f71fe157d995cc11bb9e (diff)
downloadchrome-ec-e039057ac888e5c65f56600f5e4ef27887e7e128.tar.gz
redrix: Remove tune mp2964 settings
BUG=none BRANCH=none TEST=make BOARD=redrix Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I10488f2e3228512359a0784459063c74fcbff82c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2995238 Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/redrix')
-rw-r--r--board/redrix/board.h9
-rw-r--r--board/redrix/build.mk3
-rw-r--r--board/redrix/tune_mp2964.c43
3 files changed, 3 insertions, 52 deletions
diff --git a/board/redrix/board.h b/board/redrix/board.h
index 0a1e6d7d3c..84eb12dc3d 100644
--- a/board/redrix/board.h
+++ b/board/redrix/board.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* Brya board configuration */
+/* Redrix board configuration */
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
@@ -11,7 +11,7 @@
#include "compile_time_macros.h"
/*
- * Early brya boards are not set up for vivaldi
+ * Early redrix boards are not set up for vivaldi
*/
#undef CONFIG_KEYBOARD_VIVALDI
@@ -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
@@ -165,12 +163,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
-
/*
* see b/174768555#comment22
*/
diff --git a/board/redrix/build.mk b/board/redrix/build.mk
index 78fee4583b..84ea934e6f 100644
--- a/board/redrix/build.mk
+++ b/board/redrix/build.mk
@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
-# Brya board specific files build
+# Redrix board specific files build
#
CHIP:=npcx
@@ -21,5 +21,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/redrix/tune_mp2964.c b/board/redrix/tune_mp2964.c
deleted file mode 100644
index 198f06d8eb..0000000000
--- a/board/redrix/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 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);