DS1302 driver for powerpc

2006-08-31 Thread Chun Chung Lo

Hi,

Thanks for your help.

But I also do not have this driver for 83xx. (as my linux is comes from
Montavista)

Could you mind providing me a link / or a source of such driver for me
to reference ?

Thanks.

Best regards,
Lo Chun Chung

-Original Message-
From: Matt Porter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 August, 2006 9:55 PM
To: Chun Chung Lo
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: DS1302 driver for powerpc


On Wed, Aug 30, 2006 at 07:54:16PM +0800, Chun Chung Lo wrote:

 Hi all,

 I am now doing a STB project and the development board uses a DS1302
 (trickle charge timekeeping chip) as a RTC. Our board is a IBM
 PPC405EP with a linux kernel 2.4.20 running on it. And the DS1302 is
 controlled by 2 GPIO pins instead of I2C.

 I would like to ask are there any porting of DS1302 support under ppc
 architecture? (I can only find DS1302 is supported under cris
 architecture.)

There doesn't seem to be any DS1302 support for ppc available.
However, even if there were a platform with DS1302 support you'd be in
the same boat as the low-level support for cris.  Support for DS1302 has
a glue layer that's board-specific based on what GPIO pins are used to
drive it.  So if you had this driver for another PPC system like 83xx
you'd still have no better starting point than the cris ds1302 driver
glue since the GPIO mechanism/connection is different. Porting the
board-specific glue from arch/cris/drivers/ds1302.c to 4xx GPIO is
trivial to do though.

-Matt

This message (including any attachments) is for the named addressee(s)'s use 
only. It may contain
sensitive, confidential, private proprietary or legally privileged information 
intended for a
specific individual and purpose, and is protected by law. If you are not the 
intended recipient,
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this 
message and/or any
attachments is strictly prohibited.





DS1302 driver for powerpc

2006-08-31 Thread Chun Chung Lo

Hi,

That's good. I also started to work on it.

Thanks for your quick reply.

Best regards,
Lo Chun Chung

-Original Message-
From: Matt Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 August, 2006 9:12 AM
To: Chun Chung Lo
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: DS1302 driver for powerpc


On Thu, Aug 31, 2006 at 08:51:22AM +0800, Chun Chung Lo wrote:

 Hi,

 Thanks for your help.

 But I also do not have this driver for 83xx. (as my linux is comes
 from
 Montavista)

The 83xx reference was a hypothetical. There is no 83xx driver for the
ds1302.

 Could you mind providing me a link / or a source of such driver for me

 to reference ?

My advice is to port the cris DS1302 driver to your board-specific GPIO
configuration.

-Matt


This message (including any attachments) is for the named addressee(s)'s use 
only. It may contain
sensitive, confidential, private proprietary or legally privileged information 
intended for a
specific individual and purpose, and is protected by law. If you are not the 
intended recipient,
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this 
message and/or any
attachments is strictly prohibited.





Re: DS1302 driver for powerpc

2006-08-30 Thread Matt Porter
On Wed, Aug 30, 2006 at 07:54:16PM +0800, Chun Chung Lo wrote:
 
 Hi all,
 
 I am now doing a STB project and the development board uses a DS1302
 (trickle charge timekeeping chip) as a RTC. Our board is a IBM PPC405EP
 with a linux kernel 2.4.20 running on it. And the DS1302 is controlled
 by 2 GPIO pins instead of I2C.
 
 I would like to ask are there any porting of DS1302 support under ppc
 architecture? (I can only find DS1302 is supported under cris
 architecture.)

There doesn't seem to be any DS1302 support for ppc available. However,
even if there were a platform with DS1302 support you'd be in the same
boat as the low-level support for cris.  Support for DS1302 has a glue
layer that's board-specific based on what GPIO pins are used to drive
it.  So if you had this driver for another PPC system like 83xx you'd
still have no better starting point than the cris ds1302 driver glue
since the GPIO mechanism/connection is different. Porting the
board-specific glue from arch/cris/drivers/ds1302.c to 4xx GPIO is
trivial to do though.

-Matt
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: DS1302 driver for powerpc

2006-08-30 Thread Matt Porter
On Thu, Aug 31, 2006 at 08:51:22AM +0800, Chun Chung Lo wrote:
 
 Hi,
 
 Thanks for your help.
 
 But I also do not have this driver for 83xx. (as my linux is comes from
 Montavista)

The 83xx reference was a hypothetical. There is no 83xx driver for the
ds1302.
 
 Could you mind providing me a link / or a source of such driver for me
 to reference ?

My advice is to port the cris DS1302 driver to your board-specific
GPIO configuration. 

-Matt

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: DS1302 driver for powerpc

2006-08-30 Thread Chun Chung Lo

Hi,

That's good. I also started to work on it.

Thanks for your quick reply.

Best regards,
Lo Chun Chung

-Original Message-
From: Matt Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 August, 2006 9:12 AM
To: Chun Chung Lo
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: DS1302 driver for powerpc


On Thu, Aug 31, 2006 at 08:51:22AM +0800, Chun Chung Lo wrote:

 Hi,

 Thanks for your help.

 But I also do not have this driver for 83xx. (as my linux is comes
 from
 Montavista)

The 83xx reference was a hypothetical. There is no 83xx driver for the
ds1302.

 Could you mind providing me a link / or a source of such driver for me

 to reference ?

My advice is to port the cris DS1302 driver to your board-specific GPIO
configuration.

-Matt


This message (including any attachments) is for the named addressee(s)'s use 
only. It may contain
sensitive, confidential, private proprietary or legally privileged information 
intended for a
specific individual and purpose, and is protected by law. If you are not the 
intended recipient,
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this 
message and/or any
attachments is strictly prohibited.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


DS1302 driver for powerpc

2006-08-30 Thread Chun Chung Lo

Hi all,

I am now doing a STB project and the development board uses a DS1302
(trickle charge timekeeping chip) as a RTC. Our board is a IBM PPC405EP
with a linux kernel 2.4.20 running on it. And the DS1302 is controlled
by 2 GPIO pins instead of I2C.

I would like to ask are there any porting of DS1302 support under ppc
architecture? (I can only find DS1302 is supported under cris
architecture.)

Thanks all.

Best regards,
Lo Chun Chung

This message (including any attachments) is for the named addressee(s)'s use 
only. It may contain
sensitive, confidential, private proprietary or legally privileged information 
intended for a
specific individual and purpose, and is protected by law. If you are not the 
intended recipient,
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this 
message and/or any
attachments is strictly prohibited.





DS1302 driver for powerpc

2006-08-30 Thread Matt Porter
On Wed, Aug 30, 2006 at 07:54:16PM +0800, Chun Chung Lo wrote:
 
 Hi all,
 
 I am now doing a STB project and the development board uses a DS1302
 (trickle charge timekeeping chip) as a RTC. Our board is a IBM PPC405EP
 with a linux kernel 2.4.20 running on it. And the DS1302 is controlled
 by 2 GPIO pins instead of I2C.
 
 I would like to ask are there any porting of DS1302 support under ppc
 architecture? (I can only find DS1302 is supported under cris
 architecture.)

There doesn't seem to be any DS1302 support for ppc available. However,
even if there were a platform with DS1302 support you'd be in the same
boat as the low-level support for cris.  Support for DS1302 has a glue
layer that's board-specific based on what GPIO pins are used to drive
it.  So if you had this driver for another PPC system like 83xx you'd
still have no better starting point than the cris ds1302 driver glue
since the GPIO mechanism/connection is different. Porting the
board-specific glue from arch/cris/drivers/ds1302.c to 4xx GPIO is
trivial to do though.

-Matt



DS1302 driver for powerpc

2006-08-30 Thread Matt Porter
On Thu, Aug 31, 2006 at 08:51:22AM +0800, Chun Chung Lo wrote:
 
 Hi,
 
 Thanks for your help.
 
 But I also do not have this driver for 83xx. (as my linux is comes from
 Montavista)

The 83xx reference was a hypothetical. There is no 83xx driver for the
ds1302.
 
 Could you mind providing me a link / or a source of such driver for me
 to reference ?

My advice is to port the cris DS1302 driver to your board-specific
GPIO configuration. 

-Matt