[coreboot-gerrit] Change in coreboot[master]: mediatek: Move watchdog timer code to a common directory.

Tristan Hsieh (Code Review) gerrit at coreboot.org
Tue Jun 12 11:14:56 CEST 2018


Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/27025


Change subject: mediatek: Move watchdog timer code to a common directory.
......................................................................

mediatek: Move watchdog timer code to a common directory.

This patch moves watchdog timer(WDT) 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: Icbeb04f775c3c0fdc18dd198df8591f5c4b6ddce
Signed-off-by: Tristan Shieh <tristan.shieh at mediatek.com>
---
R src/soc/mediatek/common/include/soc/wdt.h
R src/soc/mediatek/common/wdt.c
M src/soc/mediatek/mt8173/Makefile.inc
3 files changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/27025/1

diff --git a/src/soc/mediatek/mt8173/include/soc/wdt.h b/src/soc/mediatek/common/include/soc/wdt.h
similarity index 97%
rename from src/soc/mediatek/mt8173/include/soc/wdt.h
rename to src/soc/mediatek/common/include/soc/wdt.h
index ddca102..a15434c 100644
--- a/src/soc/mediatek/mt8173/include/soc/wdt.h
+++ b/src/soc/mediatek/common/include/soc/wdt.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/wdt.c b/src/soc/mediatek/common/wdt.c
similarity index 98%
rename from src/soc/mediatek/mt8173/wdt.c
rename to src/soc/mediatek/common/wdt.c
index bd2a614..c261753 100644
--- a/src/soc/mediatek/mt8173/wdt.c
+++ b/src/soc/mediatek/common/wdt.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..b382455 100644
--- a/src/soc/mediatek/mt8173/Makefile.inc
+++ b/src/soc/mediatek/mt8173/Makefile.inc
@@ -28,7 +28,7 @@
 endif
 
 bootblock-y += gpio.c gpio_init.c pmic_wrap.c mt6391.c
-bootblock-y += wdt.c
+bootblock-y += ../common/wdt.c
 bootblock-y += mmu_operations.c
 
 ################################################################################
@@ -40,7 +40,7 @@
 
 verstage-y += ../common/timer.c
 verstage-y += timer.c
-verstage-y += wdt.c
+verstage-y += ../common/wdt.c
 verstage-$(CONFIG_SPI_FLASH) += flash_controller.c
 verstage-y += gpio.c
 
@@ -74,7 +74,7 @@
 ramstage-y += mt6311.c
 ramstage-y += da9212.c
 ramstage-y += gpio.c
-ramstage-y += wdt.c
+ramstage-y += ../common/wdt.c
 ramstage-y += pll.c
 ramstage-y += rtc.c
 

-- 
To view, visit https://review.coreboot.org/27025
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icbeb04f775c3c0fdc18dd198df8591f5c4b6ddce
Gerrit-Change-Number: 27025
Gerrit-PatchSet: 1
Gerrit-Owner: Tristan Hsieh <tristan.shieh at mediatek.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180612/0fb08aaf/attachment-0001.html>


More information about the coreboot-gerrit mailing list