diff options
Diffstat (limited to 'zephyr/projects/delbin/include/i2c_map.h')
-rw-r--r-- | zephyr/projects/delbin/include/i2c_map.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zephyr/projects/delbin/include/i2c_map.h b/zephyr/projects/delbin/include/i2c_map.h index aa4c5f970f..3bd7380014 100644 --- a/zephyr/projects/delbin/include/i2c_map.h +++ b/zephyr/projects/delbin/include/i2c_map.h @@ -6,4 +6,20 @@ #ifndef __ZEPHYR_I2C_MAP_H #define __ZEPHYR_I2C_MAP_H +#include <devicetree.h> + +#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 +#define I2C_PORT_CHARGER I2C_PORT_EEPROM + #endif /* __ZEPHYR_I2C_MAP_H */ |