aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/generic/bayhub_lv2/lv2.h
diff options
context:
space:
mode:
authorVictor Ding <victording@google.com>2021-02-18 07:25:08 +0000
committerPatrick Georgi <pgeorgi@google.com>2021-02-20 09:01:10 +0000
commite0c2c06ba17278e15ff805cbf75a6d5fc5ad474b (patch)
treefab2abba05023aac8ab45d7eb7f56f3edc6bfeea /src/drivers/generic/bayhub_lv2/lv2.h
parent9d1bf811fe110a520ceeb0a26e5aa749bf1c2b94 (diff)
drivers/generic/bayhub_lv2: remove unnecessary configs
coreboot sets up CLK_PM, ASPM, and L1ss automatically based on related bits in "Link Capability Register" and "L1 PM Substates Capabilities Register". coreboot overrides these configs even if the driver sets them. Therefore, setting up CLK_PM, ASPM, and L1ss in the driver is redundant and useless. BUG=b:177955523 BRANCH=zork TEST="lspci -vvvv" prints are identical with and without this patch; LV2_LINK_CTRL(0x90) is 0x00110102 with and without this patch. Signed-off-by: Victor Ding <victording@google.com> Change-Id: I17c19f4271da426ac2b926b948378dc88131e95a Reviewed-on: https://review.coreboot.org/c/coreboot/+/50871 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Kangheui Won <khwon@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/drivers/generic/bayhub_lv2/lv2.h')
-rw-r--r--src/drivers/generic/bayhub_lv2/lv2.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/generic/bayhub_lv2/lv2.h b/src/drivers/generic/bayhub_lv2/lv2.h
index 464fed8ac0..9eef4b3fc3 100644
--- a/src/drivers/generic/bayhub_lv2/lv2.h
+++ b/src/drivers/generic/bayhub_lv2/lv2.h
@@ -21,9 +21,6 @@ enum {
LV2_PCI_PM_L1_TIMER_MASK = 0x0FFFFFFF,
LV2_PCR_HEX_234 = 0x234,
LV2_MAX_LATENCY_SETTING = 0x10011001,
- LV2_PCR_HEX_248 = 0x248,
- LV2_L1_SUBSTATE_SETTING = 0x0000000A,
- LV2_L1_SUBSTATE_SETTING_MASK = 0xFFFFFFF0,
LV2_PCR_HEX_3F4 = 0x3F4,
LV2_L1_SUBSTATE_OPTIMISE = 0x0000000A,
LV2_L1_SUBSTATE_OPTIMISE_MASK = 0xFFFFFFF0,
@@ -36,8 +33,4 @@ enum {
LV2_PCR_HEX_308 = 0x308,
LV2_RESET_DMA_DISABLE = 0x00C00000,
LV2_RESET_DMA_DISABLE_MASK = 0xFF3FFFFF,
- LV2_LINK_CTRL = 0x90,
- LV2_LINK_CTRL_L1_ENABLE = BIT(1),
- LV2_LINK_CTRL_L1_L0_MASK = 0xFFFFFFFC,
- LV2_LINK_CTRL_CLKREQ = BIT(8),
};