diff options
author | Shelley Chen <shchen@google.com> | 2022-11-29 13:48:58 -0800 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2022-11-30 21:53:45 +0000 |
commit | cd4e3d52eeb02a705e0c28417d546c4de24e0ba5 (patch) | |
tree | 1e27d07c4387473a19560c2b2a23549e8fdc91f5 /src/lib/prog_loaders.c | |
parent | 474da028ab436c9668d2c9a5142c5f1ab9460044 (diff) |
mb/google/herobrine: Mask out upper bits from sku_id()
When retrieving the SKU id value through the sku_id() function in
mainboard_needs_pcie_init(), we only want the values in the lower 5
bits as we can only represent SKU id up to 27. Everything in the
higher bits should be masked out because they are not needed.
BUG=b:254281839
BRANCH=None
TEST=Make sure that NVMe is not initialized
Tested on a herobrine board with SKU id 0
Change-Id: I0e786ec392b5e1484cb2ff6d83a8d4fdd698950c
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70164
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/prog_loaders.c')
0 files changed, 0 insertions, 0 deletions