diff options
author | Huang Shijie <b32955@freescale.com> | 2011-09-15 19:22:12 +0800 |
---|---|---|
committer | Frank Li <Frank.Li@freescale.com> | 2011-09-16 09:21:22 +0800 |
commit | 3e69195bde57ed90c13db0752cd2b0b6a2c4e03b (patch) | |
tree | 64fd270c396ffe3a6ee68d9263492d379d365ae5 | |
parent | 45158d76fd07fa566e0b65883fea8fa71f886507 (diff) |
ENGR00156849 MX6Q: add relative clock for BCH
The BCH needs the pl301_mx6qperl_bch clock.
The BCH will not work if the clock is not enabled.
So add it.
Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r-- | arch/arm/mach-mx6/clock.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c index 3f2ac85cc9c6..dbb7dc85a83c 100644 --- a/arch/arm/mach-mx6/clock.c +++ b/arch/arm/mach-mx6/clock.c @@ -3869,11 +3869,20 @@ static struct clk gpmi_nfc_clk[] = { { /* bch_apb_clk */ __INIT_CLK_DEBUG(gpmi_bch_apb_clk) .parent = &usdhc3_clk, + .secondary = &gpmi_nfc_clk[4], .enable = _clk_enable, .enable_reg = MXC_CCM_CCGR4, .enable_shift = MXC_CCM_CCGRx_CG12_OFFSET, .disable = _clk_disable, }, + { /* bch relative clk */ + __INIT_CLK_DEBUG(pl301_mx6qperl_bch) + .parent = &usdhc3_clk, + .enable = _clk_enable, + .enable_reg = MXC_CCM_CCGR4, + .enable_shift = MXC_CCM_CCGRx_CG6_OFFSET, + .disable = _clk_disable, + }, }; static struct clk pwm_clk[] = { @@ -4112,6 +4121,7 @@ static struct clk_lookup lookups[] = { _REGISTER_CLOCK(NULL, "gpmi-apb", gpmi_nfc_clk[1]), _REGISTER_CLOCK(NULL, "bch", gpmi_nfc_clk[2]), _REGISTER_CLOCK(NULL, "bch-apb", gpmi_nfc_clk[3]), + _REGISTER_CLOCK(NULL, "pl301_mx6qperl-bch", gpmi_nfc_clk[4]), _REGISTER_CLOCK("mxc_pwm.0", NULL, pwm_clk[0]), _REGISTER_CLOCK("mxc_pwm.1", NULL, pwm_clk[1]), _REGISTER_CLOCK("mxc_pwm.2", NULL, pwm_clk[2]), |