Commit | Line | Data |
---|---|---|
3070033a SH |
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 | */ | |
3070033a SH |
8 | #include <linux/init.h> |
9 | #include <linux/platform_device.h> | |
3070033a SH |
10 | |
11 | struct resource sead3_i2c_resources[] = { | |
12 | { | |
13 | .start = 0x805200, | |
14 | .end = 0x8053ff, | |
15 | .flags = IORESOURCE_MEM, | |
16 | }, | |
17 | }; | |
18 | ||
19 | static struct platform_device sead3_i2c_device = { | |
20 | .name = "sead3-i2c", | |
21 | .id = 0, | |
22 | .num_resources = ARRAY_SIZE(sead3_i2c_resources), | |
23 | .resource = sead3_i2c_resources, | |
24 | }; | |
25 | ||
26 | static int __init sead3_i2c_init(void) | |
27 | { | |
28 | return platform_device_register(&sead3_i2c_device); | |
29 | } | |
30 | ||
4846f118 | 31 | device_initcall(sead3_i2c_init); |