mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
MIPS: Octeon: Register some devices on the I2C bus.
Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org To: linux-i2c@vger.kernel.org To: ben-linux@fluff.org To: khali@linux-fr.org Cc: Rade Bozic <rade.bozic.ext@nsn.com> Patchwork: http://patchwork.linux-mips.org/patch/845/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
85660f43a3
commit
d957705446
@ -9,6 +9,7 @@
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
@ -159,6 +160,18 @@ out:
|
||||
}
|
||||
device_initcall(octeon_rng_device_init);
|
||||
|
||||
static struct i2c_board_info __initdata octeon_i2c_devices[] = {
|
||||
{
|
||||
I2C_BOARD_INFO("ds1337", 0x68),
|
||||
},
|
||||
};
|
||||
|
||||
static int __init octeon_i2c_devices_init(void)
|
||||
{
|
||||
return i2c_register_board_info(0, octeon_i2c_devices,
|
||||
ARRAY_SIZE(octeon_i2c_devices));
|
||||
}
|
||||
arch_initcall(octeon_i2c_devices_init);
|
||||
|
||||
#define OCTEON_I2C_IO_BASE 0x1180000001000ull
|
||||
#define OCTEON_I2C_IO_UNIT_OFFSET 0x200
|
||||
|
Loading…
Reference in New Issue
Block a user