ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: qianfan <qianfanguijin@163.com>
To: linux-sunxi@lists.linux.dev
Subject: question: How to toggle gpio when init_early
Date: Fri, 29 Apr 2022 12:30:15 +0800	[thread overview]
Message-ID: <2ecb71b6-6df1-6728-3d30-a401e181b326@163.com> (raw)

Hi everyone:

I want toggle a gpio when machine_desc->init_early, but failed.

The gpio is pd24, and I searched the datasheet of r40, the address of 
PD_DAT register
is 0x01c20800 + 3 * 0x24 + 0x10. So I modify this register by 
__raw_readl and __raw_writel.
The system can't startup when I adding those code.

Seems the physical address can't touch due to mmu.
Can I get some advice?

Thanks


             reply	other threads:[~2022-04-29  4:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-29  4:30 qianfan [this message]
2022-05-02 23:36 ` question: How to toggle gpio when init_early Samuel Holland
2022-05-05  0:23   ` qianfan

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=2ecb71b6-6df1-6728-3d30-a401e181b326@163.com \
    --to=qianfanguijin@163.com \
    --cc=linux-sunxi@lists.linux.dev \
    /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