From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 5/7] ARM: sun6i: Protect SDRAM gating bit
Date: Tue, 4 Mar 2014 17:18:02 +0100 [thread overview]
Message-ID: <1393949884-892-6-git-send-email-maxime.ripard@free-electrons.com> (raw)
In-Reply-To: <1393949884-892-1-git-send-email-maxime.ripard@free-electrons.com>
Prevent the SDRAM controller from being gated by force-enabling it in the
machine code.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/mach-sunxi/sun6i.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-sunxi/sun6i.c b/arch/arm/mach-sunxi/sun6i.c
index 6b39055..1ccb275 100644
--- a/arch/arm/mach-sunxi/sun6i.c
+++ b/arch/arm/mach-sunxi/sun6i.c
@@ -34,6 +34,11 @@ static void __init sun6i_dt_init(void)
clk = clk_get(NULL, "cpu");
if (!IS_ERR(clk))
clk_prepare_enable(clk);
+
+ /* DDR gating clock */
+ clk = clk_get(NULL, "ahb1_sdram");
+ if (!IS_ERR(clk))
+ clk_prepare_enable(clk);
}
extern void __init sun6i_reset_init(void);
--
1.9.0
next prev parent reply other threads:[~2014-03-04 16:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 16:17 [PATCH v3 0/7] Add support for the Allwinner A31 DMA Controller Maxime Ripard
2014-03-04 16:17 ` [PATCH v3 1/7] clk: sunxi: Remove calls to clk_put Maxime Ripard
2014-03-04 16:17 ` [PATCH v3 2/7] ARM: sunxi: Split out the various machines into separate files Maxime Ripard
2014-03-04 16:18 ` [PATCH v3 3/7] ARM: sunxi: Move the clock protection to machine hooks Maxime Ripard
2014-03-04 16:18 ` [PATCH v3 4/7] ARM: sun6i: Protect CPU clock Maxime Ripard
2014-03-04 16:18 ` Maxime Ripard [this message]
2014-03-04 16:18 ` [PATCH v3 6/7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller Maxime Ripard
2014-03-05 14:07 ` Shevchenko, Andriy
2014-03-10 12:05 ` Maxime Ripard
2014-03-04 16:18 ` [PATCH v3 7/7] ARM: sun6i: dt: Add A31 DMA controller to DTSI Maxime Ripard
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=1393949884-892-6-git-send-email-maxime.ripard@free-electrons.com \
--to=maxime.ripard@free-electrons.com \
--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