mediatek: Refactor to sharing code among similar SOCs
commit4c8d4872a56ea99feb3397619927db360b2f6339
authorTristan Shieh <tristan.shieh@mediatek.com>
Wed, 6 Jun 2018 05:35:12 +0000 (6 13:35 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 7 Jun 2018 11:08:17 +0000 (7 11:08 +0000)
tree3d5572dd58e7f88d8fe86592f33259285213f06e
parentf42db110d0174f05745e3558067d114eae37825b
mediatek: Refactor to sharing code among similar SOCs

This patch refactor cbmem and timer code which will be reused among
similar SOCs.

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: I397ebdc0c97c7616bd547022d2ce2a8f08f3c232
Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com>
Reviewed-on: https://review.coreboot.org/26881
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/mediatek/mt8173/Makefile.inc
src/soc/mediatek/mt8173/cbmem.c
src/soc/mediatek/mt8173/common_timer.c [copied from src/soc/mediatek/mt8173/timer.c with 52% similarity]
src/soc/mediatek/mt8173/include/soc/timer.h
src/soc/mediatek/mt8173/timer.c