ppc: m68k: Move i2c1_clk, i2c2_clk to arch_global_data

Move these fields into arch_global_data and tidy up. This is needed for
both ppc and m68k since they share the i2c driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2012-12-13 20:48:49 +00:00
committed by Tom Rini
parent 67ac13b1b9
commit 609e6ec3f6
12 changed files with 35 additions and 31 deletions

View File

@@ -135,7 +135,7 @@ int get_clocks(void)
}
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
return (0);

View File

@@ -48,7 +48,7 @@ int get_clocks(void)
gd->cpu_clk = (gd->bus_clk * 2);
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
return (0);

View File

@@ -91,9 +91,9 @@ int get_clocks (void)
#endif
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#ifdef CONFIG_SYS_I2C2_OFFSET
gd->i2c2_clk = gd->bus_clk;
gd->arch.i2c2_clk = gd->bus_clk;
#endif
#endif

View File

@@ -271,7 +271,7 @@ int get_clocks(void)
gd->cpu_clk = (gd->bus_clk * 3);
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
return (0);

View File

@@ -274,7 +274,7 @@ void setup_5445x_clocks(void)
}
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
}
#endif
@@ -290,7 +290,7 @@ int get_clocks(void)
#endif
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
return (0);

View File

@@ -41,7 +41,7 @@ int get_clocks(void)
gd->cpu_clk = (gd->bus_clk * 2);
#ifdef CONFIG_FSL_I2C
gd->i2c1_clk = gd->bus_clk;
gd->arch.i2c1_clk = gd->bus_clk;
#endif
return (0);