diff options
-rw-r--r-- | src/soc/mediatek/common/timer_prepare.c (renamed from src/soc/mediatek/mt8195/timer.c) | 0 | ||||
-rw-r--r-- | src/soc/mediatek/mt8186/Makefile.inc | 2 | ||||
-rw-r--r-- | src/soc/mediatek/mt8186/timer.c | 16 | ||||
-rw-r--r-- | src/soc/mediatek/mt8195/Makefile.inc | 2 |
4 files changed, 2 insertions, 18 deletions
diff --git a/src/soc/mediatek/mt8195/timer.c b/src/soc/mediatek/common/timer_prepare.c index 3fb4be7f2d..3fb4be7f2d 100644 --- a/src/soc/mediatek/mt8195/timer.c +++ b/src/soc/mediatek/common/timer_prepare.c diff --git a/src/soc/mediatek/mt8186/Makefile.inc b/src/soc/mediatek/mt8186/Makefile.inc index 37213bbad3..fa353ae2dc 100644 --- a/src/soc/mediatek/mt8186/Makefile.inc +++ b/src/soc/mediatek/mt8186/Makefile.inc @@ -5,7 +5,7 @@ all-y += ../common/flash_controller.c all-y += ../common/gpio.c gpio.c all-y += ../common/i2c.c i2c.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 bootblock-y += bootblock.c diff --git a/src/soc/mediatek/mt8186/timer.c b/src/soc/mediatek/mt8186/timer.c deleted file mode 100644 index 7a289cd115..0000000000 --- a/src/soc/mediatek/mt8186/timer.c +++ /dev/null @@ -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); -} diff --git a/src/soc/mediatek/mt8195/Makefile.inc b/src/soc/mediatek/mt8195/Makefile.inc index 8262763ef1..b0d259e3a1 100644 --- a/src/soc/mediatek/mt8195/Makefile.inc +++ b/src/soc/mediatek/mt8195/Makefile.inc @@ -5,7 +5,7 @@ all-y += ../common/flash_controller.c all-y += ../common/gpio.c gpio.c all-y += ../common/i2c.c i2c.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 bootblock-y += bootblock.c |