[U-Boot] [PATCH v5 1/7] ls2080: Exit dpaa only right before exiting U-Boot

york sun york.sun at nxp.com
Sat Oct 15 18:47:48 CEST 2016


On 10/15/2016 03:03 AM, Alexander Graf wrote:
> 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 at suse.de>
>
> ---
>
> v3 -> v4:
>
>   - Move code into generic quiesce weak function
>   - Exit device for real when going to Linux
>   - Only apply DPL if we have something to apply
> ---
>  arch/arm/include/asm/u-boot-arm.h       |  1 +
>  arch/arm/lib/bootm.c                    |  7 +++++++
>  board/freescale/ls2080a/ls2080a.c       |  6 +++++-
>  board/freescale/ls2080aqds/ls2080aqds.c | 11 +++++------
>  board/freescale/ls2080ardb/ls2080ardb.c | 11 +++++------
>  drivers/net/fsl-mc/mc.c                 | 24 ++++++++++++++++++++++--
>  lib/efi_loader/efi_boottime.c           |  2 ++
>  7 files changed, 47 insertions(+), 15 deletions(-)

Reviewed-by: York Sun <york.sun at nxp.com>



More information about the U-Boot mailing list