blob: be3a55f215233b3e7acf2eed0f4b6affaa03a891 (
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
66
67
68
69
70
71
72
73
74
75
76
77
|
/* Copyright 2020 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.
*/
/* Guybrush board configuration */
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
/* Baseboard features */
#include "baseboard.h"
/* Motion sensing drivers */
/* Keyboard features */
/* Sensors */
#define CONFIG_ACCELGYRO_BMI160
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
#define CONFIG_ACCELGYRO_BMI3XX
#define CONFIG_ACCELGYRO_BMI3XX_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
#define CONFIG_ACCEL_INTERRUPTS
#define CONFIG_ACCEL_BMA4XX
#define I2C_PORT_ACCEL I2C_PORT_SENSOR
/* EC console commands */
#define CONFIG_CMD_ACCELS
#define CONFIG_CMD_ACCEL_INFO
#define CONFIG_CMD_BUTTON
/* Work around hardware issues by delaying hibernate for a couple of months */
#undef CONFIG_HIBERNATE_DELAY_SEC
#define CONFIG_HIBERNATE_DELAY_SEC (3600 * 24 * 60)
/* USB Type C and USB PD defines */
/* USB Type A Features */
/* BC 1.2 */
/* Volume Button feature */
/* Fan features */
/* LED features */
#define CONFIG_LED_COMMON
#define CONFIG_LED_ONOFF_STATES
#ifndef __ASSEMBLER__
#include "gpio_signal.h"
#include "registers.h"
/* Motion sensor interrupt */
void motion_interrupt(enum gpio_signal signal);
/* Battery Types */
enum battery_type {
BATTERY_AEC,
BATTERY_AP18F4M,
BATTERY_POWER_TECH,
BATTERY_TYPE_COUNT,
};
enum base_accelgyro_type {
BASE_GYRO_NONE = 0,
BASE_GYRO_BMI160 = 1,
BASE_GYRO_BMI323 = 2,
};
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */
|