soc/mediatek: Make timer_prepare() a common function
timer_prepare() is the same for MT8195 and MT8186, so move it to common folder. TEST=build pass BUG=b:233720142 Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I91a6f4ecc665a058cb7a0ba96c15b27d6dc97d13 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65602 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Yidi Lin <yidilin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
22d30c4fae
commit
e0541ec874
|
@ -5,7 +5,7 @@ all-y += ../common/flash_controller.c
|
||||||
all-y += ../common/gpio.c gpio.c
|
all-y += ../common/gpio.c gpio.c
|
||||||
all-y += ../common/i2c.c i2c.c
|
all-y += ../common/i2c.c i2c.c
|
||||||
all-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
all-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
||||||
all-y += ../common/timer.c timer.c
|
all-y += ../common/timer.c ../common/timer_prepare.c
|
||||||
all-y += ../common/uart.c
|
all-y += ../common/uart.c
|
||||||
|
|
||||||
bootblock-y += bootblock.c
|
bootblock-y += bootblock.c
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is created based on MT8186 Functional Specification
|
|
||||||
* Chapter number: 5.13
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <device/mmio.h>
|
|
||||||
#include <soc/addressmap.h>
|
|
||||||
#include <soc/timer.h>
|
|
||||||
|
|
||||||
void timer_prepare(void)
|
|
||||||
{
|
|
||||||
clrbits32((void *)SYSTIMER_BASE, COMP_FEATURE_MASK);
|
|
||||||
setbits32((void *)SYSTIMER_BASE, COMP_25_MASK);
|
|
||||||
}
|
|
|
@ -5,7 +5,7 @@ all-y += ../common/flash_controller.c
|
||||||
all-y += ../common/gpio.c gpio.c
|
all-y += ../common/gpio.c gpio.c
|
||||||
all-y += ../common/i2c.c i2c.c
|
all-y += ../common/i2c.c i2c.c
|
||||||
all-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
all-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
||||||
all-y += ../common/timer.c timer.c
|
all-y += ../common/timer.c ../common/timer_prepare.c
|
||||||
all-y += ../common/uart.c
|
all-y += ../common/uart.c
|
||||||
|
|
||||||
bootblock-y += bootblock.c
|
bootblock-y += bootblock.c
|
||||||
|
|
Loading…
Reference in New Issue