diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2017-07-05 15:52:52 +0200 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2017-07-11 14:00:11 +0000 |
commit | 2db7922cca8663eb464e63599f4c9de17f6ba2c8 (patch) | |
tree | c0e79520b27390d171a5b8d9c4a2e80bb25d9162 /src/acpi | |
parent | 55ea013842b50177bc48fae8159a77596bd3a6d9 (diff) |
siemens/nc_fpga: Modify macro FPGA_SET_PARAM to avoid hwilib errors
The macro FPGA_SET_PARAM was introduced to make the setting of different
FPGA registers with the appropriate values from hwinfo more
transparent. The hwilib takes care about the size of the provided buffer
where the requested value should be stored in. The fields in hwinfo have
not always the same size as the matching registers in the FPGA. So to
avoid errors resulting in a too small buffer when calling hwilib_get_field()
the buffer is now fixed to 32 bit and will be casted to the destination
type when the value is written into the FPGA register.
Changing the field size in hwilib would be the wrong way as the defined
lengths are specified this way to be expandable in the future.
In addition the number of maximum supported temperature sensors is
increased to 8 as the FPGA now supports more.
Change-Id: I0c697106783158420708a973c3cff2be90fa4fce
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/20471
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/acpi')
0 files changed, 0 insertions, 0 deletions