- 31 Jan, 2019 40 commits
-
-
Simon Glass authored
When SPL is used to set up the memory controller we want to save the MRC data in SPL to avoid needing to pass it up to U-Boot proper to save. Add a function to handle that. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add an implementation of arch_cpu_init_f() so that the x86 SPL code builds and identifies the CPU. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Allow broadwell to build for SPL and include the reference code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present broadwell only supports booting straight into U-Boot proper. Add a separate init file to boot from SPL into U-Boot proper, and select it when SPL is in use. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present we support having 16-bit init be in SPL or U-Boot proper, but not TPL. Add support for this so that TPL can boot. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
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. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
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 <sjg@chromium.org>
-
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 <sjg@chromium.org>
-
Simon Glass authored
At present SDRAM is always set up in U-Boot proper. Allow this to be done 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. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add debugging during SDRAM init so that problems are easier to diagnose. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add an arch-specific handoff header so that we can use the HANDOFF feature on x86 devices. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some boards want to use TPL as the first phase of U-Boot. This allows selection of A or B SPL phases, thus allowing the memory init to be upgraded in the field. Add a new Kconfig option for this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present only chromebook_link64 supports SPL. It is useful to eb able to support both TPL and SPL to implement verified boot on x86. Enable the options for both along with some suitable default options needed to boot through these phases. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We use binman to build the x86 image now. Update a comment which still refers to ifdtool. Change-Id: I288c28e3417694e1ae29520c3def8b0d18a4a7c5 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add labels for these nodes so that board DT files can reference them. Change-Id: Ic24497bacd87e3e3bb4e1a1e80b0094a14521072 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We cannot init the CPU fully both than once during a boot. Add a new function which can be called to figure out the CPU identity, but which does not change anything. For x86_64, this is empty for now. Change-Id: Ie4a54200bada75897cd85365dbf35bfbe09a0023 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present many of the functions in this file return -1 as an error number. which is -EPERM. Update the code to use real error numbers. Change-Id: Ica34246d951c734343dff935cb2d3b52d8d1a727 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is a typo in this header. Fix it. Change-Id: I669e9f673fbc74b624e94f1c989e0fc800528d5e Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present sections are always placed automatically. Even if an 'offset' property is provided it is ignored. Update the logic to support an offset for sections. Note: Needs a test updates Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present only OF_SEPARATE is considered valid for building a device-tree file in SPL. However sandbox uses OF_HOSTFILE instead. Update the logic to handle this and make it easier to understand. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Device-tree rules require that aliases use a hyphen rather than a underscore. Update the uclass name to fit with this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Update the condition to translate only if this is enabled for SPL. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
An important property is missing. Update the entry comment to include this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This message is not very important since it is simply indicating that the user's instructions are being followed. Only show it when the verbosity level is above the default. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is not good practice to raise an exception in a constructor. In this case the 'text' entry may not actually be used, if -i is used to filter out the images that get built. Move the exception to where the data is actually used. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present the default log level is set to LOGL_INFO on start-up. Allow this to be controlled from Kconfig. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present it is possible to '#define DEBUG' at the top of a file which causes all debug() statements in that file to become active. There is currently no equivalent with logging, but this is a useful function. Add a LOG_DEBUG define along with documentation. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
-
Simon Glass authored
This reverts commit 0b588def.
-
Simon Glass authored
This reverts commit f7597730.
-
Simon Glass authored
This reverts commit 368a0dfb.
-
Simon Glass authored
This reverts commit c16b137e.
-
Simon Glass authored
Some libraries build by U-Boot may include stdint.h. This is not used by U-Boot itself and causes conflicts with the types defined in linux/types.h. To work around this, add an empty file with this name so that it will be used in preference to the compiler version. Change-Id: Ieecb387277c537d30c6521fce9ce9f129a6e053f Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
vb2_nv_regen_crc() is not exported by vboot by default. Drop this code for now. Change-Id: I589c375c732139d2a878f2cadb1563e0f28e7415 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add the required config and features to make this work. This includes: - new board called chromeos_sandbox - new SPL boot method - make board_run_command() weak Change-Id: I4ae19f8328dcf72a9b6ef625fcc443a8a52d1125 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add Chromium OS's code and vboot library into the build. Change-Id: I0f741e2ada7d6b76d7917b2209aeb49e43692a0a Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a few hooks and fields which are required by Chromium OS. Change-Id: Id996434a10c426b04fab48c1a0925677a616a564 Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add an implementation of Chromium OS verified boot. This is entirely contained within the cros/ subdrectory. It includes drivers, device-tree files, commands and callbacks. Change-Id: Icb4e2eb64116293d5ac1b63db8c771b03ec7bcc6
-
Simon Glass authored
This includes locale images and developer keys from the Chrome OS repo and images. Change-Id: I49f27bba306166516d5ee1d247ca20c52a2f404f Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The current documentation only covers how to chain-load U-Boot on a Chromebook. Add more information about the other ways to use U-Boot on Chromebooks. Change-Id: I4ca2433f3e684b0e7a1c6b36b7ddfb5d3500e3bd Signed-off-by:
Simon Glass <sjg@chromium.org>
-