Jagan Teki | ced3ea6 | 2019-07-15 23:58:48 +0530 | [diff] [blame^] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * (C) Copyright 2019 Rockchip Electronics Co., Ltd |
| 4 | * (C) Copyright 2019 Amarula Solutions. |
| 5 | * Author: Jagan Teki <jagan@amarulasolutions.com> |
| 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <debug_uart.h> |
| 10 | #include <asm/arch-rockchip/sdram_common.h> |
| 11 | |
| 12 | void sdram_print_dram_type(unsigned char dramtype) |
| 13 | { |
| 14 | switch (dramtype) { |
| 15 | case DDR3: |
| 16 | printascii("DDR3"); |
| 17 | break; |
| 18 | case DDR4: |
| 19 | printascii("DDR4"); |
| 20 | break; |
| 21 | case LPDDR2: |
| 22 | printascii("LPDDR2"); |
| 23 | break; |
| 24 | case LPDDR3: |
| 25 | printascii("LPDDR3"); |
| 26 | break; |
| 27 | case LPDDR4: |
| 28 | printascii("LPDDR4"); |
| 29 | break; |
| 30 | default: |
| 31 | printascii("Unknown Device"); |
| 32 | break; |
| 33 | } |
| 34 | } |