[U-Boot] [PATCH 3/3] omap4_panda: Convert to config_distro_bootcmd.h

Robert Nelson robertcnelson at gmail.com
Thu Dec 10 23:58:17 CET 2015


On Thu, Dec 10, 2015 at 3:46 PM, Tom Rini <trini at konsulko.com> wrote:
> Based on the am335x_evm conversion, switch to config_distro_bootcmd for
> mmc and pxe.  Tested with Fedora 23.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
>  1 file changed, 27 insertions(+), 24 deletions(-)
>
> diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
> index 08130eb..8b6c065 100644
> --- a/include/configs/ti_omap4_common.h
> +++ b/include/configs/ti_omap4_common.h
> @@ -82,6 +82,32 @@
>  /*
>   * Environment setup
>   */
> +#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
> +       "bootcmd_" #devtypel #instance "=" \
> +       "setenv mmcdev " #instance"; "\
> +       "setenv bootpart " #instance":2 ; "\
> +       "run mmcboot\0"
> +
> +#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
> +       #devtypel #instance " "
> +
> +#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
> +       #devtypel #instance " "
> +
> +#define BOOT_TARGET_DEVICES(func) \
> +       func(MMC, mmc, 0) \
> +       func(LEGACY_MMC, legacy_mmc, 0) \
> +       func(MMC, mmc, 1) \
> +       func(LEGACY_MMC, legacy_mmc, 1) \

I don't remember the panda having a 2nd mmc card slot, are there other
omap4's with this feature?

Regards,

-- 
Robert Nelson
https://rcn-ee.com/


More information about the U-Boot mailing list