1. 26 Apr, 2019 4 commits
    • Simon Glass's avatar
      x86: Add support for starting from SPL/TPL · 497a9810
      Simon Glass authored
      
      
      When a previous phase of U-Boot has run we need to adjust the init of
      subsequent states to avoid messing up the CPU state.
      
      Add a new version of the start logic for SPL, when it boots from TPL
      (start_from tpl.c) and a new version for U-Boot when it boots from SPL.
      
      Series-changes: 2
      - Add xorl to TPL code also
      - Update comments in start_from_tpl to correctly explain SPL state
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      497a9810
    • Simon Glass's avatar
      x86: broadwell: Split CPU init · 774fdd5b
      Simon Glass authored
      
      
      Split the CPU init into two parts - the 'full' init which happens in the
      first U-Boot phase, and the rest of the init that happens on subsequent
      stages.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      774fdd5b
    • Simon Glass's avatar
      x86: Move init of debug UART to cpu.c · 385fbea9
      Simon Glass authored
      
      
      At present the debug UART is set up in sdram.c which is not the best place
      since it has nothing in particular to do with SDRAM. Since we want to
      support initing this in SPL too, move it to a common file.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      385fbea9
    • Simon Glass's avatar
      x86: broadwell: Allow SDRAM init from SPL · c11828a2
      Simon Glass authored
      
      
      At present, for broadwell, SDRAM is always set up in U-Boot proper since
      the 64-bit mode (which uses SDRAM init in SPL) is not supported.
      
      Update the code to allow SDRAM init in SPL instead so that U-Boot proper
      can be loaded into SDRAM and run from there. This allows U-Boot to be
      compressed to reduce space, since it is not necessary to run it directly
      from flash. It could later allow us to support 64-bit U-Boot on broadwell.
      
      Series-changes: 2
      - Update commit message to make it clear this patch is just for broadwell
      - Bring in sdram_console_tx_byte() to allow debugging
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      c11828a2
  2. 25 Apr, 2019 36 commits