[U-Boot] [PATCH v3] drivers/rtc: add Marvell Integrated RTC.

Prafulla Wadaskar prafulla at marvell.com
Thu Aug 4 14:45:11 CEST 2011



> -----Original Message-----
> From: Jason Cooper [mailto:u-boot at lakedaemon.net]
> Sent: Monday, August 01, 2011 7:39 PM
> To: wd at denx.de; Prafulla Wadaskar
> Cc: u-boot at lists.denx.de; clint at debian.org; Prabhanjan Sarnaik; Ashish
> Karkare; Siddarth Gore; bdale at gag.com; Jason Cooper
> Subject: [PATCH v3] drivers/rtc: add Marvell Integrated RTC.
> 
> This driver can be used for kirkwood SoCs by enabling CONFIG_RTC_MV.
> Tested on
> Global Scale Technologies Dreamplug.
> 
> Signed-off-by: Jason Cooper <u-boot at lakedaemon.net>
> ---
> Changes from v1:
> 	- renamed files to mvrtc.{c,h}
> 	- used proper c-structs for register access
> 	- used existing macros for register access
> 	- removed RFC
> 
> Changes from v2:
> 	- use bin2bcd() and bcd2bin() to make code easier to read
> 	- changed CONFIG_RTC_MVINTEG -> CONFIG_RTC_MV
> 	- use 24 hour mode, detect if rtc went into 12 hour mode
> 	- add check if ticking to rtc_reset()
> 
>  arch/arm/include/asm/arch-kirkwood/kirkwood.h |    1 +
>  drivers/rtc/Makefile                          |    1 +
>  drivers/rtc/mvrtc.c                           |  124
> +++++++++++++++++++++++++
>  drivers/rtc/mvrtc.h                           |   65 +++++++++++++
>  4 files changed, 191 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/rtc/mvrtc.c
>  create mode 100644 drivers/rtc/mvrtc.h
> 

Applied to u-boot-marvell.git master branch

Regards..
Prafulla . .


More information about the U-Boot mailing list