diff options
author | Furquan Shaikh <furquan@google.com> | 2020-06-27 16:30:18 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-06-30 23:31:18 +0000 |
commit | e9fe3661b3de1916af7d82bbb78dc3f8a2a5e1b2 (patch) | |
tree | c533a2815c465d8fa63edd7db3de7eddeb2eee71 /util/msrtool/msrutils.c | |
parent | 10185866f08a192d6fddb6f707d6877fcd81cb94 (diff) |
soc/amd/common/gpio: Add new helper macro PAD_CFG_STRUCT_FLAGS
`flags` field of soc_amd_gpio structure is set only for SCI and SMI
configurations. This change adds a new helper macro
PAD_CFG_STRUCT_FLAGS that allows setting of all soc_amd_gpio members
including `flags` field. This can be used directly by PAD_SCI and
PAD_SMI. For all other pad configurations, PAD_CFG_STRUCT macro uses
PAD_CFG_STRUCT_FLAGS with flags set to 0. This allows dropping of
redundant parameter 0 for flags for all other pad configurations.
BUG=b:159944426
Change-Id: I835b62f5502375ffc4215548b51338a67546d699
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42876
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/msrtool/msrutils.c')
0 files changed, 0 insertions, 0 deletions