mb/google/poppy/variants/nami: perform PL2 setting for bard/ekko
According to bard/ekko cpu types, PL2 need to set the values
1. KBL_U PL2 is 25w.
2. KBL_R PL2 is 29w.
BUG=b:120874861
TEST=power on and check the DUT can boot up well
Change-Id: I5f9d672c4244c363a7cfb362653663a065259fc0
Signed-off-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/30178
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index ba994c2..5636a32 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -35,6 +35,7 @@
/* PL2 ID define*/
#define PL2_ID_DEFAULT 0
#define PL2_ID_SONA_SYNDRA 1
+#define PL2_ID_BARD_EKKO 2
static const struct pl2_config {
uint32_t cpuid_y0_pl2;
@@ -42,6 +43,7 @@
} pl2_config_table[] = {
[PL2_ID_DEFAULT] = { PL2_I7_SKU, PL2_DEFAULT },
[PL2_ID_SONA_SYNDRA] = { PL2_DEFAULT, PL2_KBL_U },
+ [PL2_ID_BARD_EKKO] = { PL2_DEFAULT, PL2_KBL_U },
};
/* Variant for AKALI */
@@ -245,6 +247,16 @@
case SKU_2_PANTHEON:
cfg->usb2_ports[5].enable = 0;
break;
+ case SKU_0_BARD:
+ case SKU_1_BARD:
+ case SKU_2_BARD:
+ case SKU_3_BARD:
+ case SKU_0_EKKO:
+ case SKU_1_EKKO:
+ case SKU_2_EKKO:
+ case SKU_3_EKKO:
+ pl2_id = PL2_ID_BARD_EKKO;
+ break;
default:
break;
}