aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/clock.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2011-11-02 17:26:06 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:39:00 +0800
commit21394e9b5f07cdf5cdca7570a7e1fffd37f6f5fb (patch)
tree62f506578a4a28aa9de10350571ac412e9f95260 /arch/arm/mach-mx6/clock.c
parentdb5b3814760c5b78f2489a9633dbc43213678baa (diff)
ENGR00161234-2: Enable ocotp clock for mx6q
Add clock enable code to arch. OCOTP driver missed code to enable clock in driver. Thus if ocotp clock is not enabled in clock.c, ocotp will not work. We will remove ocotp clock enable code in board file and leave this operation to driver. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/clock.c')
-rw-r--r--arch/arm/mach-mx6/clock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c
index a632e4158f1..58e6f3cd64f 100644
--- a/arch/arm/mach-mx6/clock.c
+++ b/arch/arm/mach-mx6/clock.c
@@ -1617,6 +1617,11 @@ static struct clk gpt_clk[] = {
},
};
+static unsigned long _clk_iim_get_rate(struct clk *clk)
+{
+ return clk_get_rate(clk->parent);
+}
+
static struct clk iim_clk = {
__INIT_CLK_DEBUG(iim_clk)
.parent = &ipg_clk,
@@ -1624,6 +1629,7 @@ static struct clk iim_clk = {
.enable_reg = MXC_CCM_CCGR2,
.enable_shift = MXC_CCM_CCGRx_CG6_OFFSET,
.disable = _clk_disable,
+ .get_rate = _clk_iim_get_rate,
};
static struct clk i2c_clk[] = {