blob: f84696d58bd27e092cc802129383f4fe024f736a (
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
54
55
56
57
58
59
60
61
62
63
64
65
|
/* Copyright (c) 2013 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.
*/
/* Emulator board configuration */
#ifndef __BOARD_H
#define __BOARD_H
/* Optional features */
#define CONFIG_EXTPOWER_GPIO
#undef CONFIG_FMAP
#define CONFIG_POWER_BUTTON
#define CONFIG_TEMP_SENSOR
#undef CONFIG_WATCHDOG
/* Host test config */
#ifdef TEST_SMART_BATTERY_CHARGER
#define CONFIG_BATTERY_MOCK
#define CONFIG_CHARGER
#define CONFIG_CHARGER_INPUT_CURRENT 4032
#endif
/* Keyboard protocol */
#ifdef TEST_KB_8042
#define CONFIG_KEYBOARD_PROTOCOL_8042
#else
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
#endif
/* Turbo-mode charger tests */
#ifdef TEST_EXTPOWER_FALCO
#define CONFIG_EXTPOWER_FALCO
#endif
#define CONFIG_WP_ACTIVE_HIGH
enum gpio_signal {
GPIO_EC_INT,
GPIO_LID_OPEN,
GPIO_POWER_BUTTON_L,
GPIO_WP,
GPIO_ENTERING_RW,
GPIO_AC_PRESENT,
GPIO_COUNT
};
enum temp_sensor_id {
TEMP_SENSOR_CPU = 0,
TEMP_SENSOR_BOARD,
TEMP_SENSOR_CASE,
TEMP_SENSOR_COUNT
};
enum adc_channel {
ADC_CH_CHARGER_CURRENT,
ADC_AC_ADAPTER_ID_VOLTAGE,
ADC_CH_COUNT
};
#endif /* __BOARD_H */
|