- 26 Apr, 2019 14 commits
-
-
Simon Glass authored
Implement this ioctl() to support power off. Series-changes: 2 - Add new patch to implement PCH_REQ_PMBASE_INFO on ivybridge Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a new ioctl() request to read information about the power-management system. This can be used to power off the device. Series-changes: 2 - Add new patch to add an ioctl to read power-management info Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The EFI implementation of reset sits inside the driver and is called directly from outside the driver, breaking the normal driver-model conventions. Worse, it passed NULL as the device pointer, hoping that the called function won't use it, which breaks as soon as code is added to use it. Separate out the implementation to improve the situation enough to allow a future patch to add new sysreset features. Series-changes: 2 - Add new patch to separate out the EFI code in sysreset Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When the MRC cache fails to save it is useful to have some debugging info to indicate what when wrong. Add some more debug() calls. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
Add the required CPU code so that TPL builds correctly. Also update the SPL code to deal with being booted from TPL. Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
Allow broadwell to build for SPL and include the reference code. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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 <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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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 <sjg@chromium.org>
-
- 25 Apr, 2019 26 commits
-
-
Simon Glass authored
Add debugging during SDRAM init so that problems are easier to diagnose. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
We use binman to build the x86 image now. Update a comment which still refers to ifdtool. Series-changes: 2 - Update the comment in fsp_cap.S too Change-Id: I288c28e3417694e1ae29520c3def8b0d18a4a7c5 Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
There is a typo in this header. Fix it. Change-Id: I669e9f673fbc74b624e94f1c989e0fc800528d5e Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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. Series-changes: - Fix map output when section offset is not set (make it 0) - Add a test for sections with offsets 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. Note that the new logic is not quite the same as the old logic. It was previously assumed that checking for: $(CONFIG_$(SPL_TPL_)OF_CONTROL) $(CONFIG_OF_SEPARATE) $(CONFIG_$(SPL_TPL_)OF_PLATDATA) producing 'yy' meant that the first two were 'y' and the last was empty. Strictly speaking it would be possible for any two of the three to be 'y' and still yield the same result. However, that was not the intention of the new logic, since OF_PLATDATA always ensures that no device-tree file is included. So in effect the new logic is the same, with the addition of OF_HOSTFILE as an option for OP_SEPARATE. Series-changes: 2 - Add a better explanation of the logic change, in the commit message 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. This allows device-tree aliases to be used to refer to cros-ec devices, for example: aliases { cros-ec0 = &ec; cros-ec1 = &pd; }; Series-changes: 2 - Update the commit message to explain the implications on aliases 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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
An important property is missing. Update the entry comment to include this. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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. Also drop the unnecessary extra newline on this message, which causes two line breaks. Series-changes: 2 - Update commit message to mention dropping the \n - Update testSelectImage() to test in normal and verbose modes 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> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
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
-
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>
-