aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/cpu.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2010-05-20 02:13:06 -0400
committerBen Dooks <ben-linux@fluff.org>2010-05-20 05:21:34 -0400
commitc8d833bf5830f141c4680dae8f617d0d0a33605d (patch)
treead73e8b8d4d558d1fc60e0a8841947e279198962 /arch/arm/mach-s5pv210/cpu.c
parent5b696a67c327f21fc67b60a1518f65e4e7f2749f (diff)
ARM: S5PV210: add common I2C device helpers
This patch adds I2C platform helpers required by s3c2440-i2c driver. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5pv210/cpu.c')
-rw-r--r--arch/arm/mach-s5pv210/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/cpu.c b/arch/arm/mach-s5pv210/cpu.c
index 2b776eb5d150..2d4a3d2221c5 100644
--- a/arch/arm/mach-s5pv210/cpu.c
+++ b/arch/arm/mach-s5pv210/cpu.c
@@ -32,6 +32,7 @@
32#include <plat/devs.h> 32#include <plat/devs.h>
33#include <plat/clock.h> 33#include <plat/clock.h>
34#include <plat/s5pv210.h> 34#include <plat/s5pv210.h>
35#include <plat/iic-core.h>
35 36
36/* Initial IO mappings */ 37/* Initial IO mappings */
37 38
@@ -75,6 +76,11 @@ static void s5pv210_idle(void)
75void __init s5pv210_map_io(void) 76void __init s5pv210_map_io(void)
76{ 77{
77 iotable_init(s5pv210_iodesc, ARRAY_SIZE(s5pv210_iodesc)); 78 iotable_init(s5pv210_iodesc, ARRAY_SIZE(s5pv210_iodesc));
79
80 /* the i2c devices are directly compatible with s3c2440 */
81 s3c_i2c0_setname("s3c2440-i2c");
82 s3c_i2c1_setname("s3c2440-i2c");
83 s3c_i2c2_setname("s3c2440-i2c");
78} 84}
79 85
80void __init s5pv210_init_clocks(int xtal) 86void __init s5pv210_init_clocks(int xtal)