diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:05 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:18 +0200 | 
| commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
| tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /arch/arm/mach-exynos4/clock.c | |
| parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
| parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) | |
| download | olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.tar.xz olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.zip  | |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
Diffstat (limited to 'arch/arm/mach-exynos4/clock.c')
| -rw-r--r-- | arch/arm/mach-exynos4/clock.c | 63 | 
1 files changed, 62 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos4/clock.c b/arch/arm/mach-exynos4/clock.c index 66494f28bbe..1561b036a9b 100644 --- a/arch/arm/mach-exynos4/clock.c +++ b/arch/arm/mach-exynos4/clock.c @@ -520,7 +520,7 @@ static struct clk init_clocks_off[] = {  		.ctrlbit	= (1 << 21),  	}, {  		.name		= "ac97", -		.id		= -1, +		.devname	= "samsung-ac97",  		.enable		= exynos4_clk_ip_peril_ctrl,  		.ctrlbit	= (1 << 27),  	}, { @@ -528,6 +528,11 @@ static struct clk init_clocks_off[] = {  		.enable		= exynos4_clk_ip_image_ctrl,  		.ctrlbit	= (1 << 0),  	}, { +		.name		= "mfc", +		.devname	= "s5p-mfc", +		.enable		= exynos4_clk_ip_mfc_ctrl, +		.ctrlbit	= (1 << 0), +	}, {  		.name		= "i2c",  		.devname	= "s3c2440-i2c.0",  		.parent		= &clk_aclk_100.clk, @@ -731,6 +736,52 @@ static struct clksrc_sources clkset_mout_g2d = {  	.nr_sources	= ARRAY_SIZE(clkset_mout_g2d_list),  }; +static struct clk *clkset_mout_mfc0_list[] = { +	[0] = &clk_mout_mpll.clk, +	[1] = &clk_sclk_apll.clk, +}; + +static struct clksrc_sources clkset_mout_mfc0 = { +	.sources	= clkset_mout_mfc0_list, +	.nr_sources	= ARRAY_SIZE(clkset_mout_mfc0_list), +}; + +static struct clksrc_clk clk_mout_mfc0 = { +	.clk	= { +		.name		= "mout_mfc0", +	}, +	.sources	= &clkset_mout_mfc0, +	.reg_src	= { .reg = S5P_CLKSRC_MFC, .shift = 0, .size = 1 }, +}; + +static struct clk *clkset_mout_mfc1_list[] = { +	[0] = &clk_mout_epll.clk, +	[1] = &clk_sclk_vpll.clk, +}; + +static struct clksrc_sources clkset_mout_mfc1 = { +	.sources	= clkset_mout_mfc1_list, +	.nr_sources	= ARRAY_SIZE(clkset_mout_mfc1_list), +}; + +static struct clksrc_clk clk_mout_mfc1 = { +	.clk	= { +		.name		= "mout_mfc1", +	}, +	.sources	= &clkset_mout_mfc1, +	.reg_src	= { .reg = S5P_CLKSRC_MFC, .shift = 4, .size = 1 }, +}; + +static struct clk *clkset_mout_mfc_list[] = { +	[0] = &clk_mout_mfc0.clk, +	[1] = &clk_mout_mfc1.clk, +}; + +static struct clksrc_sources clkset_mout_mfc = { +	.sources	= clkset_mout_mfc_list, +	.nr_sources	= ARRAY_SIZE(clkset_mout_mfc_list), +}; +  static struct clksrc_clk clk_dout_mmc0 = {  	.clk		= {  		.name		= "dout_mmc0", @@ -974,6 +1025,14 @@ static struct clksrc_clk clksrcs[] = {  		.reg_div = { .reg = S5P_CLKDIV_IMAGE, .shift = 0, .size = 4 },  	}, {  		.clk		= { +			.name		= "sclk_mfc", +			.devname	= "s5p-mfc", +		}, +		.sources = &clkset_mout_mfc, +		.reg_src = { .reg = S5P_CLKSRC_MFC, .shift = 8, .size = 1 }, +		.reg_div = { .reg = S5P_CLKDIV_MFC, .shift = 0, .size = 4 }, +	}, { +		.clk		= {  			.name		= "sclk_mmc",  			.devname	= "s3c-sdhci.0",  			.parent		= &clk_dout_mmc0.clk, @@ -1049,6 +1108,8 @@ static struct clksrc_clk *sysclks[] = {  	&clk_dout_mmc2,  	&clk_dout_mmc3,  	&clk_dout_mmc4, +	&clk_mout_mfc0, +	&clk_mout_mfc1,  };  static int xtal_rate;  |