u-boot-brain/arch/x86/cpu
Simon Glass 1630853085 x86: apl: Move p2sb ofdata reading to the correct method
With P2SB the initial BAR (base-address register) is set up by TPL and
this is used unchanged right through U-Boot.

At present the reading of this address is split between the ofdata() and
probe() methods. There are a few problems that are unique to the p2sb.
One is that its children need to call pcr_read32(), etc. which needs to
have the p2sb address correct. Also some of its children are pinctrl
devices and pinctrl is used when any device is probed. So p2sb really
needs to get its base address set up in ofdata_to_platdata(), before it is
probed.

Another point is that reading the p2sb BAR will not work if the p2sb is
hidden. The FSP-S seems to hide it, presumably to avoid confusing PCI
enumeration.

Reading ofdata in ofdata_to_platdata() is the correct place anyway, so
this is easy to fix.

Move the code into one place and use the early-regs property in all cases
for simplicity and to avoid needing to probe any PCI devices just to read
the BAR.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Tested-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
2020-04-16 14:36:28 +08:00
..
apollolake x86: apl: Use cpu_x86_get_count() for cpu_ops.get_count 2020-03-05 18:25:22 +08:00
baytrail common: Move ll_boot_init() to init.h 2020-01-17 13:27:28 -05:00
braswell x86: Rename some FSP functions to have an fsp_ prefix 2019-10-08 13:53:34 +08:00
broadwell x86: Update mrccache to support multiple caches 2019-12-15 11:44:14 +08:00
coreboot x86: Correct wording of coreboot source code 2020-04-16 14:36:28 +08:00
efi common: Move board_get_usable_ram_top() out of common.h 2019-12-02 18:25:04 -05:00
i386 x86: Give each driver an IRQ type 2020-02-07 22:45:35 +08:00
intel_common x86: apl: Move p2sb ofdata reading to the correct method 2020-04-16 14:36:28 +08:00
ivybridge x86: Update mrccache to support multiple caches 2019-12-15 11:44:14 +08:00
qemu dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
quark common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
queensbay x86: Rename some FSP functions to have an fsp_ prefix 2019-10-08 13:53:34 +08:00
slimbootloader x86: serial: Use NS16550_DYNAMIC in Slim Bootloader 2020-02-04 01:19:26 +08:00
tangier common: Move RAM-sizing functions to init.h 2020-01-17 14:02:35 -05:00
x86_64 common: Move interrupt functions into a new header 2019-12-02 18:25:00 -05:00
acpi_gpe.c x86: Add support for ACPI general-purpose events 2020-02-07 22:46:35 +08:00
call32.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.mk x86: Drop RESET_SEG_SIZE 2019-10-11 17:37:34 +08:00
cpu_x86.c x86: cpu_x86: Make cpu_x86_get_count() non-static 2020-03-05 18:25:22 +08:00
cpu.c common: Move ll_boot_init() to init.h 2020-01-17 13:27:28 -05:00
ioapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
irq.c x86: Give each driver an IRQ type 2020-02-07 22:45:35 +08:00
lapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile x86: Add support for ACPI general-purpose events 2020-02-07 22:46:35 +08:00
mp_init.c x86: Move qemu CPU fixup function into its own file 2019-12-15 11:44:25 +08:00
mtrr.c common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
pci.c x86: pci: Drop the first parameter in pci_x86_r/w_config() 2019-10-08 13:57:46 +08:00
qfw_cpu.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start16.S Revert "x86: use invd instead of wbinvd in real mode start code" 2020-03-05 18:19:40 +08:00
start64.S x86: start64: Fix copyright message 2019-05-08 13:02:10 +08:00
start_from_spl.S x86: Move CPU init to before spl_init() 2019-11-03 07:20:28 +08:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
start.S Revert "x86: use invd instead of wbinvd in real mode start code" 2020-03-05 18:19:40 +08:00
turbo.c x86: Tidy up some duplicate MSR defines 2019-10-08 13:57:47 +08:00
u-boot-64.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
u-boot-spl.lds x86: Define the SPL image start 2019-12-15 11:44:12 +08:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S x86: Move acpi_s3.h to a common location 2019-10-08 13:57:46 +08:00