<p>Tristan Hsieh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27029">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mediatek: Move mtcmos code to a common directory.<br><br>This patch moves mtcmos code which can be reused into a common directory<br>under soc/mediatek.<br><br>BUG=b:80501386<br>BRANCH=none<br>TEST=the refactored code works fine on the new platform (with the rest<br>     of the patches applied) and Elm platform<br><br>Change-Id: I92b138890424b4f4a68cdb00bf2326eef9cd87b7<br>Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com><br>---<br>R src/soc/mediatek/common/include/soc/mtcmos.h<br>R src/soc/mediatek/common/mtcmos.c<br>M src/soc/mediatek/mt8173/Makefile.inc<br>3 files changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/27029/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/mediatek/mt8173/include/soc/mtcmos.h b/src/soc/mediatek/common/include/soc/mtcmos.h</span><br><span>similarity index 95%</span><br><span>rename from src/soc/mediatek/mt8173/include/soc/mtcmos.h</span><br><span>rename to src/soc/mediatek/common/include/soc/mtcmos.h</span><br><span>index 1b2c489..76269e0 100644</span><br><span>--- a/src/soc/mediatek/mt8173/include/soc/mtcmos.h</span><br><span>+++ b/src/soc/mediatek/common/include/soc/mtcmos.h</span><br><span>@@ -1,7 +1,7 @@</span><br><span> /*</span><br><span>  * This file is part of the coreboot project.</span><br><span>  *</span><br><span style="color: hsl(0, 100%, 40%);">- * Copyright 2015 MediaTek Inc.</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright 2018 MediaTek Inc.</span><br><span>  *</span><br><span>  * This program is free software; you can redistribute it and/or modify</span><br><span>  * it under the terms of the GNU General Public License as published by</span><br><span>diff --git a/src/soc/mediatek/mt8173/mtcmos.c b/src/soc/mediatek/common/mtcmos.c</span><br><span>similarity index 98%</span><br><span>rename from src/soc/mediatek/mt8173/mtcmos.c</span><br><span>rename to src/soc/mediatek/common/mtcmos.c</span><br><span>index f5b6e46..c7bb4ab 100644</span><br><span>--- a/src/soc/mediatek/mt8173/mtcmos.c</span><br><span>+++ b/src/soc/mediatek/common/mtcmos.c</span><br><span>@@ -1,7 +1,7 @@</span><br><span> /*</span><br><span>  * This file is part of the coreboot project.</span><br><span>  *</span><br><span style="color: hsl(0, 100%, 40%);">- * Copyright 2015 MediaTek Inc.</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright 2018 MediaTek Inc.</span><br><span>  *</span><br><span>  * This program is free software; you can redistribute it and/or modify</span><br><span>  * it under the terms of the GNU General Public License as published by</span><br><span>diff --git a/src/soc/mediatek/mt8173/Makefile.inc b/src/soc/mediatek/mt8173/Makefile.inc</span><br><span>index 3bb0ae0..064f604 100644</span><br><span>--- a/src/soc/mediatek/mt8173/Makefile.inc</span><br><span>+++ b/src/soc/mediatek/mt8173/Makefile.inc</span><br><span>@@ -66,7 +66,7 @@</span><br><span> ramstage-y += ../common/cbmem.c emi.c</span><br><span> ramstage-y += spi.c</span><br><span> ramstage-$(CONFIG_SPI_FLASH) += flash_controller.c</span><br><span style="color: hsl(0, 100%, 40%);">-ramstage-y += soc.c mtcmos.c</span><br><span style="color: hsl(120, 100%, 40%);">+ramstage-y += soc.c ../common/mtcmos.c</span><br><span> ramstage-y += ../common/timer.c</span><br><span> ramstage-y += timer.c</span><br><span> ramstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27029">change 27029</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27029"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I92b138890424b4f4a68cdb00bf2326eef9cd87b7 </div>
<div style="display:none"> Gerrit-Change-Number: 27029 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tristan Hsieh <tristan.shieh@mediatek.com> </div>