[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnewsense-dev] [loongson-support 09/27] enable Real Time Clock Support
From: |
wuzhangjin |
Subject: |
[Gnewsense-dev] [loongson-support 09/27] enable Real Time Clock Support for fuloong(2e) |
Date: |
Thu, 21 May 2009 05:27:54 +0800 |
From: Wu Zhangjin <address@hidden>
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 <address@hidden>
--
1.6.2.1
- [Gnewsense-dev] [loongson-support 00/27] linux PATCHes of loongson-based machines, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 01/27] fix-warning: incompatible argument type of pci_fixup_irqs, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 02/27] fix-warning: incompatible argument type of virt_to_phys, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 04/27] change the naming methods, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 06/27] divide the files to the smallest logic unit, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 03/27] fix-error: incompatiable argument type of clear_user, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 05/27] remove reference to bonito64.h, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 07/27] replace tons of magic numbers by understandable symbols, wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 08/27] clean up the early printk support for fuloong(2e), wuzhangjin, 2009/05/20
- [Gnewsense-dev] [loongson-support 09/27] enable Real Time Clock Support for fuloong(2e),
wuzhangjin <=
- [Gnewsense-dev] Re: [loongson-support 00/27] linux PATCHes of loongson-based machines, Wu Zhangjin, 2009/05/20
- [Gnewsense-dev] Re: [loongson-support 00/27] linux PATCHes of loongson-based machines, Daniel Clark, 2009/05/20
- [Gnewsense-dev] [loongson-support 10/27] add loongson-specific cpu-feature-overrides.h, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-support 11/27] split the loongson-specific part out, wuzhangjin, 2009/05/21
- [Gnewsense-dev] Re: [loongson-support 00/27] linux PATCHes of loongson-based machines, Daniel Clark, 2009/05/21