diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2020-06-04 16:25:13 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-22 12:27:24 +0000 |
commit | 5569ee9d1353465fc0345e1eb94b9daf361d250a (patch) | |
tree | 12355376462f32050494fe0aec9cacd37ebd4150 /src/mainboard/amd/padmelon/OemCustomize.c | |
parent | a890138968894db60e022e846e5ee0a9fefde010 (diff) |
spi/winbond: Simplify status reg union types
Having speparate types for the status register with three and four block
protection bits respectively doesn't really make sense, it's the same
size either way just a different representation, so one union type will
do.
This allows us to de-duplicate the status register read in
winbond_get_write_protection as well as removing another layer of union
in 'struct status_regs'.
Change-Id: Ie99b98fb6762c8d84d685b110cfc2fd5458b702e
Signed-off-by: Daniel Gröber <dxld@darkboxed.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42111
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd/padmelon/OemCustomize.c')
0 files changed, 0 insertions, 0 deletions