From 79b990d96535f394fc97c796230f1d572e5a2732 Mon Sep 17 00:00:00 2001 From: Tristan Shieh Date: Fri, 10 Aug 2018 14:46:31 +0800 Subject: mediatek: Refactor memory test code among similar SoCs Refactor memory test code which will be reused among similar SoCs. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Elm Change-Id: I800aa9a73f0b4588f46a98c964e2794bdf04f09d Signed-off-by: Tristan Shieh Reviewed-on: https://review.coreboot.org/28436 Tested-by: build bot (Jenkins) Reviewed-by: Joel Kitching Reviewed-by: Julius Werner --- src/soc/mediatek/mt8173/include/soc/addressmap.h | 1 - src/soc/mediatek/mt8173/include/soc/emi.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/mediatek/mt8173/include') diff --git a/src/soc/mediatek/mt8173/include/soc/addressmap.h b/src/soc/mediatek/mt8173/include/soc/addressmap.h index cc1b39d67c..0ebe3d1c6d 100644 --- a/src/soc/mediatek/mt8173/include/soc/addressmap.h +++ b/src/soc/mediatek/mt8173/include/soc/addressmap.h @@ -22,7 +22,6 @@ enum { VER_BASE = 0x08000000, IO_PHYS = 0x10000000, - DDR_BASE = 0x40000000 }; enum { diff --git a/src/soc/mediatek/mt8173/include/soc/emi.h b/src/soc/mediatek/mt8173/include/soc/emi.h index 959e1c93af..e3da2e6a1e 100644 --- a/src/soc/mediatek/mt8173/include/soc/emi.h +++ b/src/soc/mediatek/mt8173/include/soc/emi.h @@ -145,6 +145,7 @@ struct mt8173_sdram_params { unsigned int dram_freq; }; +int complex_mem_test(u8 *start, unsigned int len); void mt_set_emi(const struct mt8173_sdram_params *sdram_params); void mt_mem_init(const struct mt8173_sdram_params *sdram_params); const struct mt8173_sdram_params *get_sdram_config(void); -- cgit v1.2.3