[SeaBIOS] [PATCH] rtc: Support disabling the RTC timer irq support
kevin at koconnor.net
Mon Aug 17 22:26:11 CET 2015
On Mon, Aug 17, 2015 at 11:32:18PM +0200, Paul Menzel wrote:
> Am Montag, den 17.08.2015, 12:23 -0400 schrieb Kevin O'Connor:
> > Add a build time config option to remove support for RTC timer
> > interrupts along with the associated bios calls requiring that
> > support.
> > Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
> > ---
> > src/Kconfig | 9 +++++++++
> > src/clock.c | 13 ++++++++++++-
> > src/hw/rtc.c | 6 ++++++
> > src/stacks.c | 2 +-
> > 4 files changed, 28 insertions(+), 2 deletions(-)
> > diff --git a/src/Kconfig b/src/Kconfig
> > index 6256242..56a1b2f 100644
> > --- a/src/Kconfig
> > +++ b/src/Kconfig
> > @@ -299,6 +299,15 @@ menu "Hardware support"
> > default y
> > help
> > Support parallel ports. This also enables int 17 parallel port calls.
> > + config RTC_TIMER
> > + bool "Real Time Clock (RTC) scheduling"
> > + default y
> > + help
> > + Support MC146818 Real Time Clock chip timer
> > + interrupts. This also enables int 1583 and int 1586 calls.
> > +
> > + Disabling this support does not disable access to the RTC
> > + cmos registers.
> what is the use case for this option, that means, what are the
> circumstances that users might disable it?
Thanks for reviewing.
The main use case is the follow up "baytrail" patch series. On some
baytrail hardware, the RTC irq (as with other legacy irqs) doesn't
work and so this patch allows it to be disabled. I separated this
patch out from that series because it could be useful on its own.
More information about the SeaBIOS