1 /* arch/arm/mach-s3c2410/include/mach/iic-core.h
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C - I2C Controller core functions
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.
14 #ifndef __ASM_ARCH_IIC_CORE_H
15 #define __ASM_ARCH_IIC_CORE_H __FILE__
17 /* These functions are only for use with the core support code, such as
18 * the cpu specific initialisation code
21 /* re-define device name depending on support. */
22 static inline void s3c_i2c0_setname(char *name)
24 /* currently this device is always compiled in */
25 s3c_device_i2c0.name = name;
28 static inline void s3c_i2c1_setname(char *name)
30 #ifdef CONFIG_S3C_DEV_I2C1
31 s3c_device_i2c1.name = name;
35 #endif /* __ASM_ARCH_IIC_H */