ram: rockchip: debug: Add sdram_print_ddr_info
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 15 Jul 2019 18:28:49 +0000 (23:58 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jul 2019 03:11:10 +0000 (11:11 +0800)
commit07894f5aacb5a4b04a762251c83e5745173849e3
tree555bbbdfc27842a19536ec99936c294fd541d3dd
parent07112672a57adcbdc8272283f631c1648245c1f8
ram: rockchip: debug: Add sdram_print_ddr_info

Add sdram ddr info print support, this would help to
observe the sdram base parameters.

Here is sample print on LPDDR4, 50MHz channel 0
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/sdram_common.h
drivers/ram/rockchip/sdram_debug.c