ARM Sunxi Platform Development
 help / color / mirror / Atom feed
* question: How to toggle gpio when init_early
@ 2022-04-29  4:30 qianfan
  2022-05-02 23:36 ` Samuel Holland
  0 siblings, 1 reply; 3+ messages in thread
From: qianfan @ 2022-04-29  4:30 UTC (permalink / raw)
  To: linux-sunxi

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-05  0:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-29  4:30 question: How to toggle gpio when init_early qianfan
2022-05-02 23:36 ` Samuel Holland
2022-05-05  0:23   ` qianfan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox