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:[EMAIL PROTECTED]
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/



Reply via email to