linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: simple access to mem mapped peripheral
@ 2001-10-02 14:53 Subodh Nijsure
  2001-10-04  8:02 ` Matthias Fuchs
  0 siblings, 1 reply; 6+ messages in thread
From: Subodh Nijsure @ 2001-10-02 14:53 UTC (permalink / raw)
  To: 'Matthias Fuchs', linuxppc-embedded


Hello,

May be try this?

	chip_registerbase = (unsigned
long)ioremap_nocache(CHIP_PHYSICAL_ADDRESS,
    			CHIP_MEM_SIZE);
	printk("Linux kernel Memory mapped base register %lX \n",
chip_registerbase);

Then you can read and write to your chip via *chip_registerbase

/Subodh

-----Original Message-----
From: Matthias Fuchs [mailto:matthias.fuchs@esd-electronics.com]
Sent: Tuesday, October 02, 2001 10:02 AM
To: linuxppc-embedded
Subject: simple access to mem mapped peripheral



Hi,

I need a "very simple" way to access a mem mapped peripheral. The device
is mem mapped at 0xf0200000.
I was trying /dev/mem but this dev only accesses my physical memory
chips.

My target is a ppc405gp running recent kernel 2.4.10.

Any idea ?

Matthias


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* simple access to mem mapped peripheral
@ 2001-10-02  9:02 Matthias Fuchs
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Fuchs @ 2001-10-02  9:02 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I need a "very simple" way to access a mem mapped peripheral. The device
is mem mapped at 0xf0200000.
I was trying /dev/mem but this dev only accesses my physical memory
chips.

My target is a ppc405gp running recent kernel 2.4.10.

Any idea ?

Matthias

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-10-04 15:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 14:53 simple access to mem mapped peripheral Subodh Nijsure
2001-10-04  8:02 ` Matthias Fuchs
2001-10-04  8:15   ` Pierre AUBERT
2001-10-04 10:07     ` Matthias Fuchs
2001-10-04 15:34       ` Francis Litterio
  -- strict thread matches above, loose matches on Subject: below --
2001-10-02  9:02 Matthias Fuchs

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 NNTP newsgroup(s).