Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54039
b: refs/heads/master
c: ce89c20
h: refs/heads/master
i:
  54037: c8d48dd
  54035: 7e4332b
  54031: f82a9e8
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Apr 21, 2007
1 parent 01903a8 commit b1940fc
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef08574729bcf65bbd1f0c9ad9b9baa9bbd7a830
refs/heads/master: ce89c206ac03dfec700cfa538dcbcc347c0683ce
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2410/mach-bast.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,6 @@ static struct clk *bast_clocks[] = {
static struct s3c24xx_board bast_board __initdata = {
.devices = bast_devices,
.devices_count = ARRAY_SIZE(bast_devices),
.clocks = bast_clocks,
.clocks_count = ARRAY_SIZE(bast_clocks),
};

static void __init bast_map_io(void)
Expand All @@ -486,6 +484,8 @@ static void __init bast_map_io(void)

s3c24xx_uclk.parent = &s3c24xx_clkout1;

s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks));

s3c_device_nand.dev.platform_data = &bast_nand_info;
s3c_device_i2c.dev.platform_data = &bast_i2c_info;

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2410/mach-vr1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,6 @@ static struct clk *vr1000_clocks[] = {
static struct s3c24xx_board vr1000_board __initdata = {
.devices = vr1000_devices,
.devices_count = ARRAY_SIZE(vr1000_devices),
.clocks = vr1000_clocks,
.clocks_count = ARRAY_SIZE(vr1000_clocks),
};

static void vr1000_power_off(void)
Expand All @@ -412,6 +410,8 @@ static void __init vr1000_map_io(void)

s3c24xx_uclk.parent = &s3c24xx_clkout1;

s3c24xx_register_clocks(vr1000_clocks, ARRAY_SIZE(vr1000_clocks));

pm_power_off = vr1000_power_off;

s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc));
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2440/mach-anubis.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ static struct clk *anubis_clocks[] = {
static struct s3c24xx_board anubis_board __initdata = {
.devices = anubis_devices,
.devices_count = ARRAY_SIZE(anubis_devices),
.clocks = anubis_clocks,
.clocks_count = ARRAY_SIZE(anubis_clocks),
};

static void __init anubis_map_io(void)
Expand All @@ -303,6 +301,8 @@ static void __init anubis_map_io(void)

s3c24xx_uclk.parent = &s3c24xx_clkout1;

s3c24xx_register_clocks(anubis_clocks, ARRAY_SIZE(anubis_clocks));

s3c_device_nand.dev.platform_data = &anubis_nand_info;

s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc));
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2440/mach-osiris.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ static struct clk *osiris_clocks[] = {
static struct s3c24xx_board osiris_board __initdata = {
.devices = osiris_devices,
.devices_count = ARRAY_SIZE(osiris_devices),
.clocks = osiris_clocks,
.clocks_count = ARRAY_SIZE(osiris_clocks),
};

static void __init osiris_map_io(void)
Expand All @@ -275,6 +273,8 @@ static void __init osiris_map_io(void)

s3c24xx_uclk.parent = &s3c24xx_clkout1;

s3c24xx_register_clocks(osiris_clocks, ARRAY_SIZE(osiris_clocks));

s3c_device_nand.dev.platform_data = &osiris_nand_info;

s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc));
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/plat-s3c24xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,18 @@ int s3c24xx_register_clock(struct clk *clk)
return 0;
}

int s3c24xx_register_clocks(struct clk **clks, int nr_clks)
{
int fails = 0;

for (; nr_clks > 0; nr_clks--, clks++) {
if (s3c24xx_register_clock(*clks) < 0)
fails++;
}

return fails;
}

/* initalise all the clocks */

int __init s3c24xx_setup_clocks(unsigned long xtal,
Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/arm/plat-s3c24xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,7 @@ static struct s3c24xx_board *board;

void s3c24xx_set_board(struct s3c24xx_board *b)
{
int i;

board = b;

if (b->clocks_count != 0) {
struct clk **ptr = b->clocks;

for (i = b->clocks_count; i > 0; i--, ptr++)
s3c24xx_register_clock(*ptr);
}
}

/* cpu information */
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-arm/plat-s3c24xx/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ extern struct mutex clocks_mutex;
extern int s3c2410_clkcon_enable(struct clk *clk, int enable);

extern int s3c24xx_register_clock(struct clk *clk);
extern int s3c24xx_register_clocks(struct clk **clk, int nr_clks);

extern int s3c24xx_setup_clocks(unsigned long xtal,
unsigned long fclk,
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-arm/plat-s3c24xx/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ extern void s3c24xx_init_uartdevs(char *name,
struct s3c24xx_board {
struct platform_device **devices;
unsigned int devices_count;

struct clk **clocks;
unsigned int clocks_count;
};

extern void s3c24xx_set_board(struct s3c24xx_board *board);
Expand Down

0 comments on commit b1940fc

Please sign in to comment.