mediatek: Refactor to sharing code among similar SOCs

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

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 <>
Reviewed-by: Patrick Georgi <>
Reviewed-by: Hung-Te Lin <>
Tested-by: build bot (Jenkins) <>
5 files changed