fast_spi_cache_bios_region() refers to the SPI BAR before it is initialized. Therefore, move the initialization before this function to obtain the correct value. If SPI is not initialized before use, an incorrect MTRR item is observed: [DEBUG] 0x00000000fffff005: PHYBASE2: Address = 0x00000000fffff000, WP [DEBUG] 0x000ffffffffff800: PHYMASK2: Length = 0x0000000000001000, Valid TESTED=Build and boot on intel/avenuecity CRB, with below log: [DEBUG] 0x00000000ff000005: PHYBASE2: Address = 0x00000000ff000000, WP [DEBUG] 0x000fffffff000800: PHYMASK2: Length = 0x0000000001000000, Valid Change-Id: I8a755d2d18a567c09c5a66b03d4fdda5ba603133 Signed-off-by: Jincheng Li <jincheng.li@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88046 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shuo Liu <shuo.liu@intel.com> |
||
|---|---|---|
| .. | ||
| amd | ||
| cavium | ||
| example/min86 | ||
| ibm/power9 | ||
| intel | ||
| mediatek | ||
| nvidia | ||
| qualcomm | ||
| rockchip | ||
| samsung | ||
| sifive | ||
| ti | ||
| ucb/riscv | ||
| xilinx | ||