]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: sysreset: Set up LPC only after relocation
authorSimon Glass <sjg@chromium.org>
Tue, 9 May 2023 10:13:47 +0000 (18:13 +0800)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commit6624392d3bb633fe91b7cc4b75b6eec28f637f72
tree93e539468c4897944a093fd9cfc8c2416b020d9b
parent3d0f885a2adc9320a01a905a9deaa06d51614d92
x86: sysreset: Set up LPC only after relocation

Probing LPC can cause PCI enumeration to take place, which significantly
increases pre-relocation memory usage. Also, LPC is somtimes enabled
directly by SPL.

Adjust the logic to probe the LPC only after relocation. This allows
chromebook_link64 to start up without a much larger
CONFIG_SYS_MALLOC_F_LEN value.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/sysreset/sysreset_x86.c