mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +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
80 lines
1.8 KiB
C
80 lines
1.8 KiB
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.
|
|
*/
|
|
|
|
/* Per-test config flags */
|
|
|
|
#ifndef __CROS_EC_TEST_CONFIG_H
|
|
#define __CROS_EC_TEST_CONFIG_H
|
|
|
|
#ifdef TEST_adapter
|
|
#define CONFIG_CHIPSET_CAN_THROTTLE
|
|
#define CONFIG_EXTPOWER_FALCO
|
|
#endif
|
|
|
|
#ifdef TEST_bklight_lid
|
|
#define CONFIG_BACKLIGHT_LID
|
|
#endif
|
|
|
|
#ifdef TEST_bklight_passthru
|
|
#define CONFIG_BACKLIGHT_LID
|
|
#define CONFIG_BACKLIGHT_REQ_GPIO GPIO_PCH_BKLTEN
|
|
#endif
|
|
|
|
#ifdef TEST_kb_8042
|
|
#define CONFIG_KEYBOARD_PROTOCOL_8042
|
|
#endif
|
|
|
|
#ifdef TEST_kb_mkbp
|
|
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
|
|
#endif
|
|
|
|
#ifdef TEST_kb_scan
|
|
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
|
|
#endif
|
|
|
|
#ifdef TEST_led_spring
|
|
#define CONFIG_BATTERY_MOCK
|
|
#define CONFIG_BATTERY_SMART
|
|
#define CONFIG_CHARGER_INPUT_CURRENT 4032
|
|
#define CONFIG_LED_DRIVER_LP5562
|
|
#define I2C_PORT_MASTER 1
|
|
#define I2C_PORT_BATTERY 1
|
|
#define I2C_PORT_CHARGER 1
|
|
#endif
|
|
|
|
#ifdef TEST_sbs_charging
|
|
#define CONFIG_BATTERY_MOCK
|
|
#define CONFIG_BATTERY_SMART
|
|
#define CONFIG_CHARGER
|
|
#define CONFIG_CHARGER_INPUT_CURRENT 4032
|
|
#define CONFIG_CHARGER_DISCHARGE_ON_AC
|
|
int board_discharge_on_ac(int enabled);
|
|
#define I2C_PORT_MASTER 1
|
|
#define I2C_PORT_BATTERY 1
|
|
#define I2C_PORT_CHARGER 1
|
|
#endif
|
|
|
|
#ifdef TEST_thermal
|
|
#define CONFIG_CHIPSET_CAN_THROTTLE
|
|
#define CONFIG_FANS 1
|
|
#define CONFIG_TEMP_SENSOR
|
|
#endif
|
|
|
|
#ifdef TEST_thermal_falco
|
|
#define CONFIG_BATTERY_MOCK
|
|
#define CONFIG_BATTERY_SMART
|
|
#define CONFIG_CHARGER
|
|
#define CONFIG_CHARGER_INPUT_CURRENT 4032
|
|
#define CONFIG_CHIPSET_CAN_THROTTLE
|
|
#define CONFIG_EXTPOWER_FALCO
|
|
#define CONFIG_FANS 1
|
|
#define CONFIG_TEMP_SENSOR
|
|
#define I2C_PORT_BATTERY 1
|
|
#define I2C_PORT_CHARGER 1
|
|
#define I2C_PORT_MASTER 1
|
|
#endif
|
|
|
|
#endif /* __CROS_EC_TEST_CONFIG_H */
|