From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM i.MX5: Hard reset the IPU during startup
Date: Tue, 5 Jun 2012 11:30:30 +0200 [thread overview]
Message-ID: <1338888630-25930-3-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1338888630-25930-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-imx/mm-imx5.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index a4cb441..3b028ef 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -214,6 +214,15 @@ static void __init imx51_ipu_mipi_setup(void)
hsc_addr + 0x800);
}
+static void __init imx51_ipu_hardreset(void)
+{
+ u32 val;
+
+ val = readl(MX51_IO_ADDRESS(MX51_SRC_BASE_ADDR));
+ val |= 1 << 3;
+ writel(val, MX51_IO_ADDRESS(MX51_SRC_BASE_ADDR));
+}
+
void __init imx51_soc_init(void)
{
/* i.mx51 has the i.mx31 type gpio */
@@ -233,6 +242,16 @@ void __init imx51_soc_init(void)
platform_device_register_simple("imx31-audmux", 0, imx51_audmux_res,
ARRAY_SIZE(imx51_audmux_res));
imx51_ipu_mipi_setup();
+ imx51_ipu_hardreset();
+}
+
+static void __init imx53_ipu_hardreset(void)
+{
+ u32 val;
+
+ val = readl(MX53_IO_ADDRESS(MX53_SRC_BASE_ADDR));
+ val |= 1 << 3;
+ writel(val, MX53_IO_ADDRESS(MX53_SRC_BASE_ADDR));
}
void __init imx53_soc_init(void)
@@ -257,6 +276,7 @@ void __init imx53_soc_init(void)
/* i.mx53 has the i.mx31 type audmux */
platform_device_register_simple("imx31-audmux", 0, imx53_audmux_res,
ARRAY_SIZE(imx53_audmux_res));
+ imx53_ipu_hardreset();
}
void __init imx51_init_late(void)
--
1.7.10
next prev parent reply other threads:[~2012-06-05 9:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 9:30 i.MX IPU preparation patches Sascha Hauer
2012-06-05 9:30 ` [PATCH 1/2] ARM i.MX51: setup mipi Sascha Hauer
2012-06-07 2:59 ` Shawn Guo
2012-06-07 6:13 ` David Jander
2012-06-07 7:10 ` Shawn Guo
2012-06-07 7:55 ` David Jander
2012-06-07 8:43 ` Sascha Hauer
2012-06-07 13:37 ` Shawn Guo
2012-06-09 11:32 ` Sascha Hauer
2012-06-11 9:41 ` Shawn Guo
2012-06-05 9:30 ` Sascha Hauer [this message]
2012-06-05 10:29 ` [PATCH 2/2] ARM i.MX5: Hard reset the IPU during startup Lothar Waßmann
2012-06-05 11:08 ` Sascha Hauer
2012-08-06 21:31 ` Matt Sealey
2012-08-07 17:04 ` Russell King - ARM Linux
2012-08-07 23:06 ` Matt Sealey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338888630-25930-3-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).