summaryrefslogtreecommitdiff
path: root/zephyr/program/nissa/npcx_program.conf
blob: 83ee245a8d414714f5149d5607c671a6418ef897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# EC chip configuration: NPCX993
CONFIG_CROS_SYSTEM_NPCX=y
CONFIG_SOC_SERIES_NPCX9=y
CONFIG_PLATFORM_EC_WORKAROUND_FLASH_DOWNLOAD_API=y
CONFIG_SYSCON=y
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=256

# Common sensor drivers
CONFIG_PLATFORM_EC_ACCEL_LIS2DW12=y

# Keyboard
CONFIG_PLATFORM_EC_KBLIGHT_ENABLE_PIN=y
# Ensure recovery key combination (esc+refresh+power) is reliable
CONFIG_PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI3=y
CONFIG_PLATFORM_EC_KEYBOARD_REFRESH_ROW3=y

# TCPC+PPC: both C0 and C1 (if present) are RAA489000
CONFIG_PLATFORM_EC_USB_PD_TCPM_RAA489000=y
CONFIG_PLATFORM_EC_USB_PD_DISCHARGE_TCPC=y
CONFIG_PLATFORM_EC_USB_PD_VBUS_DETECT_TCPC=y
CONFIG_PLATFORM_EC_USB_PD_TCPC_LPM_EXIT_DEBOUNCE_US=100000
# RAA489000 uses TCPCI but not a separate PPC, so custom function is required
CONFIG_PLATFORM_EC_USB_PD_5V_EN_CUSTOM=y
# type C port 1 redriver
CONFIG_PLATFORM_EC_USBC_RETIMER_ANX7483=y

# Save some flash space by turning off features we don't care much about
# (EC Kconfig.console turns the ones we do care about on by default)
CONFIG_SHELL_MINIMAL=y

# FRS enable
CONFIG_PLATFORM_EC_USB_PD_FRS=y
CONFIG_PLATFORM_EC_USB_PD_FRS_TCPC=y

# Charger driver and configuration
CONFIG_PLATFORM_EC_CHARGER_RAA489000=y
CONFIG_PLATFORM_EC_OCPC_DEF_RBATT_MOHMS=22

# VSENSE: PP3300_S5 & PP1050_PROC
CONFIG_ADC_CMP_NPCX=y
CONFIG_ADC_CMP_NPCX_WORKQUEUE=y
CONFIG_ADC_CMP_NPCX_WORKQUEUE_PRIORITY=12
CONFIG_SENSOR=y
CONFIG_SENSOR_SHELL=n