This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: redboot write to memory mapped register
On Tue, 2006-01-24 at 14:05 +1100, yh@bizmail.com.au wrote:
> Hello,
>
> The following question should be asked whether the redboot can access
> memory mapped peripheral register (And how if it can?)?
>
> I can access EP9301 internal register, but not able to access memory
> mapped peripheral registers (0x70000000 for example) by HAL_READ_UINT32
> and HAL_WRITE_UNIT32.
Note: this port isn't in the public repository, so what I say is not
authoritative.
I doubt that 0x70000000 has been mapped by the MMU, so eCos can't
access it at all. If you need such access, you'll have to get it mapped
in - look in "include/hal_platform_setup.h" for your target.
>
> Appreciate any helps.
>
> Thank you.
>
> Jim
>
> > Hello,
> >
> > In redboot, if I want to write to peripheral register in sync memory (such
> > as 0x70000000 in cirrus EP9301 chip), can I directly placed the address
> > 0x70000000 into the HAL_WRITE_UINT32, or do I need to call
> > hal_virt_to_phys_address to convert 0x70000000 to physical address?
Note: asking [basically] the same question twice in the span of
two hours does not improve the likelihood of getting an answer.
This is a volunteer project and replies come when folks have
time :-)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss