ARM: EXYNOS: Add clock support for Gscaler
Hi Kukjin Kim & Sunyoung,
thanks for the review comments...
Quoted 36 lines · Sunyoung Kang
Quoted 18 lines · Kukjin Kim
Quoted 3 lines · Shaik Ameer Basha
Add required clock support for Gscaler for exynos5
Hi,
Cc'ed Sunyoung Kang who knows gscaler well in my team.
Quoted 9 lines
Signed-off-by Abhilash Kesavan <[email protected]>Signed-off-by Leela Krishna Amudala <[email protected]>Signed-off-by Prathyush K <[email protected]>Signed-off-by Shaik Ameer Basha <[email protected]>--- arch/arm/mach-exynos/clock-exynos5.c | 79 ++++++++++++++++++++++++++++++++++ 1 files changed, 79 insertions(+), 0 deletions(-)Quoted 16 lines
arch/arm/mach-exynos/clock-exynos5.c static struct clk exynos5_init_clocks_off[] = { · line 747
Quoted 13 lines
arch/arm/mach- renamed from arch/arm/mach-exynos/clock-exynos5.c +0
-0
exynos/clock-exynos5.c
index fefa336..c8293a3 100644arch/arm/mach-exynos/clock-exynos5.c +4
-0@@ -741,6 +741,26 @@ static struct clk exynos5_init_clocks_off[] = { .enable = exynos5_clk_ip_peric_ctrl, .ctrlbit = (1 << 14), }, { + .name = "gscl", + .devname = "exynos-gsc.0", + .enable = exynos5_clk_ip_gscl_ctrl, + .ctrlbit = (1 << 0),Sunyoung, I've seen (1 << 15) | (1 << 0) here instead, which one is right?
Quoted 3 lines
Actually, the ctrl bit, (1 << 0) is correct. The 15th bit Kukjin said is used for another purpose.
As Sunyoung pointed out the '.ctrlbit' value is correct...
Quoted 10 lines
Quoted 10 lines
[snip]
I think, following part should be moved between
---
static structclksrc_clkexynos5_clk_aclk_66= {
[snip]
};<<<HERE>>>
ok.. i will do that.
Quoted 25 lines
Quoted 7 lines
static struct clk exynos5_init_clocks_off[] = {
---Please don't put your clock code without any checking the clock code.
Quoted 17 lines
arch/arm/mach-exynos/clock-exynos5.c static struct clk exynos5_init_clocks_off[] = { · line 760
Quoted 13 lines
arch/arm/mach-exynos/clock-exynos5.c +13
-0+/* For ACLK_300_gscl_mid */ +static struct clksrc_clk exynos5_clk_mout_aclk_300_gscl_mid = { + .clk = { + .name ="mout_aclk_300_gscl_mid" , + }, + .sources = &exynos5_clkset_aclk, + .reg_src = { .reg =EXYNOS5_CLKSRC_TOP0 , .shift =24 , .size =1 }, +}; + +/* For ACLK_300_gscl */ +struct clk *exynos5_clkset_aclk_300_gscl_list[] = { + [0 ] = &exynos5_clk_mout_aclk_300_gscl_mid.clk, + [1 ] = &exynos5_clk_sclk_vpll.clk,As I know, this is wrong. Its [1] should be
&exynos5_clk_mout_aclk_300_gscl_mid1.clk
Quoted 3 lines
Yes, right. It should be 'exynos5_clk_mout_aclk_300_gscl_mid1.clk' which is generated by CPLL. The VPLL shouldn't be used here. It means you need to implement CPLL for gscaler. As a note, CPLL can be used for fimd as well.
Sorry, I was referring to the old manual.
I will add the 'exynos5_clk_mout_aclk_300_gscl_mid1' clk... in v3 release...
Quoted 8 lines
[snip]
Thanks.
BRs
Sunyoung
Thanks,
Shaik Ameer Basha