mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
This tests host event and hook are triggered when AC status changes. BUG=chrome-os-partner:19236 TEST=Pass the test. BRANCH=None Change-Id: I9e4263f3f6e273bfb0b24671a4e5c56b20a04e1a Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61554 Reviewed-by: Randall Spangler <rspangler@chromium.org>
52 lines
930 B
C
52 lines
930 B
C
/* 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
|
|
|
|
/* Assertion support */
|
|
#define CONFIG_DEBUG
|
|
#define CONFIG_ASSERT_HELP
|
|
|
|
/* Optional features */
|
|
#define CONFIG_EXTPOWER_GPIO
|
|
#define CONFIG_HOSTCMD
|
|
#define CONFIG_HOST_EMU
|
|
#define CONFIG_LID_SWITCH
|
|
#define CONFIG_POWER_BUTTON
|
|
#define CONFIG_TEMP_SENSOR
|
|
|
|
/* Keyboard protocol */
|
|
#ifdef KB_8042
|
|
#define CONFIG_KEYBOARD_PROTOCOL_8042
|
|
#else
|
|
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
|
|
#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
|
|
};
|
|
|
|
#endif /* __BOARD_H */
|