]> git.baikalelectronics.ru Git - uboot.git/commit
ls2080: Exit dpaa only right before exiting U-Boot
authorAlexander Graf <agraf@suse.de>
Thu, 17 Nov 2016 00:02:57 +0000 (01:02 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 17 Nov 2016 13:18:55 +0000 (14:18 +0100)
commitd066760ea4b23ebd14dbda77459b79927b4866f2
treec59342bc60cd4b1cad906375dea08dbe5d4bb3ea
parent043232ac1c1626cdf1e4238b6a93a706fe211c9a
ls2080: Exit dpaa only right before exiting U-Boot

On ls2080 we have a separate network fabric component which we need to
shut down before we enter Linux (or any other OS). Along with that also
comes configuration of the fabric using a description file.

Today we always stop and configure the fabric in the boot script and
(again) exit it on device tree generation. This works ok for the normal
booti case, but with bootefi the payload we're running may still want to
access the network.

So let's add a new fsl_mc command that defers configuration and stopping
the hardware to when we actually exit U-Boot, so that we can still use
the fabric from an EFI payload.

For existing boot scripts, nothing should change with this patch.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: York Sun <york.sun@nxp.com>
[agraf: Fix x86 build]
arch/arm/include/asm/u-boot-arm.h
arch/arm/lib/bootm.c
arch/x86/include/asm/u-boot-x86.h
arch/x86/lib/bootm.c
board/freescale/ls2080a/ls2080a.c
board/freescale/ls2080aqds/ls2080aqds.c
board/freescale/ls2080ardb/ls2080ardb.c
drivers/net/fsl-mc/mc.c
lib/efi_loader/efi_boottime.c