]>
Commit | Line | Data |
---|---|---|
4f507d19 BD |
1 | /* arch/arm/mach-s3c2410/include/mach/iic-core.h |
2 | * | |
3 | * Copyright 2008 Openmoko, Inc. | |
4 | * Copyright 2008 Simtec Electronics | |
5 | * Ben Dooks <ben@simtec.co.uk> | |
6 | * | |
7 | * S3C - I2C Controller core functions | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License version 2 as | |
11 | * published by the Free Software Foundation. | |
12 | */ | |
13 | ||
14 | #ifndef __ASM_ARCH_IIC_CORE_H | |
15 | #define __ASM_ARCH_IIC_CORE_H __FILE__ | |
16 | ||
17 | /* These functions are only for use with the core support code, such as | |
18 | * the cpu specific initialisation code | |
19 | */ | |
20 | ||
21 | /* re-define device name depending on support. */ | |
22 | static inline void s3c_i2c0_setname(char *name) | |
23 | { | |
24 | /* currently this device is always compiled in */ | |
25 | s3c_device_i2c0.name = name; | |
26 | } | |
27 | ||
28 | static inline void s3c_i2c1_setname(char *name) | |
29 | { | |
30 | #ifdef CONFIG_S3C_DEV_I2C1 | |
31 | s3c_device_i2c1.name = name; | |
32 | #endif | |
33 | } | |
34 | ||
c8d833bf MS |
35 | static inline void s3c_i2c2_setname(char *name) |
36 | { | |
37 | #ifdef CONFIG_S3C_DEV_I2C2 | |
38 | s3c_device_i2c2.name = name; | |
39 | #endif | |
40 | } | |
41 | ||
4f507d19 | 42 | #endif /* __ASM_ARCH_IIC_H */ |