Skip to contentSkip to conversation

Accessing I2C from User Space

DISCUSSION Aman 2 participants 2 messages Dec 27, 2002 – Jan 6, 2003

lore
Share & tools
lore

Aman

author
#0 lore raw

Hi,

Iam working on IBM 440gp. I need to access the IIC registers from the user space. So I wrote a driver mmap entry point. But I noticed that the function remap_page_range () takes physical address as unsigned long which is 32 bits. How do I remap the IIC registers which lie in the 36 bit physical address space?

Regards,
Aman.

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

#1 lore raw
Quoted 8 lines · Aman

Hi,

Iam working on IBM 440gp. I need to access the IIC registers from the user space. So I wrote a driver mmap entry point. But I noticed that the function remap_page_range () takes physical address as unsigned long which is 32 bits. How do I remap the IIC registers which lie in the 36 bit physical address space?

There's a reference to a patch in one of my changeset entries. It pays to keep current with the development trees. See the changesets in your local BK tree or browse the linuxppc-commit archives.

BTW, why the need to manipulate the registers directly?

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

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