From 44a7ddcd771aef2d1c2fe839dc20e448003c7e25 Mon Sep 17 00:00:00 2001 From: QiaoChong Date: Thu, 21 Sep 2017 20:03:07 +0800 Subject: [PATCH] fix 3a8780e to enable ARB_LEVEL. Change-Id: Iee37cc66ff0ba913af4e8b4c158fe5f9333f791b Signed-off-by: QiaoChong --- Targets/Bonito3a8780e/Bonito/start.S | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Targets/Bonito3a8780e/Bonito/start.S b/Targets/Bonito3a8780e/Bonito/start.S index eb16e35e..f02e1fef 100644 --- a/Targets/Bonito3a8780e/Bonito/start.S +++ b/Targets/Bonito3a8780e/Bonito/start.S @@ -571,7 +571,7 @@ soft_out: #define AUTO_ARB_LEVEL #endif #ifdef AUTO_ARB_LEVEL -#define CHECK_ARB_LEVEL_FREQ +//#define CHECK_ARB_LEVEL_FREQ #ifdef AUTO_DDR_CONFIG #define CHECK_ARB_LEVEL_DIMM #endif @@ -1593,7 +1593,7 @@ idle1000: #include "ddr_dir/loongson3C_ddr3_leveling.S" #endif #ifdef ARB_LEVEL -#include "ddr_dir/ARB_level_new.S" +//#include "ddr_dir/ARB_level_new.S" #endif #ifdef DEBUG_DDR #include "ddr_dir/Test_Mem.S" @@ -1625,3 +1625,18 @@ nvram_offs: .align 5 #include "loongson_mc2_param.S" +#ifdef ARB_LEVEL + .text + .global c0_mc0_level_info + .global c0_mc1_level_info +#ifdef MULTI_CHIP + .global c1_mc0_level_info + .global c1_mc1_level_info +#endif + +#include "ddr_dir/loongson3A3_ddr_param.lvled.S" +#ifdef MULTI_CHIP +#include "ddr_dir/loongson3A3_ddr_param_c1.lvled.S" +#endif + +#endif