[Top] [All Lists]

[loongson-support 09/27] enable Real Time Clock Support for fuloong(2e)

To:, Ralf Baechle <>,
Subject: [loongson-support 09/27] enable Real Time Clock Support for fuloong(2e)
Date: Thu, 21 May 2009 05:27:54 +0800
Cc: Wu Zhangjin <>, Yan hua <>, Philippe Vachon <>, Zhang Le <>, Zhang Fuxin <>, Arnaud Patard <>,,, Nicholas Mc Guire <>, Liu Junliang <>, Erwan Lerale <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=+LB5lDc79BVdBuVgtI1gH6uW9DcqjQgtf+L8ZfK9cVE=; b=Km4eI1xntGapw06ep+PKe522D9YNCuILDfgngmSgT82z2PFD6Lq/Y9s8+F/21fymO2 3sUfAP9LXDqOkBHUaQqlmh2zzk2Jmh2iqJhaguTcd85n0ZQYbzTuCre1HUSabTa9FgUO 21g6V7x8mP4wPR+wEHLUP4CNo/X+nAJmbOW24=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=DNZhY1/r/4aMiY107pa/1rQDgnaW2ZXBRpR9qcp6ST3ypM3blbcO6uPF1C2c9Sp9PG ExEETRpk/7zg/x7GCs5hyyN2bYvEf39CDK0UIFInIY9E5HJ1vzHay/rip6TevYds2SiR Vf0ZHHUZDLs09QC5SNdmmbgYwDrgaSP9/YT+k=
In-reply-to: <>
Original-recipient: rfc822;
References: <>
From: Wu Zhangjin <>

by default, RTC_LIB is selected by MIPS, but if RTC_LIB is enabled,
Enhanced Real Time Clock Support(RTC) will be disabled, so, to enable
it, not select RTC_LIB in LEMOTE_FULOONG2E will fix this problem.

RTC support is needed by some tools like hwclock, if you want hwclock
work well, these two jobs need to do:

kernel configuration:

Device Drivers --->
Character devices --->
<*> Enhanced Real Time Clock Support (legacy PC RTC driver)

user-space configuration:

$ mknod /dev/rtc c 10 135

and there is another RTC support in linux, whose kernel option is
RTC_CLASS, it should be fixed for fuloong(2e) via enabling the binary
mode in driver/rtc/rtc-cmos.c and register the RTC device resource in a
machine specific rtc.c

to make hwclock work with it normally, please do:

kernel configuration:

Device Drivers --->
<*> Real Time Clock --->
        <*>   PC-style 'CMOS'

user-space configuration:

$ mknod /dev/rtc0 c 254 0

/dev/rtc0 is the default RTC device file.

Signed-off-by: Wu Zhangjin <>


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