summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2011-05-20 11:51:01 -0500
committerAnish Trivedi <anish@freescale.com>2011-05-20 14:02:31 -0500
commitb78f36f7bda7202798322d03693b098b9fa4d58c (patch)
treed93ad25fd9860358fed0f2ff81ee36105411e093 /arch
parente0d3a9e87961732b8d0d2616293c0d3287ae3c96 (diff)
ENGR00143799 Add SCC RAM clock to dependency list for SAHARA clock tree
When ARM is in WAIT mode, the SCC RAM clock is disabled since 1 is written to the CCGR register by default. At that point, if SAHARA tries to access a key or some other piece of data stored in the SCC RAM, then it might hang. To prevent this scenario, SCC RAM is added to dependency list for SCC clock, and SCC clock is added to dependency list for SAHARA. Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx5/clock.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/arch/arm/mach-mx5/clock.c b/arch/arm/mach-mx5/clock.c
index 72f6ff0303d0..46c81493c59b 100644
--- a/arch/arm/mach-mx5/clock.c
+++ b/arch/arm/mach-mx5/clock.c
@@ -4008,32 +4008,40 @@ static struct clk fec_clk[] = {
},
};
-static struct clk sahara_clk[] = {
+static struct clk scc_clk[] = {
{
.parent = &ahb_clk,
- .secondary = &sahara_clk[1],
- .enable_reg = MXC_CCM_CCGR4,
- .enable_shift = MXC_CCM_CCGRx_CG7_OFFSET,
+ .secondary = &scc_clk[1],
+ .enable_reg = MXC_CCM_CCGR1,
+ .enable_shift = MXC_CCM_CCGRx_CG15_OFFSET,
.enable = _clk_enable,
.disable = _clk_disable,
},
{
.parent = &tmax1_clk,
- .secondary = &emi_fast_clk,
+ .secondary = &scc_clk[2],
+ },
+ {
+ .parent = &emi_fast_clk,
+ .secondary = &emi_intr_clk[0],
}
};
-static struct clk scc_clk[] = {
+static struct clk sahara_clk[] = {
{
.parent = &ahb_clk,
- .secondary = &scc_clk[1],
- .enable_reg = MXC_CCM_CCGR1,
- .enable_shift = MXC_CCM_CCGRx_CG15_OFFSET,
+ .secondary = &sahara_clk[1],
+ .enable_reg = MXC_CCM_CCGR4,
+ .enable_shift = MXC_CCM_CCGRx_CG7_OFFSET,
.enable = _clk_enable,
.disable = _clk_disable,
},
{
.parent = &tmax1_clk,
+ .secondary = &sahara_clk[2],
+ },
+ {
+ .parent = &scc_clk,
.secondary = &emi_fast_clk,
}
};