summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-03-30 23:44:52 +0530
committerFelix Held <felix-coreboot@felixheld.de>2022-04-02 14:53:00 +0000
commit3ad00d0c89c9e7a8e9ef13b6dc65bb338a191ec8 (patch)
tree548509dc474d9d3acace756af3eb441fe4135f50 /src/device
parent6de1d9ff4ecfd1b550a99270e7431ab9e0cf5406 (diff)
cpu/x86/mtrr: Make useful MTRR functions available for all boot stages
This patch migrates a few useful MTRR functions as below from `earlymtrr.c` file to newly created common stage file `mtrrlib.c`. 1. get_free_var_mtrr 2. set_var_mtrr 3. clear_all_var_mtrr These functions can be used to perform the MTRR programming from IA common code SPI driver as `fast_spi.c` without requiring two separate implementations for early boot stage (till romstage) and for ramstage onwards. BUG=b:225766934 TEST=Able to build and boot google/redrix board to ChromeOS. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I2c62a04a36d3169545c3128b4231992ad9b3699d Reviewed-on: https://review.coreboot.org/c/coreboot/+/63218 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/device')
0 files changed, 0 insertions, 0 deletions