diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-06-28 14:11:38 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-01 09:42:55 +0000 |
commit | 5124c131ba89145dfa481016038fbc8f26a86656 (patch) | |
tree | 5afcd3c59cc2eed286d254b4c131f69edd79aefa /src/southbridge/intel/common/smbus.c | |
parent | 3b1a9944aa58f781a7a6e9c86ed9bde56fa8074e (diff) |
mb/emulation/qemu-i440fx: Tidy up PAM register writes
Tidy up the code that programs the PAM (Programmable Attribute Map)
registers. Introduce the `D0F0_PAM` macro and use it to replace the
magic `0x59` and `0x5a` values in the code. Adjust the range of the
for-loop to work with the `D0F0_PAM` macro, and properly indent the
loop's body.
Change-Id: I9036425d726ffb69737ea6ed36c7a8f61d9d040a
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55899
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/common/smbus.c')
0 files changed, 0 insertions, 0 deletions