mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Christoph Fritz <chf.fritz@googlemail.com>
To: Alexander Shiyan <shc_work@mail.ru>
Cc: barebox@lists.infradead.org
Subject: [PATCH] [RFC] ARM OMAP4: enable DSS by default
Date: Fri, 15 Mar 2013 14:39:22 +0100	[thread overview]
Message-ID: <1363354762.13088.261.camel@mars> (raw)
In-Reply-To: <1363336811.543222125@f383.i.mail.ru>

On Fri, 2013-03-15 at 12:40 +0400, Alexander Shiyan wrote:

> MD command causes an error due to the inability of the reading memory area.
> Error can be disabled via the option "enable arm exception handling support",
> but it does not help solve the problem.
> OMAP has a memory areas (modules), which are locked,

This corresponds with my register observations. As noted above, register
CM_DSS_DSS_CLKCTRL (0x4a009120) reads 0x00070F02 which means: "Module is
disabled and cannot be accessed".

>  so you need to
> search this information from datasheet.

Finnaly I was very wise inspired to do "mw 0x4a009100 2". This disables
the HW_AUTO-Mode (Automatic transition) and starts a software forced
wake-up (SW_WKUP).

Now even the IDLEST field from CM_DSS_CLKSTCTRL reads 0x0: "Module is
fully functional, including INTRCONN" :-)

et la voila:
md 0x48040000+4
48040000: 00000040

What do you think about the patch below?

---
Subject: [PATCH] [RFC] ARM OMAP4: enable DSS by default

This patch removes the anyway default reset setting of HW_AUTO in favour of
SW_WKUP. So the DSS Module gets enabled and you gain full register access.
---
 arch/arm/mach-omap/omap4_clock.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap/omap4_clock.c b/arch/arm/mach-omap/omap4_clock.c
index 0621fd3..72335d9 100644
--- a/arch/arm/mach-omap/omap4_clock.c
+++ b/arch/arm/mach-omap/omap4_clock.c
@@ -375,8 +375,8 @@ void omap4_enable_all_clocks(void)
 	/* Check for DSS Clocks */
 	while ((__raw_readl(0x4A009100) & 0xF00) != 0xE00)
 		;
-	/* Set HW_AUTO transition mode */
-	sr32(CM_DSS_CLKSTCTRL, 0, 32, 0x3);
+	/* Set SW_WKUP to enable DSS Module with full register access */
+	sr32(CM_DSS_CLKSTCTRL, 0, 32, 0x2);
 
 	/* Enable SGX clocks */
 	sr32(CM_SGX_CLKSTCTRL, 0, 32, 0x2);
-- 
1.7.10.4




_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2013-03-15 13:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 12:19 Omap4 DSS clocks Christoph Fritz
2013-03-14 12:48 ` Alexander Shiyan
2013-03-14 12:51   ` Christoph Fritz
2013-03-14 13:02     ` Re[2]: " Alexander Shiyan
2013-03-14 13:11       ` Re[3]: " Alexander Shiyan
2013-03-14 13:23         ` Christoph Fritz
2013-03-14 13:33           ` Sascha Hauer
2013-03-14 13:46             ` Christoph Fritz
2013-03-14 15:06               ` Christoph Fritz
2013-03-14 16:29                 ` Re[5]: " Alexander Shiyan
2013-03-15  8:20                   ` Christoph Fritz
2013-03-15  8:40                     ` Re[7]: " Alexander Shiyan
2013-03-15 13:39                       ` Christoph Fritz [this message]
2013-04-04  6:42                         ` [PATCH] [RFC] ARM OMAP4: enable DSS by default Christoph Fritz
2013-04-05  6:39                           ` Re[2]: " Alexander Shiyan

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=1363354762.13088.261.camel@mars \
    --to=chf.fritz@googlemail.com \
    --cc=barebox@lists.infradead.org \
    --cc=shc_work@mail.ru \
    /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