diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2017-06-12 09:46:09 +0200 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2017-06-13 10:27:04 +0200 |
commit | 59dd4664148ffcff5af4b23b320bf9bb99c28a63 (patch) | |
tree | bdbe56d64fe035a8a2d9ca40e5893184fc48dd8e /src/vendorcode/siemens | |
parent | c34e41fef638838d60406905c524855c0535bcb3 (diff) | |
download | coreboot-59dd4664148ffcff5af4b23b320bf9bb99c28a63.tar.xz |
vendorcode/siemens: Add new values to hwilib
The Siemens mc_apl1 mainboard needs new values from hwilib.
- add Dsave time for board reset
- add backlight brightness for panel setting
- add backlight PWM period
Change-Id: I3a48654ef57c7f8accaabe60e8aec144e4fe5466
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/20159
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/vendorcode/siemens')
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.c | 9 | ||||
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c index df9bd2295e..c1533e80e2 100644 --- a/src/vendorcode/siemens/hwilib/hwilib.c +++ b/src/vendorcode/siemens/hwilib/hwilib.c @@ -152,6 +152,9 @@ static const struct param_info params[] = { .mask = 0x400, .mask_offset = 10, .get_field = hwilib_read_bytes }, + [NvramVirtTimeDsaveReset] = { + .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1be, .len = 2}, + .get_field = hwilib_read_bytes }, [BiosFlags] = { .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1c0, .len = 4}, .get_field = hwilib_read_bytes }, @@ -170,6 +173,12 @@ static const struct param_info params[] = { [RTCType] = { .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1e8, .len = 1}, .get_field = hwilib_read_bytes }, + [BL_Brightness] = { + .pos[0] = {.blk_type = BLK_SIB, .offset = 0xd8, .len = 1}, + .get_field = hwilib_read_bytes }, + [PF_PwmFreq] = { + .pos[0] = {.blk_type = BLK_SIB, .offset = 0xe7, .len = 1}, + .get_field = hwilib_read_bytes }, [PF_Color_Depth] = { .pos[0] = {.blk_type = BLK_SIB, .offset = 0xea, .len = 1}, .mask = 0x03, diff --git a/src/vendorcode/siemens/hwilib/hwilib.h b/src/vendorcode/siemens/hwilib/hwilib.h index 001c958f19..83fcc8fffb 100644 --- a/src/vendorcode/siemens/hwilib/hwilib.h +++ b/src/vendorcode/siemens/hwilib/hwilib.h @@ -39,12 +39,15 @@ typedef enum { SPD, FF_FreezeDis, FF_FanReq, + NvramVirtTimeDsaveReset, BiosFlags, MacMapping1, MacMapping2, MacMapping3, MacMapping4, RTCType, + BL_Brightness, + PF_PwmFreq, PF_Color_Depth, PF_DisplType, PF_DisplCon, |