drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B

Added RTC driver that supports Motorola MC146818B
Enabled RTC set/get time and alarm, alarm callback
and update callback.

Counter and RTC uses same hardware in case of
Motorola MC146818, so they can't be used at a time.

Updated stand-alone mc146818 counter dts instances
to support rtc and counter with same compatible
string of "motorola,mc146818" on ia32, atom,
apollo_lake, elhart_lake and raptor_lake platforms.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
This commit is contained in:
Anisetti Avinash Krishna 2023-04-20 17:46:31 +05:30 committed by Carles Cufí
commit bfeb5043ac
16 changed files with 642 additions and 12 deletions

View file

@ -0,0 +1,9 @@
# Copyright (c) 2022, Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
description: Motorola MC146818 compatible Real Timer Clock
compatible: "motorola,mc146818"
include: rtc-device.yaml