ddr: marvell: a38x: debug: Allow compiling with immutable debug settings to reduce binary size
Allow compiling with immutable debug settings: - DEBUG_LEVEL is always set to DEBUG_LEVEL_ERROR - register dumps are disabled This can save around 10 KiB of space in the resulting binary, which is a lot in U-Boot SPL. Signed-off-by: Marek Behún <kabel@kernel.org>
This commit is contained in:

committed by
Stefan Roese

parent
411e71f7df
commit
259556e5aa
@@ -41,7 +41,8 @@ int ddr3_init(void)
|
||||
mv_ddr_pre_training_soc_config(ddr_type);
|
||||
|
||||
/* Set log level for training library */
|
||||
mv_ddr_user_log_level_set(DEBUG_BLOCK_ALL);
|
||||
if (!IS_ENABLED(CONFIG_DDR_IMMUTABLE_DEBUG_SETTINGS))
|
||||
mv_ddr_user_log_level_set(DEBUG_BLOCK_ALL);
|
||||
|
||||
mv_ddr_early_init();
|
||||
|
||||
|
Reference in New Issue
Block a user