[U-Boot] [Patch v2, batch 3 01/17] common: Update cmd_bdinfo for PPC

Andy Fleming afleming at gmail.com
Fri May 10 22:16:08 CEST 2013


On Mon, Mar 25, 2013 at 12:39 PM, York Sun <yorksun at freescale.com> wrote:

> Add board detail function to print more individual board information.
>
> Signed-off-by: York Sun <yorksun at freescale.com>
> CC: Wolfgang Denk <wd at denx.de>
> CC: Tom Rini <trini at ti.com>
>


Tom, Wolfgang, I can take this in through my tree, but I'd like an ACK
before I do so.



>
> ---
>  common/cmd_bdinfo.c |    7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
> index 85279d5..3bf8cf2 100644
> --- a/common/cmd_bdinfo.c
> +++ b/common/cmd_bdinfo.c
> @@ -84,6 +84,12 @@ static void print_mhz(const char *name, unsigned long
> hz)
>  }
>
>  #if defined(CONFIG_PPC)
> +static void __board_detail(void)
> +{
> +       /* Please define boot_detail() for your platform */
> +}
> +
> +void board_detail(void) __attribute__((weak, alias("__board_detail")));
>
>  int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>  {
> @@ -169,6 +175,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
> char * const argv[])
>         printf("IP addr     = %s\n", getenv("ipaddr"));
>         printf("baudrate    = %6u bps\n", bd->bi_baudrate);
>         print_num("relocaddr", gd->relocaddr);
> +       board_detail();
>         return 0;
>  }
>
> --
> 1.7.9.5
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>


More information about the U-Boot mailing list