mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
Rather than compile it by default for host-based tests, only compile
it for the few tests that actually use it. Since those (and all
boards) now only use if if they also have a keyscan task, we can get
rid of the #ifdefs in keyboard_mkbp.c as well.
And remove a TODO we'll never do...
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build all boards; pass unit tests. These pass:
util/make_all.sh
make BOARD=pit tests
Change-Id: I44d1806cfb375027a7ed0b33a5e9bdbbed8ccddc
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/174513
53 lines
911 B
C
53 lines
911 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
|
|
|
|
/* Optional features */
|
|
#define CONFIG_EXTPOWER_GPIO
|
|
#undef CONFIG_FMAP
|
|
#define CONFIG_POWER_BUTTON
|
|
#undef CONFIG_WATCHDOG
|
|
#define CONFIG_SWITCH
|
|
|
|
#undef CONFIG_CONSOLE_HISTORY
|
|
#define CONFIG_CONSOLE_HISTORY 4
|
|
|
|
#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_PCH_BKLTEN,
|
|
GPIO_ENABLE_BACKLIGHT,
|
|
|
|
GPIO_COUNT
|
|
};
|
|
|
|
enum temp_sensor_id {
|
|
TEMP_SENSOR_CPU = 0,
|
|
TEMP_SENSOR_BOARD,
|
|
TEMP_SENSOR_CASE,
|
|
TEMP_SENSOR_BATTERY,
|
|
|
|
TEMP_SENSOR_COUNT
|
|
};
|
|
|
|
enum adc_channel {
|
|
ADC_CH_CHARGER_CURRENT,
|
|
ADC_AC_ADAPTER_ID_VOLTAGE,
|
|
|
|
ADC_CH_COUNT
|
|
};
|
|
|
|
#endif /* __BOARD_H */
|