From a355b16eb0b2922677280f5051e64ae9592d0efd Mon Sep 17 00:00:00 2001 From: Ren Kuo Date: Wed, 12 Dec 2018 14:39:36 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/30178 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/mainboard/google/poppy/variants/nami/mainboard.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c index ba994c2383..5636a329e5 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 @@ static const struct pl2_config { } 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 @@ void variant_devtree_update(void) 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; } -- cgit v1.2.3