mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
This module controls the inductive charging transmitter. For now, the policy is to charge whenever possible. BUG=chrome-os-partner:31392 TEST=Unit test passed BRANCH=None Change-Id: Ie48a38ad92fe2bc3329c4962e96572f2bc40b4e6 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/212715
53 lines
963 B
C
53 lines
963 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 */
|
|
#undef CONFIG_ACCEL_CALIBRATE
|
|
#define CONFIG_EXTPOWER_GPIO
|
|
#undef CONFIG_FMAP
|
|
#define CONFIG_POWER_BUTTON
|
|
#undef CONFIG_WATCHDOG
|
|
#define CONFIG_SWITCH
|
|
#define CONFIG_INDUCTIVE_CHARGING
|
|
|
|
#undef CONFIG_CONSOLE_HISTORY
|
|
#define CONFIG_CONSOLE_HISTORY 4
|
|
|
|
#define CONFIG_WP_ACTIVE_HIGH
|
|
|
|
#include "gpio_signal.h"
|
|
|
|
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
|
|
};
|
|
|
|
/* Identifiers for each accelerometer used. */
|
|
enum accel_id {
|
|
ACCEL_BASE,
|
|
ACCEL_LID,
|
|
|
|
/* Number of accelerometers. */
|
|
ACCEL_COUNT
|
|
};
|
|
|
|
#endif /* __BOARD_H */
|