summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_init.c
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-06-18 17:34:28 +0200
committerStefan Roese <sr@denx.de>2024-07-08 08:20:58 +0200
commit259556e5aa173fab679256606db494448d30418c (patch)
tree055d9b8d454d68cc7ca4c253fa06d65bf94646ae /drivers/ddr/marvell/a38x/ddr3_init.c
parent411e71f7df830a896069dd96f63f8872a7231d6e (diff)
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>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_init.c')
-rw-r--r--drivers/ddr/marvell/a38x/ddr3_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ddr/marvell/a38x/ddr3_init.c b/drivers/ddr/marvell/a38x/ddr3_init.c
index 27eb3ac1735..7c5147f4745 100644
--- a/drivers/ddr/marvell/a38x/ddr3_init.c
+++ b/drivers/ddr/marvell/a38x/ddr3_init.c
@@ -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();