public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Mapping hardware registers to virtual address in RedBoot
@ 2005-09-16  6:44 Benny Chen
  2005-09-16  9:27 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Benny Chen @ 2005-09-16  6:44 UTC (permalink / raw)
  To: ecos-discuss

Hi there,
Can anyone tell me where can I get information on how to map hardware
registers to virtual address in RedBoot so that I can access the
registers using utilities like 'dump', 'mcopy'..etc.

I had a look at the hal_platform_setup.h file, this code is written in
assembler, which is not very helpful for me.  I am using the cirrus
edb9301 development board.

Hope someone can help.

Cheers,
Benny Chen 



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] Mapping hardware registers to virtual address in RedBoot
  2005-09-16  6:44 [ECOS] Mapping hardware registers to virtual address in RedBoot Benny Chen
@ 2005-09-16  9:27 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-09-16  9:27 UTC (permalink / raw)
  To: Benny Chen; +Cc: ecos-discuss

On Fri, Sep 16, 2005 at 09:31:07AM +1000, Benny Chen wrote:
> Hi there,
> Can anyone tell me where can I get information on how to map hardware
> registers to virtual address in RedBoot so that I can access the
> registers using utilities like 'dump', 'mcopy'..etc.
> 
> I had a look at the hal_platform_setup.h file, this code is written in
> assembler, which is not very helpful for me.  I am using the cirrus
> edb9301 development board.

eCos uses a 1:1 mapping between physical and virtual addresses. So
just try accessing the memory and see what happens. If they are part
of the "normal" set of registers it should just work. If they are
special regisetes outside of the normal range you might need to extent
the MMU setup to allow you access.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2005-09-16  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-16  6:44 [ECOS] Mapping hardware registers to virtual address in RedBoot Benny Chen
2005-09-16  9:27 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).