mediatek/mt8173: move rtc_boot() to romstage
BRANCH=none BUG=none TEST=boot to kernel Change-Id: I0630d7c172e97f81abb1722afe028542e9e7f106 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 608c66df0543c76be7e811b06718464776631b55 Original-Change-Id: I03426085121bfa44c99c351d63db28f567d0ee1d Original-Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/313969 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/13097 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
82d9a31d9e
commit
767b45fe96
|
@ -27,6 +27,7 @@
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
|
|
||||||
#include <soc/mmu_operations.h>
|
#include <soc/mmu_operations.h>
|
||||||
|
#include <soc/rtc.h>
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
|
@ -36,6 +37,8 @@ void main(void)
|
||||||
console_init();
|
console_init();
|
||||||
exception_init();
|
exception_init();
|
||||||
|
|
||||||
|
rtc_boot();
|
||||||
|
|
||||||
mt8173_mmu_after_dram();
|
mt8173_mmu_after_dram();
|
||||||
|
|
||||||
run_ramstage();
|
run_ramstage();
|
||||||
|
|
|
@ -26,7 +26,7 @@ bootblock-$(CONFIG_DRIVERS_UART) += uart.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bootblock-y += gpio.c gpio_init.c pmic_wrap.c mt6391.c
|
bootblock-y += gpio.c gpio_init.c pmic_wrap.c mt6391.c
|
||||||
bootblock-y += wdt.c rtc.c
|
bootblock-y += wdt.c
|
||||||
bootblock-y += mmu_operations.c
|
bootblock-y += mmu_operations.c
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -49,7 +49,9 @@ romstage-$(CONFIG_DRIVERS_UART) += uart.c
|
||||||
romstage-y += cbmem.c
|
romstage-y += cbmem.c
|
||||||
romstage-y += spi.c
|
romstage-y += spi.c
|
||||||
romstage-y += gpio.c
|
romstage-y += gpio.c
|
||||||
|
romstage-y += pmic_wrap.c mt6391.c
|
||||||
romstage-y += mmu_operations.c
|
romstage-y += mmu_operations.c
|
||||||
|
romstage-y += rtc.c
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <soc/mmu_operations.h>
|
#include <soc/mmu_operations.h>
|
||||||
#include <soc/mt6391.h>
|
#include <soc/mt6391.h>
|
||||||
#include <soc/pll.h>
|
#include <soc/pll.h>
|
||||||
#include <soc/rtc.h>
|
|
||||||
#include <soc/wdt.h>
|
#include <soc/wdt.h>
|
||||||
|
|
||||||
void bootblock_soc_init(void)
|
void bootblock_soc_init(void)
|
||||||
|
@ -34,6 +33,4 @@ void bootblock_soc_init(void)
|
||||||
|
|
||||||
/* init watch dog, will disable AP watch dog */
|
/* init watch dog, will disable AP watch dog */
|
||||||
mtk_wdt_init();
|
mtk_wdt_init();
|
||||||
|
|
||||||
rtc_boot();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue