From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mercury.testsyseng.com (unknown [209.120.144.205]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 8D4C268869 for ; Fri, 16 Dec 2005 11:30:36 +1100 (EST) Message-ID: <43A2071A.3030802@digis.net> Date: Thu, 15 Dec 2005 17:15:22 -0700 From: bennett78 MIME-Version: 1.0 To: linuxppc-embedded@ozlabs.org Content-Type: multipart/alternative; boundary="------------010408090708070709060905" Subject: MPC5200 ppc_md.set_rtc_time Reply-To: Frank Bennett List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------010408090708070709060905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi: How / when does "ppc_md.set_rtc_time" get filled in for Lite5200? Config for support /dev/rtc enables CONFIG_PPC_RTC which enable driver/char/rtc.c which mentions CMOS_WRITE panics the kernel! I trying to use driver/char/genrtc.c. I can set date but not hwclock. > hwclock --set --date="9/22/96 16:45:05" gen_set_rtc_irq_bit:exit gen_rtc_ioctl RTC_SET_TIME 00000060 RTC_SET_TIME: Invalid argument ioctl() to /dev/rtc to set the time failed. bash-2.05b# cat /proc/driver/rtc rtc_time : 00:50339648:36914 rtc_date : -1072186980-497--1073718072 rtc_epoch : 1900 alarm : 00:00:00 DST_enable : no BCD : yes 24hr : yes square_wave : no alarm_IRQ : no update_IRQ : no <----- how can I hook one? periodic_IRQ : no periodic_freq : 0 batt_status : okay thanks, */Frank Bennett /* --------------010408090708070709060905 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi:
   How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?

Config for support /dev/rtc enables CONFIG_PPC_RTC
which enable driver/char/rtc.c which mentions CMOS_WRITE
panics the kernel!

I trying to use driver/char/genrtc.c.   I can set date
but not hwclock.

> hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctl RTC_SET_TIME 00000060
RTC_SET_TIME: Invalid argument
ioctl() to /dev/rtc to set the time failed.

bash-2.05b# cat /proc/driver/rtc
rtc_time        : 00:50339648:36914
rtc_date        : -1072186980-497--1073718072
rtc_epoch       : 1900
alarm           : 00:00:00
DST_enable      : no
BCD             : yes
24hr            : yes
square_wave     : no
alarm_IRQ       : no
update_IRQ      : no  <----- how can I hook one?
periodic_IRQ    : no
periodic_freq   : 0
batt_status     : okay


thanks,
Frank Bennett

--------------010408090708070709060905--