List Info

Thread: Patch: Generic TODR for ARM ports




Patch: Generic TODR for ARM ports
user name
2006-09-19 18:14:13
Todd Allan wrote:
> Garrett D'Amore wrote:
>> I've created a patch which converts the remaining
ARM ports over to
>> generic todr.  (evbarm and hpcarm).
>> As part of this code, I removed the conditional
check in common ARM code
>> for this conversion -- since this converts the
remaining ports, it is
>> reasonable to unidef the code.
>>
>> I do not have any ARM equipment.  However the
change was largely
>> "mechanical", and it should be safe. 
I've test compiled all the hpcarm
>> kernels, and I'm compiling most of the evbarm
kernels as I write
>> this. I don't expect any problems.
>>
>> I'd appreciate it if folks could review and test
these changes, and if
>> the relevant port-masters or responsible parties
can indicate to me when
>> it is safe to commit the changes.
> ...
>
> I used this patch to teach me how to convert a new
evbarm board (the
> code for which will be submitted for review Real Soon
Now), and it
> works fine.  Here's my questions on the patch...
>
> sys/arch/evbarm/ifpga/pl030_rtc.c: plrtc_attach() does
not call
> todr_attach()?

Oops!  Fixing that now.

>
> sys/arch/arm/footbridge/isa/dsrtc.c: dsrtc_write() and
dsrtc_read()
> continue to return 1 for success, which the generic
TODR code will
> treat as an error return?

Oops.  Nice catch.  Fixing that too!
>
> It's a nice improvement, thanks.

Sure.  You haven't actually tested any of this, have you?

    -- Garrett
>
> -- 
> TAllan


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecom
puter.com/
Phone: 951 325-2134  Fax: 951 325-2191

Patch: Generic TODR for ARM ports
user name
2006-09-19 19:55:07
Garrett D'Amore wrote:
> Todd Allan wrote:
...
> Sure.  You haven't actually tested any of this, have
you?

Yes I have, and it works fine on my board.  Thanks,

--
TAllan


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )