<p>Tristan Hsieh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27025">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mediatek: Move watchdog timer code to a common directory.<br><br>This patch moves watchdog timer(WDT) code which can be reused into a<br>common directory 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: Icbeb04f775c3c0fdc18dd198df8591f5c4b6ddce<br>Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com><br>---<br>R src/soc/mediatek/common/include/soc/wdt.h<br>R src/soc/mediatek/common/wdt.c<br>M src/soc/mediatek/mt8173/Makefile.inc<br>3 files changed, 5 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/27025/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/mediatek/mt8173/include/soc/wdt.h b/src/soc/mediatek/common/include/soc/wdt.h</span><br><span>similarity index 97%</span><br><span>rename from src/soc/mediatek/mt8173/include/soc/wdt.h</span><br><span>rename to src/soc/mediatek/common/include/soc/wdt.h</span><br><span>index ddca102..a15434c 100644</span><br><span>--- a/src/soc/mediatek/mt8173/include/soc/wdt.h</span><br><span>+++ b/src/soc/mediatek/common/include/soc/wdt.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/wdt.c b/src/soc/mediatek/common/wdt.c</span><br><span>similarity index 98%</span><br><span>rename from src/soc/mediatek/mt8173/wdt.c</span><br><span>rename to src/soc/mediatek/common/wdt.c</span><br><span>index bd2a614..c261753 100644</span><br><span>--- a/src/soc/mediatek/mt8173/wdt.c</span><br><span>+++ b/src/soc/mediatek/common/wdt.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..b382455 100644</span><br><span>--- a/src/soc/mediatek/mt8173/Makefile.inc</span><br><span>+++ b/src/soc/mediatek/mt8173/Makefile.inc</span><br><span>@@ -28,7 +28,7 @@</span><br><span> endif</span><br><span> </span><br><span> bootblock-y += gpio.c gpio_init.c pmic_wrap.c mt6391.c</span><br><span style="color: hsl(0, 100%, 40%);">-bootblock-y += wdt.c</span><br><span style="color: hsl(120, 100%, 40%);">+bootblock-y += ../common/wdt.c</span><br><span> bootblock-y += mmu_operations.c</span><br><span> </span><br><span> ################################################################################</span><br><span>@@ -40,7 +40,7 @@</span><br><span> </span><br><span> verstage-y += ../common/timer.c</span><br><span> verstage-y += timer.c</span><br><span style="color: hsl(0, 100%, 40%);">-verstage-y += wdt.c</span><br><span style="color: hsl(120, 100%, 40%);">+verstage-y += ../common/wdt.c</span><br><span> verstage-$(CONFIG_SPI_FLASH) += flash_controller.c</span><br><span> verstage-y += gpio.c</span><br><span> </span><br><span>@@ -74,7 +74,7 @@</span><br><span> ramstage-y += mt6311.c</span><br><span> ramstage-y += da9212.c</span><br><span> ramstage-y += gpio.c</span><br><span style="color: hsl(0, 100%, 40%);">-ramstage-y += wdt.c</span><br><span style="color: hsl(120, 100%, 40%);">+ramstage-y += ../common/wdt.c</span><br><span> ramstage-y += pll.c</span><br><span> ramstage-y += rtc.c</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27025">change 27025</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/27025"/><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: Icbeb04f775c3c0fdc18dd198df8591f5c4b6ddce </div>
<div style="display:none"> Gerrit-Change-Number: 27025 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tristan Hsieh <tristan.shieh@mediatek.com> </div>