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)
commit5b465beac634d65ca5097568a8f4e9e1d61013e2
tree62dda0957518bf1ffdc5988b02a06c3b1509761c
parentdafbfe83e04c17d304129b709ec6305acd616aac
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