diff options
Diffstat (limited to 'board/mec1322_evb/board.c')
-rw-r--r-- | board/mec1322_evb/board.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/board/mec1322_evb/board.c b/board/mec1322_evb/board.c index 73a2a19bb4..ced2c5ab27 100644 --- a/board/mec1322_evb/board.c +++ b/board/mec1322_evb/board.c @@ -6,6 +6,7 @@ #include "fan.h" #include "gpio.h" +#include "i2c.h" #include "registers.h" #include "util.h" @@ -23,9 +24,10 @@ BUILD_ASSERT(ARRAY_SIZE(gpio_list) == GPIO_COUNT); /* Pins with alternate functions */ const struct gpio_alt_func gpio_alt_funcs[] = { - {GPIO_PORT(16), 0x24, 1, MODULE_UART}, /* UART0 */ - {GPIO_PORT(3), (1 << 4), 3, MODULE_PWM_FAN}, + {GPIO_PORT(16), 0x24, 1, MODULE_UART}, /* UART0 */ + {GPIO_PORT(3), (1 << 4), 3, MODULE_PWM_FAN}, {GPIO_PORT(14), (1 << 0), 3, MODULE_PWM_FAN}, + {GPIO_PORT(1), 0x60, 2, MODULE_I2C}, /* I2C0 */ }; const int gpio_alt_funcs_count = ARRAY_SIZE(gpio_alt_funcs); @@ -40,3 +42,9 @@ const struct fan_t fans[] = { }, }; BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS); + +/* I2C ports */ +const struct i2c_port_t i2c_ports[] = { + {"port0", 0, 100}, +}; +const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); |