linux-mips
[Top] [All Lists]

Re: [rtc-linux] [PATCH] MIPS: Add RTC support for loongson1B

To: rtc-linux@googlegroups.com
Subject: Re: [rtc-linux] [PATCH] MIPS: Add RTC support for loongson1B
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Date: Mon, 5 Dec 2011 16:53:59 +0100
Cc: a.zummo@towertech.it, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org, keguang.zhang@gmail.com, wuzhangjin@gmail.com, r0bertz@gentoo.org, zhao zhang <zhzhl555@gmail.com>
In-reply-to: <1322729078-6141-1-git-send-email-zhzhl555@gmail.com>
References: <1322729078-6141-1-git-send-email-zhzhl555@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-06-14)
On 16:44 Thu 01 Dec     , zhzhl555@gmail.com wrote:
> From: zhao zhang <zhzhl555@gmail.com>
> 
> V2: use new module_platform_driver macro.
> thanks for Wolfram's advice.
> 
> This patch adds RTC support(TOY counter0) for loongson1B.
> Signed-off-by: zhao zhang <zhzhl555@gmail.com>
> ---
>  drivers/rtc/Kconfig    |   10 ++
>  drivers/rtc/Makefile   |    1 +
>  drivers/rtc/rtc-ls1x.c |  214 
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 225 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/rtc/rtc-ls1x.c
> 
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 5a538fc..6f8c2d7 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1070,4 +1070,14 @@ config RTC_DRV_PUV3
>         This drive can also be built as a module. If so, the module
>         will be called rtc-puv3.
>  
> +config RTC_DRV_LOONGSON1
> +     tristate "loongson1 RTC support"
> +     depends on MACH_LOONGSON1
> +     help
> +       This is a driver for the loongson1 on-chip Counter0 (Time-Of-Year
> +       counter) to be used as a RTC.
> +
> +       This driver can also be built as a module. If so, the module
> +       will be called rtc-ls1x.
> +
>  endif # RTC_CLASS
> diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
> index 6e69823..48153fe 100644
> --- a/drivers/rtc/Makefile
> +++ b/drivers/rtc/Makefile
> @@ -109,3 +109,4 @@ obj-$(CONFIG_RTC_DRV_VT8500)      += rtc-vt8500.o
>  obj-$(CONFIG_RTC_DRV_WM831X) += rtc-wm831x.o
>  obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
>  obj-$(CONFIG_RTC_DRV_X1205)  += rtc-x1205.o
> +obj-$(CONFIG_RTC_DRV_LOONGSON1)      += rtc-ls1x.o
keep it ordered


you have no alarm, irq on this hardware?

Best Regards,
J.

<Prev in Thread] Current Thread [Next in Thread>