PalmZ71 - OMAP310 Clocks
PATCH 1/4 PalmZ71 - OMAP310 Clocks
Hi,
this patch enables some clock on omap310.
arch/arm/mach-omap1/clock.h +7 -7
@@ -282,7 +282,7 @@static struct clk dsp_ck = { .name ="dsp_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL , .enable_reg = (void __iomem *)ARM_CKCTL , .enable_bit =EN_DSPCK ,
@@ -295,7 +295,7 @@static struct clk dspmmu_ck = { .name ="dspmmu_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL |ALWAYS_ENABLED , .rate_offset =CKCTL_DSPMMUDIV_OFFSET , .recalc = &omap1_ckctl_recalc,
@@ -306,7 +306,7 @@static struct clk dspper_ck = { .name ="dspper_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_PERCK ,
@@ -320,7 +320,7 @@static struct clk dspxor_ck = { .name ="dspxor_ck" , .parent = &ck_ref, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_XORPCK ,
@@ -332,7 +332,7 @@static struct clk dsptim_ck = { .name ="dsptim_ck" , .parent = &ck_ref, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_DSPTIMCK ,
@@ -374,7 +374,7 @@static struct clk tipb_ck = {/* No-idle controlled by "tc_ck" */ - .name ="tibp_ck" , + .name ="tipb_ck" , .parent = &tc_ck.clk, .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP310 |ALWAYS_ENABLED ,
@@ -733,7 +733,7 @@static struct clk i2c_fck = { .name ="i2c_fck" , .id =1 , - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_CLOCK |CLOCK_NO_IDLE_PARENT |ALWAYS_ENABLED , .parent = &armxor_ck.clk,
Tony Lindgren
reviewerQuoted 61 lines · Marek Vašut
Hi,
this patch enables some clock on omap310.diff -Naur
linux-omap/arch/arm/mach-omap1/clock.hlinux-omap-z71/arch/arm/mach-omap1/clock.harch/arm/mach-omap1/clock.h +6
-6@@ -282,7 +282,7 @@static struct clk dsp_ck = { .name ="dsp_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL , .enable_reg = (void __iomem *)ARM_CKCTL , .enable_bit =EN_DSPCK ,@@ -295,7 +295,7 @@static struct clk dspmmu_ck = { .name ="dspmmu_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL |ALWAYS_ENABLED , .rate_offset =CKCTL_DSPMMUDIV_OFFSET , .recalc = &omap1_ckctl_recalc,@@ -306,7 +306,7 @@static struct clk dspper_ck = { .name ="dspper_ck" , .parent = &ck_dpll1, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |RATE_CKCTL |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_PERCK ,@@ -320,7 +320,7 @@static struct clk dspxor_ck = { .name ="dspxor_ck" , .parent = &ck_ref, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_XORPCK ,@@ -332,7 +332,7 @@static struct clk dsptim_ck = { .name ="dsptim_ck" , .parent = &ck_ref, - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_IO_ADDRESS , .enable_reg = (void __iomem *)DSP_IDLECT2 , .enable_bit =EN_DSPTIMCK ,@@ -374,7 +374,7 @@static struct clk tipb_ck = {/* No-idle controlled by "tc_ck" */ - .name ="tibp_ck" , + .name ="tipb_ck" , .parent = &tc_ck.clk, .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP310 |ALWAYS_ENABLED ,
arch/arm/mach-omap1/clock.h line 739
Quoted 8 lines
arch/arm/mach-omap1/clock.h +1
-1@@ -733,7 +733,7 @@static struct clk i2c_fck = { .name ="i2c_fck" , .id =1 , - .flags =CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX | + .flags =CLOCK_IN_OMAP310 |CLOCK_IN_OMAP1510 |CLOCK_IN_OMAP16XX |VIRTUAL_CLOCK |CLOCK_NO_IDLE_PARENT |ALWAYS_ENABLED , .parent = &armxor_ck.clk,
Hmm, I thought 310 did not have a DSP? Or is it only 710 that does not have a DSP?
Tony
Hi,
Quoted 4 lines · Tony Lindgren
Quoted 2 lines · Marek Vašut
Hi,
this patch enables some clock on omap310.
...
Quoted 3 lines
Hmm, I thought 310 did not have a DSP? Or is it only 710 that does not have a DSP?
I think the issue here is that some of McBSPs depend on the DSP clocks (or rather on the corresponding bits being set in "clock & reset" module). I don't know if this is a hardware dependency or Linux clock framework dependency, but I wouldn't be surprised if it's hardware.
Signature · 1 line
balrog 2oo6
Dne středa 25 říjen 2006 22:17 andrzej zaborowski napsal(a):
Quoted 9 lines
Hi,
Quoted 3 lines · Tony Lindgren
Quoted 2 lines · Marek Vašut
Hi,
this patch enables some clock on omap310....
Quoted 7 lines
Quoted 2 lines
Hmm, I thought 310 did not have a DSP? Or is it only 710 that does not have a DSP?
I think the issue here is that some of McBSPs depend on the DSP clocks (or rather on the corresponding bits being set in "clock & reset" module). I don't know if this is a hardware dependency or Linux clock framework dependency, but I wouldn't be surprised if it's hardware.
Yup, that´s right. Without these changes the soundchip (aic23) wont work (it´s connected over mcbsp). It´s MCBSP dependency as balrog said.
Dne úterý 24 říjen 2006 17:19 jste napsal(a):
Quoted 2 lines
Hi,
this patch enables some clock on omap310.
Tony Lindgren
reviewerQuoted 4 lines · Marek Vašut
Dne úterý 24 říjen 2006 17:19 jste napsal(a):
Quoted 2 lines
Hi,
this patch enables some clock on omap310.Signed-off-by Marek Vašut <[email protected]>
Pushing today.
Tony