mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Some chips previously defined CONFIG_I2C and others didn't. Standardize the usage by removing CONFIG_I2C from all config_chip files and force it to be defined at the board level. Also, make boards define CONFIG_I2C_MASTER and/or CONFIG_I2C_SLAVE based on the I2C interfaces they will use - this will assist with some later cleanup. BUG=chromium:550206 TEST=`make buildall -j` BRANCH=None Change-Id: I2f0970e494ea49611abc315587c7c9aa0bc2d14a Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/310070 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
56 lines
1.4 KiB
C
56 lines
1.4 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.
|
|
*/
|
|
|
|
/* Pit board configuration */
|
|
|
|
#ifndef __CROS_EC_BOARD_H
|
|
#define __CROS_EC_BOARD_H
|
|
|
|
/* Optional features */
|
|
#define CONFIG_BATTERY_BQ20Z453
|
|
#define CONFIG_BATTERY_SMART
|
|
#define CONFIG_CHARGER_TPS65090
|
|
#define CONFIG_CHIPSET_GAIA
|
|
#define CONFIG_CMD_PMU
|
|
#define CONFIG_EXTPOWER_GPIO
|
|
#define CONFIG_HOST_COMMAND_STATUS
|
|
#define CONFIG_I2C
|
|
#define CONFIG_I2C_MASTER
|
|
#define CONFIG_KEYBOARD_BOARD_CONFIG
|
|
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
|
|
#define CONFIG_PMU_HARD_RESET
|
|
#define CONFIG_PMU_POWERINFO
|
|
#define CONFIG_PMU_TPS65090
|
|
#define CONFIG_PMU_TPS65090_CHARGING_LED
|
|
#define CONFIG_SPI
|
|
#define CONFIG_SPI_PROTOCOL_V2
|
|
#define CONFIG_VBOOT_HASH
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* Keyboard output port list */
|
|
#define KB_OUT_PORT_LIST GPIO_A, GPIO_B, GPIO_C
|
|
|
|
/* Single I2C port, where the EC is the master. */
|
|
#define I2C_PORT_MASTER 0
|
|
#define I2C_PORT_BATTERY I2C_PORT_MASTER
|
|
#define I2C_PORT_CHARGER I2C_PORT_MASTER
|
|
|
|
/* Charger sense resistors */
|
|
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 12
|
|
#define CONFIG_CHARGER_SENSE_RESISTOR 16
|
|
|
|
/* Timer selection */
|
|
#define TIM_CLOCK_MSB 3
|
|
#define TIM_CLOCK_LSB 9
|
|
#define TIM_POWER_LED 2
|
|
#define TIM_WATCHDOG 4
|
|
|
|
#include "gpio_signal.h"
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
#endif /* __CROS_EC_BOARD_H */
|