2 * arch/arm/mach-u300/i2c.c
4 * Copyright (C) 2009 ST-Ericsson AB
5 * License terms: GNU General Public License (GPL) version 2
7 * Register board i2c devices
8 * Author: Linus Walleij <linus.walleij@stericsson.com>
10 #include <linux/kernel.h>
11 #include <linux/i2c.h>
12 #include <mach/irqs.h>
14 static struct i2c_board_info __initdata bus0_i2c_board_info
[] = {
18 .irq
= IRQ_U300_IRQ0_EXT
,
22 static struct i2c_board_info __initdata bus1_i2c_board_info
[] = {
23 #ifdef CONFIG_MACH_U300_BS335
37 void __init
u300_i2c_register_board_devices(void)
39 i2c_register_board_info(0, bus0_i2c_board_info
,
40 ARRAY_SIZE(bus0_i2c_board_info
));
41 i2c_register_board_info(1, bus1_i2c_board_info
,
42 ARRAY_SIZE(bus1_i2c_board_info
));