northbridge/intel/sandybridge: Enable x86_64 for mrc.bin
commit1d718def057770194f9fb5111201baf43ce7c838
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 28 Dec 2023 18:39:11 +0000 (28 19:39 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 5 Jan 2024 14:34:29 +0000 (5 14:34 +0000)
treeb85c0159e44462f5ff0b83cedd747be2b231249a
parent3052e9e6421cd5926b2b668c96a4d9cc040fcbf9
northbridge/intel/sandybridge: Enable x86_64 for mrc.bin

Enable x86_64 support for MRC.bin:
- Add a wrapper function for console printing that calls into
  long mode to call native do_putchar
- Remove Kconfig guard for x86_64 when MRC is being used

Tested: Booted Lenovo X220 using mrc.bin under x86_64 and
        MRC is able to print to the console.

Change-Id: I21ffcb5f5d4bf155593e8111531bdf0ed7071dfc
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79754
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
src/cpu/intel/model_206ax/Kconfig
src/northbridge/intel/sandybridge/mrc_wrapper.S
src/northbridge/intel/sandybridge/raminit_mrc.c