summaryrefslogtreecommitdiff
path: root/zephyr/projects/volteer/include/i2c_map.h
blob: 70a73fbb8ca8bc8ca1ac5ef311d6923d7a07d42e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright 2020 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.
 */

#ifndef __ZEPHYR_CHROME_I2C_MAP_H
#define __ZEPHYR_CHROME_I2C_MAP_H

#include <devicetree.h>

#include "config.h"

/* We need registers.h to get the chip specific defines for now */
#include "i2c/i2c.h"

#define I2C_PORT_ACCEL          I2C_PORT_SENSOR
#define I2C_PORT_SENSOR         NAMED_I2C(sensor)
#define I2C_PORT_USB_C0		NAMED_I2C(usb_c0)
#define I2C_PORT_USB_C1		NAMED_I2C(usb_c1)
#define I2C_PORT_USB_1_MIX	NAMED_I2C(usb1_mix)
#define I2C_PORT_POWER		NAMED_I2C(power)
#define I2C_PORT_EEPROM		NAMED_I2C(eeprom)

#define I2C_ADDR_EEPROM_FLAGS	0x50
#define I2C_PORT_BATTERY	I2C_PORT_POWER

#endif /* __ZEPHYR_CHROME_I2C_MAP_H */