summaryrefslogtreecommitdiff
path: root/drivers/ram
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2019-07-15 23:58:55 +0530
committerKever Yang <kever.yang@rock-chips.com>2019-07-20 23:59:44 +0800
commita9191b8eeccaf99f77290f8389a22bf253a06409 (patch)
tree1535bf55067dbcafca746c8f322091afb43d71d6 /drivers/ram
parentd0ba88f5dd675af7d2bb93d33ef08f96af2ced51 (diff)
downloadu-boot-a9191b8eeccaf99f77290f8389a22bf253a06409.tar.gz
u-boot-a9191b8eeccaf99f77290f8389a22bf253a06409.tar.bz2
u-boot-a9191b8eeccaf99f77290f8389a22bf253a06409.zip
ram: rk3399: Enable sdram debug functions
This would help to debug the sdram base parameters while debugging existing chip or while supporting new sdram type. It require explicit enablement of CONFIG_RAM_ROCKCHIP_DEBUG for showing the debug prints. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/ram')
-rw-r--r--drivers/ram/rockchip/sdram_rk3399.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 9df2f840ab..c59c985c19 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -1251,6 +1251,8 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *params)
}
}
+ sdram_print_stride(stride);
+
return stride;
}
@@ -1373,11 +1375,14 @@ static int sdram_init(struct dram_info *dram,
}
}
+ sdram_print_ddr_info(cap_info, &params->base);
+
set_ddrconfig(chan, params, channel, cap_info->ddrconfig);
}
if (params->base.num_channels == 0) {
printf("%s: ", __func__);
+ sdram_print_dram_type(params->base.dramtype);
printf(" - %dMHz failed!\n", params->base.ddr_freq);
return -EINVAL;
}