blob: 2da92527754c6f2e477c547f4791e962fe47d0a2 (
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
49
50
51
52
53
|
# 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.
#
# This file defines the default config values shared by all NPCX chipsets
#
if SOC_FAMILY_NPCX
# Enable NPCX firmware header generator
config NPCX_HEADER
default y
choice NPCX_HEADER_SPI_MAX_CLOCK_CHOICE
default NPCX_HEADER_SPI_MAX_CLOCK_50
endchoice
choice NPCX_HEADER_SPI_READ_MODE_CHOICE
default NPCX_HEADER_SPI_READ_MODE_DUAL
endchoice
choice NPCX_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_CHOICE
default NPCX_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_2
endchoice
# ADC
# The resolution and oversamplig values are fixed by the NPCX ADC driver
config PLATFORM_EC_ADC_RESOLUTION
default 10
config PLATFORM_EC_ADC_OVERSAMPLING
default 0
# Set the system clock to 15MHz.
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 15000000
if WATCHDOG
# Set the delay time for printing panic data.
# 1 cycle is about 32ms. 500ms is about 16 cycles.
config WDT_NPCX_DELAY_CYCLES
default 16
endif # WATCHDOG
# The maximum supported time the NPCX can spend in deep-sleep with instant
# wake is 200 ms, so the hook tick interval is set to match.
config CROS_EC_HOOK_TICK_INTERVAL
default 200000
endif # SOC_FAMILY_NPCX
|