[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RTC_PIE possible using via-pmu?



RTC_IRQP_SET sets the periodic interrupt rate.
RTC_PIE_ON turns on periodic interrupts.
RTC_PIE_OFF turns off periodic interrupts.

There are similar ioctls for setting alarms, but I don't see those
used very often.

I've pasted the relevant part of my dmesg below. It seems the OpenPIC
timer frequency will limit the usability of above iotctls to 4.16MHz.
Is that right?

Thanks,
Martin

PowerMac using OpenPIC irq controller at 0x80040000
OpenPIC Version 1.2 (4 CPUs and 64 IRQ sources) at fc5e4000
OpenPIC timer frequency is 4.166666 MHz
PID hash table entries: 4096 (order: 12, 65536 bytes)
GMT Delta read from XPRAM: 0 minutes, DST: on
time_init: decrementer frequency = 33.331553 MHz

On Tue, Mar 29, 2005 at 08:38:48AM +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2005-03-28 at 18:45 +0100, Martin Habets wrote:
> > Hi,
> > 
> > One of my major struggles in doing audio with my powerbook is the
> > lack of a programmable RTC. I have a via-pmu based pmac and use
> > the genrtc module.
> > 
> > More presicely I need these iotctls: RTC_IRQP_SET, RTC_PIE_ON,
> > RTC_PIE_OFF. Would it be possible/wise to add these using
> > via-pmu timer 1?
> > Is there a PMU command for this, or would it require direct IO like
> > via_calibrate_decr()?
> 
> What are those things supposed to be ?
> 
> Ben.



Reply to: