Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/27029
Change subject: mediatek: Move mtcmos code to a common directory. ......................................................................
mediatek: Move mtcmos code to a common directory.
This patch moves mtcmos code which can be reused into a common directory under soc/mediatek.
BUG=b:80501386 BRANCH=none TEST=the refactored code works fine on the new platform (with the rest of the patches applied) and Elm platform
Change-Id: I92b138890424b4f4a68cdb00bf2326eef9cd87b7 Signed-off-by: Tristan Shieh tristan.shieh@mediatek.com --- R src/soc/mediatek/common/include/soc/mtcmos.h R src/soc/mediatek/common/mtcmos.c M src/soc/mediatek/mt8173/Makefile.inc 3 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/27029/1
diff --git a/src/soc/mediatek/mt8173/include/soc/mtcmos.h b/src/soc/mediatek/common/include/soc/mtcmos.h similarity index 95% rename from src/soc/mediatek/mt8173/include/soc/mtcmos.h rename to src/soc/mediatek/common/include/soc/mtcmos.h index 1b2c489..76269e0 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 similarity index 98% rename from src/soc/mediatek/mt8173/mtcmos.c rename to src/soc/mediatek/common/mtcmos.c index f5b6e46..c7bb4ab 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 3bb0ae0..064f604 100644 --- a/src/soc/mediatek/mt8173/Makefile.inc +++ b/src/soc/mediatek/mt8173/Makefile.inc @@ -66,7 +66,7 @@ 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