diff options
Diffstat (limited to 'arch/mips/mti-sead3/sead3-i2c.c')
-rw-r--r-- | arch/mips/mti-sead3/sead3-i2c.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/mips/mti-sead3/sead3-i2c.c b/arch/mips/mti-sead3/sead3-i2c.c new file mode 100644 index 000000000000..f70d5fc58ef5 --- /dev/null +++ b/arch/mips/mti-sead3/sead3-i2c.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. | ||
7 | */ | ||
8 | #include <linux/module.h> | ||
9 | #include <linux/init.h> | ||
10 | #include <linux/platform_device.h> | ||
11 | #include <irq.h> | ||
12 | |||
13 | struct resource sead3_i2c_resources[] = { | ||
14 | { | ||
15 | .start = 0x805200, | ||
16 | .end = 0x8053ff, | ||
17 | .flags = IORESOURCE_MEM, | ||
18 | }, | ||
19 | }; | ||
20 | |||
21 | static struct platform_device sead3_i2c_device = { | ||
22 | .name = "sead3-i2c", | ||
23 | .id = 0, | ||
24 | .num_resources = ARRAY_SIZE(sead3_i2c_resources), | ||
25 | .resource = sead3_i2c_resources, | ||
26 | }; | ||
27 | |||
28 | static int __init sead3_i2c_init(void) | ||
29 | { | ||
30 | return platform_device_register(&sead3_i2c_device); | ||
31 | } | ||
32 | |||
33 | module_init(sead3_i2c_init); | ||
34 | |||
35 | MODULE_AUTHOR("Chris Dearman <chris@mips.com>"); | ||
36 | MODULE_LICENSE("GPL"); | ||
37 | MODULE_DESCRIPTION("I2C probe driver for SEAD3"); | ||