Skip to content
Snippets Groups Projects
Select Git revision
  • 4e0114d9679173cfe8bfaffb8b4fb4bbf8cdaa10
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
8 results

spl.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Nikita Kiryanov's avatar
      f2863ff3
      arm: imx: make bmode command work with SPL/U-Boot combo · f2863ff3
      Nikita Kiryanov authored
      
      The bmode command forces the SoC to use a specific boot device
      by writing its boot mode into SRC_GPR9, and notifying the SoC of
      the change using SRC_GPR10[28] bit: if the bit is on, bootROM
      uses the value in SRC_GPR9 instead of SRC_SMBR1 to determine
      the boot device.
      
      SPL on the other hand is oblivious to this distinction, so once
      the bootROM loads SPL from the device configured in SRC_GPR10,
      SPL will attempt to load U-Boot from the device configured in
      SRC_SMBR1, which is not updated by the bootROM to the value in
      SRC_GPR9.
      
      The result is that the selected boot device is not used across all
      the boot stages.
      
      Update spl_boot_device() to look at gpr9 when necessary.
      
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Troy Kisky <troy.kisky@boundarydevices.com>
      Cc: Tim Harvey <tharvey@gateworks.com>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Heiko Schocher <hs@denx.de>
      f2863ff3
      History
      arm: imx: make bmode command work with SPL/U-Boot combo
      Nikita Kiryanov authored
      
      The bmode command forces the SoC to use a specific boot device
      by writing its boot mode into SRC_GPR9, and notifying the SoC of
      the change using SRC_GPR10[28] bit: if the bit is on, bootROM
      uses the value in SRC_GPR9 instead of SRC_SMBR1 to determine
      the boot device.
      
      SPL on the other hand is oblivious to this distinction, so once
      the bootROM loads SPL from the device configured in SRC_GPR10,
      SPL will attempt to load U-Boot from the device configured in
      SRC_SMBR1, which is not updated by the bootROM to the value in
      SRC_GPR9.
      
      The result is that the selected boot device is not used across all
      the boot stages.
      
      Update spl_boot_device() to look at gpr9 when necessary.
      
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Troy Kisky <troy.kisky@boundarydevices.com>
      Cc: Tim Harvey <tharvey@gateworks.com>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Heiko Schocher <hs@denx.de>
    fdt_host.h 351 B
    /*
     * (C) Copyright 2008 Semihalf
     *
     * SPDX-License-Identifier:	GPL-2.0+
     */
    
    #ifndef __FDT_HOST_H__
    #define __FDT_HOST_H__
    
    /* Make sure to include u-boot version of libfdt include files */
    #include "../include/libfdt.h"
    #include "../include/fdt_support.h"
    
    int fit_check_sign(const void *working_fdt, const void *key);
    
    #endif /* __FDT_HOST_H__ */