diff options
Diffstat (limited to 'board/casta/board.h')
-rw-r--r-- | board/casta/board.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/board/casta/board.h b/board/casta/board.h new file mode 100644 index 0000000000..8d83af75af --- /dev/null +++ b/board/casta/board.h @@ -0,0 +1,65 @@ +/* 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. + */ + +/* Casta 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 +#define VARIANT_OCTOPUS_TCPC_0_PS8751 +#define VARIANT_OCTOPUS_NO_SENSORS +#include "baseboard.h" + +/* USB PD */ +#undef CONFIG_USB_PD_VBUS_MEASURE_ADC_EACH_PORT +#define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT + +#define CONFIG_TEMP_SENSOR +#define CONFIG_THERMISTOR + +/* Keyboard Backlight is unconnected in casta proto */ +#undef CONFIG_PWM +#undef CONFIG_PWM_KBLIGHT + +/* All casta systems are clamshells */ +#undef CONFIG_TABLET_MODE +#undef CONFIG_TABLET_SWITCH + +/* TODO(b/119872005): Casta: confirm thermistor parts */ +#define CONFIG_STEINHART_HART_3V3_13K7_47K_4050B +#define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B +#define CONFIG_MKBP_EVENT +#define CONFIG_MKBP_USE_HOST_EVENT + +#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 temp_sensor_id { + TEMP_SENSOR_BATTERY, + TEMP_SENSOR_AMBIENT, + TEMP_SENSOR_CHARGER, + TEMP_SENSOR_COUNT +}; + +/* List of possible batteries */ +/* TODO(b/119871861): Casta: battery datasheets and specs */ +enum battery_type { + BATTERY_TYPE_COUNT, +}; + +#endif /* !__ASSEMBLER__ */ + +#endif /* __CROS_EC_BOARD_H */ |