[U-Boot] [PATCH 2/3] A320: driver for FTRTC010 real time clock

2009-06-23 Thread Po-Yu Chuang
This patch adds an FTRTC010 driver for Faraday A320 evaluation board. Signed-off-by: Po-Yu Chuang --- Index: drivers/rtc/Makefile === RCS file: /usr/local/cvsroot/ctd/u-boot-2009.06/drivers/rtc/Makefile,v retrieving revision 1.1.1.1

Re: [U-Boot] [PATCH 2/3] A320: driver for FTRTC010 real time clock

2009-06-23 Thread Jean-Christophe PLAGNIOL-VILLARD
> + > +static volatile struct ftrtc010 *rtc = (struct ftrtc010 > *)CONFIG_SYS_RTC_BASE; > + > +static void ftrtc_enable (void) you use it at one please only the reset > +{ > + rtc->cr = cpu_to_le32 (FTRTC010_CR_ENABLE); so please move this code there > +} > + > +/* > + * return current time in

Re: [U-Boot] [PATCH 2/3] A320: driver for FTRTC010 real time clock

2009-06-23 Thread Po-Yu Chuang
Dear Jean-Christophe PLAGNIOL-VILLARD, 2009/6/24 Jean-Christophe PLAGNIOL-VILLARD : >> + >> +static volatile struct ftrtc010 *rtc = (struct ftrtc010 >> *)CONFIG_SYS_RTC_BASE; >> + >> +static void ftrtc_enable (void) > you use it at one please only the reset Sorry, I don't understand what do you m

Re: [U-Boot] [PATCH 2/3] A320: driver for FTRTC010 real time clock

2009-06-24 Thread Detlev Zundel
Hi Po-Yu Chuang, > Dear Jean-Christophe PLAGNIOL-VILLARD, > > 2009/6/24 Jean-Christophe PLAGNIOL-VILLARD : >>> + >>> +static volatile struct ftrtc010 *rtc = (struct ftrtc010 >>> *)CONFIG_SYS_RTC_BASE; >>> + >>> +static void ftrtc_enable (void) >> you use it at one please only the reset > Sorry, I