xref: /openbmc/linux/arch/mips/sibyte/swarm/swarm-i2c.c (revision 293d5b43)
1 /*
2  *	Broadcom BCM91250A (SWARM), etc. I2C platform setup.
3  *
4  *	Copyright (c) 2008  Maciej W. Rozycki
5  *
6  *	This program is free software; you can redistribute it and/or
7  *	modify it under the terms of the GNU General Public License
8  *	as published by the Free Software Foundation; either version
9  *	2 of the License, or (at your option) any later version.
10  */
11 
12 #include <linux/i2c.h>
13 #include <linux/init.h>
14 #include <linux/kernel.h>
15 
16 
17 static struct i2c_board_info swarm_i2c_info1[] __initdata = {
18 	{
19 		I2C_BOARD_INFO("m41t81", 0x68),
20 	},
21 };
22 
23 static int __init swarm_i2c_init(void)
24 {
25 	int err;
26 
27 	err = i2c_register_board_info(1, swarm_i2c_info1,
28 				      ARRAY_SIZE(swarm_i2c_info1));
29 	if (err < 0)
30 		printk(KERN_ERR
31 		       "swarm-i2c: cannot register board I2C devices\n");
32 	return err;
33 }
34 
35 arch_initcall(swarm_i2c_init);
36