diff options
Diffstat (limited to 'board/sweetberry/board.h')
-rw-r--r-- | board/sweetberry/board.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/board/sweetberry/board.h b/board/sweetberry/board.h index be661608c5..43503e096e 100644 --- a/board/sweetberry/board.h +++ b/board/sweetberry/board.h @@ -31,13 +31,6 @@ #define CONFIG_UART_TX_REQ_CH 4 #define CONFIG_UART_RX_REQ_CH 4 -#define CONFIG_I2C -#define CONFIG_I2C_MASTER -#define I2C_PORT_0 0 -#define I2C_PORT_1 1 -#define I2C_PORT_2 2 -#define FMPI2C_PORT_3 3 - /* USB Configuration */ #define CONFIG_USB #define CONFIG_USB_PID 0x5020 @@ -56,14 +49,25 @@ #define USB_IFACE_CONSOLE 0 #define USB_IFACE_UPDATE 1 #define USB_IFACE_POWER 2 -#define USB_IFACE_COUNT 3 +#define USB_IFACE_I2C 3 +#define USB_IFACE_COUNT 4 /* USB endpoint indexes (use define rather than enum to expand them) */ #define USB_EP_CONTROL 0 #define USB_EP_CONSOLE 1 #define USB_EP_UPDATE 2 #define USB_EP_POWER 3 -#define USB_EP_COUNT 4 +#define USB_EP_I2C 4 +#define USB_EP_COUNT 5 + +#define CONFIG_USB_I2C +#define CONFIG_I2C +#define CONFIG_I2C_MASTER +#define I2C_PORT_0 0 +#define I2C_PORT_1 1 +#define I2C_PORT_2 2 +#define FMPI2C_PORT_3 3 +#define I2C_PORT_COUNT 4 /* This is not actually a Chromium EC so disable some features. */ #undef CONFIG_WATCHDOG_HELP @@ -93,6 +97,7 @@ enum usb_strings { USB_STR_PRODUCT, USB_STR_SERIALNO, USB_STR_VERSION, + USB_STR_I2C_NAME, USB_STR_CONSOLE_NAME, USB_STR_UPDATE_NAME, USB_STR_COUNT |