1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
7 * S3C - I2C Controller core functions
10 #ifndef __ASM_ARCH_IIC_CORE_H
11 #define __ASM_ARCH_IIC_CORE_H __FILE__
13 /* These functions are only for use with the core support code, such as
14 * the cpu specific initialisation code
17 /* re-define device name depending on support. */
18 static inline void s3c_i2c0_setname(char *name)
20 /* currently this device is always compiled in */
21 s3c_device_i2c0.name = name;
24 static inline void s3c_i2c1_setname(char *name)
26 #ifdef CONFIG_S3C_DEV_I2C1
27 s3c_device_i2c1.name = name;
31 static inline void s3c_i2c2_setname(char *name)
33 #ifdef CONFIG_S3C_DEV_I2C2
34 s3c_device_i2c2.name = name;
38 #endif /* __ASM_ARCH_IIC_H */