i2c-s3c2410.c (117053f77a5a4d055ec4fc7b4f6639045a24fefd) i2c-s3c2410.c (61f4d6b42158a836a008711a71b68cc78b0624aa)
1/* linux/drivers/i2c/busses/i2c-s3c2410.c
2 *
3 * Copyright (C) 2004,2005,2009 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * S3C2410 I2C Controller
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 110 unchanged lines hidden (view full) ---

119 void __iomem *regs;
120 struct clk *clk;
121 struct device *dev;
122 struct i2c_adapter adap;
123
124 struct s3c2410_platform_i2c *pdata;
125 int gpios[2];
126 struct pinctrl *pctrl;
1/* linux/drivers/i2c/busses/i2c-s3c2410.c
2 *
3 * Copyright (C) 2004,2005,2009 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * S3C2410 I2C Controller
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 110 unchanged lines hidden (view full) ---

119 void __iomem *regs;
120 struct clk *clk;
121 struct device *dev;
122 struct i2c_adapter adap;
123
124 struct s3c2410_platform_i2c *pdata;
125 int gpios[2];
126 struct pinctrl *pctrl;
127#ifdef CONFIG_CPU_FREQ
127#if defined(CONFIG_ARM_S3C24XX_CPUFREQ)
128 struct notifier_block freq_transition;
129#endif
130};
131
132static struct platform_device_id s3c24xx_driver_ids[] = {
133 {
134 .name = "s3c2410-i2c",
135 .driver_data = 0,

--- 746 unchanged lines hidden (view full) ---

882
883 dev_dbg(i2c->dev, "IICLC=%08lx\n", sda_delay);
884 writel(sda_delay, i2c->regs + S3C2440_IICLC);
885 }
886
887 return 0;
888}
889
128 struct notifier_block freq_transition;
129#endif
130};
131
132static struct platform_device_id s3c24xx_driver_ids[] = {
133 {
134 .name = "s3c2410-i2c",
135 .driver_data = 0,

--- 746 unchanged lines hidden (view full) ---

882
883 dev_dbg(i2c->dev, "IICLC=%08lx\n", sda_delay);
884 writel(sda_delay, i2c->regs + S3C2440_IICLC);
885 }
886
887 return 0;
888}
889
890#ifdef CONFIG_CPU_FREQ
890#if defined(CONFIG_ARM_S3C24XX_CPUFREQ)
891
892#define freq_to_i2c(_n) container_of(_n, struct s3c24xx_i2c, freq_transition)
893
894static int s3c24xx_i2c_cpufreq_transition(struct notifier_block *nb,
895 unsigned long val, void *data)
896{
897 struct s3c24xx_i2c *i2c = freq_to_i2c(nb);
898 unsigned int got;

--- 402 unchanged lines hidden ---
891
892#define freq_to_i2c(_n) container_of(_n, struct s3c24xx_i2c, freq_transition)
893
894static int s3c24xx_i2c_cpufreq_transition(struct notifier_block *nb,
895 unsigned long val, void *data)
896{
897 struct s3c24xx_i2c *i2c = freq_to_i2c(nb);
898 unsigned int got;

--- 402 unchanged lines hidden ---