mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-17 02:21:15 +00:00
BRANCH=none BUG=b:78770036 TEST=build Change-Id: I10ce1cc0196bc1e9b7d892834351bb9b3d27e3e1 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1042730 Reviewed-by: Scott Collyer <scollyer@chromium.org>
48 lines
1013 B
C
48 lines
1013 B
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.
|
|
*/
|
|
|
|
/* Phaser board configuration */
|
|
|
|
#ifndef __CROS_EC_BOARD_H
|
|
#define __CROS_EC_BOARD_H
|
|
|
|
/* Select Baseboard features */
|
|
#define VARIANT_OCTOPUS_EC_NPCX796FB
|
|
#define VARIANT_OCTOPUS_CHARGER_ISL9238
|
|
#include "baseboard.h"
|
|
|
|
/* Optional features */
|
|
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
|
|
|
|
/* We don't have Vbus ADCs */
|
|
#undef CONFIG_USB_PD_VBUS_MEASURE_ADC_EACH_PORT
|
|
#define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
#include "gpio_signal.h"
|
|
#include "registers.h"
|
|
|
|
enum adc_channel {
|
|
ADC_TEMP_SENSOR_AMB, /* ADC0 */
|
|
ADC_TEMP_SENSOR_CHARGER, /* ADC1 */
|
|
ADC_CH_COUNT,
|
|
};
|
|
|
|
enum pwm_channel {
|
|
PWM_CH_KBLIGHT,
|
|
PWM_CH_COUNT
|
|
};
|
|
|
|
/* List of possible batteries */
|
|
enum battery_type {
|
|
BATTERY_PANASONIC,
|
|
BATTERY_TYPE_COUNT,
|
|
};
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
#endif /* __CROS_EC_BOARD_H */
|