diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-05-31 07:23:58 (GMT) |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-07-10 09:35:39 (GMT) |
commit | e4942ad703d81bc800210de3f4ba27a2f8178eb3 (patch) | |
tree | 1642f27bc4609cb334632f3322e237a5d55a16f8 /drivers | |
parent | 913db79427ba6fc71a179a6faff96756ebf40980 (diff) | |
download | u-boot-fsl-qoriq-e4942ad703d81bc800210de3f4ba27a2f8178eb3.tar.xz |
ipu_common: Let clk_ipu_enable/disable only run on MX51 and MX53
The registers accessed inside clk_ipu_enable/disable are not present on MX6,
so make sure they only run on MX51 and MX53.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/ipu_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c index 4caad4f..7ef8742 100644 --- a/drivers/video/ipu_common.c +++ b/drivers/video/ipu_common.c @@ -163,6 +163,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent) static int clk_ipu_enable(struct clk *clk) { +#if defined(CONFIG_MX51) || defined(CONFIG_MX53) u32 reg; reg = __raw_readl(clk->enable_reg); @@ -178,12 +179,13 @@ static int clk_ipu_enable(struct clk *clk) reg = __raw_readl(&mxc_ccm->clpcr); reg &= ~MXC_CCM_CLPCR_BYPASS_IPU_LPM_HS; __raw_writel(reg, &mxc_ccm->clpcr); - +#endif return 0; } static void clk_ipu_disable(struct clk *clk) { +#if defined(CONFIG_MX51) || defined(CONFIG_MX53) u32 reg; reg = __raw_readl(clk->enable_reg); @@ -202,6 +204,7 @@ static void clk_ipu_disable(struct clk *clk) reg = __raw_readl(&mxc_ccm->clpcr); reg |= MXC_CCM_CLPCR_BYPASS_IPU_LPM_HS; __raw_writel(reg, &mxc_ccm->clpcr); +#endif } |