All of lore.kernel.org
 help / color / mirror / Atom feed
From: jose.ferreiro@horus.es (jose)
To: linux-arm-kernel@lists.infradead.org
Subject: MX6Q Linux 3.10.17 Trying to read registers at boot time
Date: Thu, 29 Jan 2015 13:38:05 +0100	[thread overview]
Message-ID: <54CA29AD.2070703@horus.es> (raw)

Hello

As you can see below, I came here redirected from:

https://community.freescale.com/message/473511#473511
and
meta-freescale at yoctoproject.org mail list

I am trying to read/write registers on a 3.10.17 linux compiled for 
Freescale iMX6Q. And I am trying to do it at mach-imx6q.c

Kernel hangs at Starting kernel point when I try the read.

Next step is try to access like IPU driver with 
platform_get_resource(pdev, IORESOURCE_MEM, 0) but if someone has any 
better suggestion I gladly will follow it.

Thanks and best regards,
Jose

----------------
I am not able to redirect the other list post so this is what I tried:
1) direct access
u32 reg = (ANADIG_ANA_MISC1_LVDSCLK1_IBEN | 
ANADIG_ANA_MISC1_LVDS1_CLK_SEL_MASK);

   writel(reg, (volatile void __iomem *) 0x20C8168);
2) map a region:
I used the request_mem_region, ioremap and ioread32 process 
(http://www.makelinux.net/ldd3/chp-9-sect-4)

                 reply	other threads:[~2015-01-29 12:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=54CA29AD.2070703@horus.es \
    --to=jose.ferreiro@horus.es \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.