diff options
Diffstat (limited to 'board/ryu_sh/board.c')
-rw-r--r-- | board/ryu_sh/board.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/board/ryu_sh/board.c b/board/ryu_sh/board.c new file mode 100644 index 0000000000..577b5b3a0c --- /dev/null +++ b/board/ryu_sh/board.c @@ -0,0 +1,32 @@ +/* Copyright (c) 2014 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. + */ +/* ryu sensor hub configuration */ + +#include "common.h" +#include "console.h" +#include "gpio.h" +#include "hooks.h" +#include "i2c.h" +#include "registers.h" +#include "task.h" +#include "util.h" + +#include "gpio_list.h" + +/* Initialize board. */ +static void board_init(void) +{ +} +DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); + +/* I2C ports */ +const struct i2c_port_t i2c_ports[] = { + {"master", I2C_PORT_MASTER, 100, + GPIO_MASTER_I2C_SCL, GPIO_MASTER_I2C_SDA}, + {"slave", I2C_PORT_SLAVE, 100, + GPIO_SLAVE_I2C_SCL, GPIO_SLAVE_I2C_SDA}, +}; +const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); + |