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

Tom Rini trini at konsulko.com
Fri Dec 11 22:52:39 CET 2015


On Thu, Dec 10, 2015 at 04:58:17PM -0600, Robert Nelson wrote:
> 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?

Ah, good spotting, oops, will fix in v2.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151211/e13cc819/attachment.sig>


More information about the U-Boot mailing list