]> git.baikalelectronics.ru Git - uboot.git/commit
x86: ivybridge: Ensure LPC is available for GPIO base
authorSimon Glass <sjg@chromium.org>
Thu, 4 May 2023 22:50:49 +0000 (16:50 -0600)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commitaa394e31e1abf109ff3474f330d459520e583b2e
tree62dda0957518bf1ffdc5988b02a06c3b1509761c
parent8da01d76267a949b4ffc1fc11bd960aa02824aa5
x86: ivybridge: Ensure LPC is available for GPIO base

The bd82x6x_get_gpio_base() does not work if the LPC is not set up.
Probe it early to avoid this problem.

In chromebook_link64 this problem shows up as an inability to read
the GPIO straps for the memory type.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/bd82x6x.c