diff options
author | Ran Bi <ran.bi@mediatek.com> | 2018-10-26 15:18:09 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-02-28 13:42:17 +0000 |
commit | 47d46d0a18af3ec140c07b8e3a88dd3fb53c331e (patch) | |
tree | 259903faddaa90a65f642da737f45d098fc09cdb /src/soc/mediatek/mt8173/Makefile.inc | |
parent | 7bdae06170dffb86676b8f67df91614d8896149a (diff) |
mediatek/mt8183: Add RTC support
This patch implements RTC initialization.
1. initialization dcxo
2. rtc clock using dcxo 32k
3. export RTC_32K1V8_0 to SOC, export RTC_32K1V8_1 to WLAN
4. rtc register initialization
5. refactor the driver common part
BUG=b:80501386
BRANCH=none
TEST=Boots correctly on Kukui
Change-Id: Icccb9360a507fcbfd865b107cd3630e71c810d55
Signed-off-by: Ran Bi <ran.bi@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/31046
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8173/Makefile.inc')
-rw-r--r-- | src/soc/mediatek/mt8173/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/mt8173/Makefile.inc b/src/soc/mediatek/mt8173/Makefile.inc index 4ccc218e4d..0ffa1965a9 100644 --- a/src/soc/mediatek/mt8173/Makefile.inc +++ b/src/soc/mediatek/mt8173/Makefile.inc @@ -60,7 +60,7 @@ romstage-y += memory.c romstage-y += emi.c dramc_pi_basic_api.c dramc_pi_calibration_api.c romstage-$(CONFIG_MEMORY_TEST) += ../common/memory_test.c romstage-y += ../common/mmu_operations.c mmu_operations.c -romstage-y += rtc.c +romstage-y += ../common/rtc.c rtc.c ################################################################################ @@ -77,7 +77,7 @@ ramstage-y += da9212.c ramstage-y += ../common/gpio.c gpio.c ramstage-y += ../common/wdt.c ../common/reset.c ramstage-y += ../common/pll.c pll.c -ramstage-y += rtc.c +ramstage-y += ../common/rtc.c rtc.c ramstage-y += ../common/usb.c usb.c |