summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/old/ddr3_init.c
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-06-18 17:34:37 +0200
committerStefan Roese <sr@denx.de>2024-07-08 08:20:58 +0200
commit667ffbfa907b45b1796bb408e77c5df56a1c1891 (patch)
tree9c85afe6dd57d79c3a9ab17f65fbf9f02a2ff8e1 /drivers/ddr/marvell/a38x/old/ddr3_init.c
parentaf6c737807ac99aed804bb93a8f15e50fc321106 (diff)
ddr: marvell: a38x: old: Backport immutable debug settings
Backport the option to compile with immutable debug settings also to the old implementation of the DDR3 training code. The original PR for mv-ddr-marvell can be seen at https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/45/ Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Diffstat (limited to 'drivers/ddr/marvell/a38x/old/ddr3_init.c')
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_init.c b/drivers/ddr/marvell/a38x/old/ddr3_init.c
index 9818c3d494c..b3c04eb3abc 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_init.c
+++ b/drivers/ddr/marvell/a38x/old/ddr3_init.c
@@ -385,7 +385,8 @@ int ddr3_init(void)
return status;
/* Set log level for training lib */
- ddr3_hws_set_log_level(DEBUG_BLOCK_ALL, DEBUG_LEVEL_ERROR);
+ if (!IS_ENABLED(CONFIG_DDR_IMMUTABLE_DEBUG_SETTINGS))
+ ddr3_hws_set_log_level(DEBUG_BLOCK_ALL, DEBUG_LEVEL_ERROR);
/* Start New Training IP */
status = ddr3_hws_hw_training();