mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-09 20:56:16 +09:00
![Jagan Teki](/assets/img/avatar_default.png)
Add sdram driver to handle debug across rockchip SoCs. This would help to improve code debugging feature for sdram drivers in rockchip family, whoever wants to debug the driver should call these core debug code on their respective platform sdram drivers. 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>
35 lines
644 B
C
35 lines
644 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
|
|
* (C) Copyright 2019 Amarula Solutions.
|
|
* Author: Jagan Teki <jagan@amarulasolutions.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <debug_uart.h>
|
|
#include <asm/arch-rockchip/sdram_common.h>
|
|
|
|
void sdram_print_dram_type(unsigned char dramtype)
|
|
{
|
|
switch (dramtype) {
|
|
case DDR3:
|
|
printascii("DDR3");
|
|
break;
|
|
case DDR4:
|
|
printascii("DDR4");
|
|
break;
|
|
case LPDDR2:
|
|
printascii("LPDDR2");
|
|
break;
|
|
case LPDDR3:
|
|
printascii("LPDDR3");
|
|
break;
|
|
case LPDDR4:
|
|
printascii("LPDDR4");
|
|
break;
|
|
default:
|
|
printascii("Unknown Device");
|
|
break;
|
|
}
|
|
}
|