On Friday 17 August 2012 16:58:41 Joe Hershberger wrote:
> --- a/common/cmd_mem.c
> +++ b/common/cmd_mem.c
> 
> +#ifdef CONFIG_CMD_MEM_GET

not the greatest name ...

> +int do_mem_mg(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

static

> +     size = cmd_get_data_size(argv[0], 4);
> +     if (size < 0)
> +             return 1;
> +
> +     var = argv[1];
> +
> +     addr = simple_strtoul(argv[2], NULL, 16);
> +     addr += base_address;
> +
> +     if (size == 4) {
> +             uint32_t value = readl(addr);

why use io.h commands ?  we don't use it with any of the other mem commands.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to