[rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.
Jain Priyanka-B32167
B32167 at freescale.com
Thu Mar 10 14:23:57 EST 2011
Dear Wolfram,
Though register-set looks identical but features were different. And also manufacturer is different.
But still it might be possible that we can reuse ds1307.c with some modification.
But if I look at the drivers present in drivers/rtc folder. Most of them looks similar but still there are different drivers for different chips.
Please suggest which way is more preferred: modifying existing drivers(of different manufacturer) or writing new driver.
Thanks
Priyanka
> -----Original Message-----
> From: Wolfram Sang [mailto:w.sang at pengutronix.de]
> Sent: Thursday, March 03, 2011 2:53 PM
> To: rtc-linux at googlegroups.com
> Cc: linuxppc-dev at lists.ozlabs.org; a.zummo at towertech.it;
> p_gortmaker at yahoo.com; akpm at linux-foundation.org; Jain Priyanka-B32167
> Subject: Re: [rtc-linux] [PATCH] RTC driver(Linux) for PT7C4338 chip.
>
> Hi,
>
> > +/*
> > + * This file provides Date & Time support (no alarms) for PT7C4338
> chip.
> > + *
> > + * This file is based on drivers/rtc/rtc-ds1307.c
>
> Please explain why you can't use rtc-ds1307 directly (or with slight
> modifications). I might have missed something but the register-set looks
> identical to me?
>
> Regards,
>
> Wolfram
>
> --
> Pengutronix e.K. | Wolfram Sang
> |
> Industrial Linux Solutions | http://www.pengutronix.de/
> |
More information about the Linuxppc-dev
mailing list