summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Shieh <tristan.shieh@mediatek.com>2018-06-12 15:09:37 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-07-02 07:30:37 +0000
commit5da002980b1d8520f4c20be1d9e16eca607a7cd6 (patch)
treef1d120ccd7dda0da8207a841fcdecfdf386ee98c /src
parent0423a2bd1a710c21c741a909abead82956d8cbd6 (diff)
downloadcoreboot-5da002980b1d8520f4c20be1d9e16eca607a7cd6.tar.xz
mediatek: Move mtcmos code to a common directory
Move mtcmos code which can be reused into a common directory under soc/mediatek. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Elm Change-Id: I92b138890424b4f4a68cdb00bf2326eef9cd87b7 Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com> Reviewed-on: https://review.coreboot.org/27029 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/mediatek/common/include/soc/mtcmos.h (renamed from src/soc/mediatek/mt8173/include/soc/mtcmos.h)2
-rw-r--r--src/soc/mediatek/common/mtcmos.c (renamed from src/soc/mediatek/mt8173/mtcmos.c)2
-rw-r--r--src/soc/mediatek/mt8173/Makefile.inc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/mediatek/mt8173/include/soc/mtcmos.h b/src/soc/mediatek/common/include/soc/mtcmos.h
index 5460e1fde0..e089fcc681 100644
--- a/src/soc/mediatek/mt8173/include/soc/mtcmos.h
+++ b/src/soc/mediatek/common/include/soc/mtcmos.h
@@ -1,7 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * Copyright 2015 MediaTek Inc.
+ * Copyright 2018 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/soc/mediatek/mt8173/mtcmos.c b/src/soc/mediatek/common/mtcmos.c
index 00e37edb9b..ef4299ffcb 100644
--- a/src/soc/mediatek/mt8173/mtcmos.c
+++ b/src/soc/mediatek/common/mtcmos.c
@@ -1,7 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * Copyright 2015 MediaTek Inc.
+ * Copyright 2018 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/soc/mediatek/mt8173/Makefile.inc b/src/soc/mediatek/mt8173/Makefile.inc
index b382455c67..56c966ae75 100644
--- a/src/soc/mediatek/mt8173/Makefile.inc
+++ b/src/soc/mediatek/mt8173/Makefile.inc
@@ -66,7 +66,7 @@ romstage-y += rtc.c
ramstage-y += ../common/cbmem.c emi.c
ramstage-y += spi.c
ramstage-$(CONFIG_SPI_FLASH) += flash_controller.c
-ramstage-y += soc.c mtcmos.c
+ramstage-y += soc.c ../common/mtcmos.c
ramstage-y += ../common/timer.c
ramstage-y += timer.c
ramstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c