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:[email protected]] > Sent: Thursday, March 03, 2011 2:53 PM > To: [email protected] > Cc: [email protected]; [email protected]; > [email protected]; [email protected]; 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/ > | _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
