amd/stoneyridge: Convert MP init to mp_init_with_smm
commita7bfbbedd6059183c5126bbea248fe52176f6386
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Wed, 13 Sep 2017 23:24:53 +0000 (13 17:24 -0600)
committerAaron Durbin <adurbin@chromium.org>
Wed, 27 Sep 2017 15:56:55 +0000 (27 15:56 +0000)
tree418b2d7ea065488be41e8a11deb0d3fbdf5bacaf
parentdc194e2bc4e7421d760693702775b39784522bb3
amd/stoneyridge: Convert MP init to mp_init_with_smm

Change the Stoney Ridge SOC to a more modern method for setting up
the multiple cores.

Add a new cpu.c file for most of the processor initiliazation.  Build
mp_ops with the necessary callbacks.  Note also that this patch removes
cpu_bus_scan.  Rather than manually find CPUs and add them to the
devicetree, allow this to be done automatically in the generic
mp_init.c file.

SMM information is left blank in mp_ops to avoid having mp_init.c
install a handler at this time.  A later patch will add TSEG SMM
capabilities for the APU.

This patch also contains a hack to mask the behavior of AGESA which
configures the MTRRs and Tom2ForceMemTypeWB coming out of AmdInitPost.
The hack immediately changes all WB variable MTRRs, on the BSP, to UC
so that all writes to memory space will make it to the DRAM.

BUG=b:66200075

Change-Id: Ie54295cb00c6835947456e8818a289b7eb260914
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21498
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/amd/stoneyridge/Kconfig
src/soc/amd/stoneyridge/Makefile.inc
src/soc/amd/stoneyridge/chip.c
src/soc/amd/stoneyridge/cpu.c [new file with mode: 0644]
src/soc/amd/stoneyridge/include/soc/cpu.h [new file with mode: 0644]
src/soc/amd/stoneyridge/include/soc/northbridge.h
src/soc/amd/stoneyridge/model_15_init.c
src/soc/amd/stoneyridge/northbridge.c
src/soc/amd/stoneyridge/romstage.c