mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
Add option to display customised memory information
Some boards want to report more than just memory size. For example, it might be useful to display the memory type (DDR2, DDR3) or manufacturer. Add a weak function to support this requirement, accessed through a new 'meminfo' command. Any example of the DRAM: output is below, just for illustration: SMDK5250 # meminfo DRAM: 2 GiB Elpida DDR3 @ 800MHz Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
e2e3e2b1be
commit
15a33e49de
4 changed files with 38 additions and 0 deletions
|
@ -311,6 +311,15 @@ int mac_read_from_eeprom(void);
|
|||
extern u8 _binary_dt_dtb_start[]; /* embedded device tree blob */
|
||||
int set_cpu_clk_info(void);
|
||||
|
||||
/**
|
||||
* Show the DRAM size in a board-specific way
|
||||
*
|
||||
* This is used by boards to display DRAM information in their own way.
|
||||
*
|
||||
* @param size Size of DRAM (which should be displayed along with other info)
|
||||
*/
|
||||
void board_show_dram(ulong size);
|
||||
|
||||
/* common/flash.c */
|
||||
void flash_perror (int);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue