linux-mips
[Top] [All Lists]

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

To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Subject: Re: [rtc-linux] [PATCH] MIPS: Add RTC support for loongson1B
From: zhao zhang <zhzhl555@gmail.com>
Date: Wed, 7 Dec 2011 10:18:29 +0800
Cc: rtc-linux@googlegroups.com, 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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nHl4cDf67s7CHam8QkZXjbO3iXjMiGPlwjqX0Yibs9c=; b=T7s1HxFgtoyYErfWbi1saRJgVQuLKjaVE/O25VV8wNWAQzYUHE5Zpv4ROwfM+Junrp YMehWWRNTvMiWMsCmU+r2tWlZk9xKDTspigTSugfG0KB0pTb55Gvg7DM6i2X5JbjGkKt 30RuXxpzMNQxjTpeSYAtVg63+yG/UJNHw52u8=
In-reply-to: <20111205155359.GF9192@game.jcrosoft.org>
References: <1322729078-6141-1-git-send-email-zhzhl555@gmail.com> <20111205155359.GF9192@game.jcrosoft.org>
Sender: linux-mips-bounce@linux-mips.org
sorry, i didn't see the rule in that Makefile.

the loongson1B SOC has the alarm,irq. but that's my next plan.
i am adding other IP's support for this SOC right now. 



在 2011年12月5日 下午11:53,Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>写道:
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>