72 lines
1.7 KiB
C
72 lines
1.7 KiB
C
/* Copyright 2018 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.
|
|
*/
|
|
|
|
/* Aleena board configuration */
|
|
|
|
#ifndef __CROS_EC_BOARD_H
|
|
#define __CROS_EC_BOARD_H
|
|
|
|
#define VARIANT_GRUNT_TCPC_0_ANX3429
|
|
|
|
#include "baseboard.h"
|
|
|
|
/*
|
|
* By default, enable all console messages excepted HC, ACPI and event:
|
|
* The sensor stack is generating a lot of activity.
|
|
*/
|
|
#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_EVENTS) | CC_MASK(CC_LPC)))
|
|
#undef CONFIG_HOSTCMD_DEBUG_MODE
|
|
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
|
|
|
|
/* Power and battery LEDs */
|
|
#define CONFIG_LED_COMMON
|
|
#define CONFIG_CMD_LEDTEST
|
|
|
|
#define CONFIG_LED_ONOFF_STATES
|
|
|
|
#define I2C_PORT_KBLIGHT NPCX_I2C_PORT5_0
|
|
|
|
/* KB backlight driver */
|
|
#define CONFIG_LED_DRIVER_LM3630A
|
|
|
|
#define CONFIG_MKBP_USE_GPIO
|
|
|
|
/* Motion sensing drivers */
|
|
#define CONFIG_ACCELGYRO_BMI160
|
|
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \
|
|
TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
|
|
#define CONFIG_ACCEL_INTERRUPTS
|
|
#define CONFIG_ACCEL_KX022
|
|
#define CONFIG_CMD_ACCELS
|
|
#define CONFIG_CMD_ACCEL_INFO
|
|
#define CONFIG_TABLET_MODE
|
|
#define CONFIG_LID_ANGLE
|
|
#define CONFIG_LID_ANGLE_UPDATE
|
|
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
|
|
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
|
|
/*
|
|
* Slew rate on the PP1800_SENSOR load switch requires a short delay on startup.
|
|
*/
|
|
#undef CONFIG_MOTION_SENSE_RESUME_DELAY_US
|
|
#define CONFIG_MOTION_SENSE_RESUME_DELAY_US (10 * MSEC)
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
enum pwm_channel {
|
|
PWM_CH_KBLIGHT = 0,
|
|
PWM_CH_COUNT
|
|
};
|
|
|
|
enum battery_type {
|
|
BATTERY_PANASONIC,
|
|
BATTERY_MURATA_4012,
|
|
BATTERY_MURATA_4013,
|
|
BATTERY_TYPE_COUNT,
|
|
};
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
#endif /* __CROS_EC_BOARD_H */
|