ts-7000
[Top] [All Lists]

[ts-7000] Re: gpio kernel drivers....

To:
Subject: [ts-7000] Re: gpio kernel drivers....
From: "Yan Seiner" <>
Date: Fri, 17 Mar 2006 19:01:22 -0000
--- In  Lennert Buytenhek <> wrote:
>
> On Thu, Mar 16, 2006 at 04:53:35PM -0800, Rich Wilson wrote:
> 
> > I suspect you're having problems because you're not page aligned.
> 
> That's odd, does the book say that?  I always thought that ioremap()
> deals with non-page aligned addresses itself, and having a peek at
> the 2.6.16-rc5 source code (arch/arm/mm/ioremap.c) seems to confirm
> this..

I've been through the source for the ts9 kernel.... And the arm
ioremap does handle non-page-aligned requests....

I still can't figure out why, in the most basic sense,

readb(ioremap(0x11e00104,1)) in kernel mode gives a different result than

*((unsigned char *)mmap(0, getpagesize(), PROT_READ|PROT_WRITE,
MAP_SHARED, fd, 0x11e000104)) in userspace....

...

I've been through the source for 8250.c and a handful of others, and I
can't for the life of me figure out why those two are giving me
diffferent answers...

They should both point to the control register of the TSDIO-24 board...

--Yan






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU