From: Tom Rini Date: Fri, 11 Dec 2015 16:52:39 -0500 Subject: [U-Boot] [PATCH 3/3] omap4_panda: Convert to config_distro_bootcmd.h In-Reply-To: References: <1449783963-20622-1-git-send-email-trini@konsulko.com> <1449783963-20622-3-git-send-email-trini@konsulko.com> Message-ID: <20151211215239.GX667@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 10, 2015 at 04:58:17PM -0600, Robert Nelson wrote: > On Thu, Dec 10, 2015 at 3:46 PM, Tom Rini 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 > > --- > > 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: