Commit beed0028 authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

meminfo: Add missing version output, fix initializer syntax



(Changing to a proper struct initializer avoids a possible
compiler warning.)
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent eb44a075
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include <sys/io.h> #include <sys/io.h>
#include <stdbool.h> #include <stdbool.h>
#include "common.h"
typedef uint32_t u32; typedef uint32_t u32;
/* from u-boot code: */ /* from u-boot code: */
...@@ -412,7 +414,7 @@ sun4i_dram_para_print_fex(struct sun4i_dram_para *dram_para) ...@@ -412,7 +414,7 @@ sun4i_dram_para_print_fex(struct sun4i_dram_para *dram_para)
static int static int
sun4i_dram_para_print(bool uboot) sun4i_dram_para_print(bool uboot)
{ {
struct sun4i_dram_para dram_para = {0}; struct sun4i_dram_para dram_para = { .baseaddr = 0 };
int ret; int ret;
ret = sunxi_dram_clock_read(&dram_para.clock); ret = sunxi_dram_clock_read(&dram_para.clock);
...@@ -710,6 +712,7 @@ sun8i_dram_regs_print(void) ...@@ -710,6 +712,7 @@ sun8i_dram_regs_print(void)
static void static void
print_usage(const char *name) print_usage(const char *name)
{ {
puts("sunxi-meminfo " VERSION "\n");
printf("Utility to retrieve DRAM information from registers on " printf("Utility to retrieve DRAM information from registers on "
"Allwinner SoCs.\n"); "Allwinner SoCs.\n");
printf("\n"); printf("\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment