diff options
author | Ren Kuo <ren.kuo@quanta.corp-partner.google.com> | 2018-12-12 14:39:36 +0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-12-17 06:45:22 +0000 |
commit | a355b16eb0b2922677280f5051e64ae9592d0efd (patch) | |
tree | 1d739fdf31f4a732cfa776d81c5b91f9b31f59ea /src/mainboard/google/poppy/variants/nami/mainboard.c | |
parent | c092222c39fb4f95819d3b79184493eab334cbb9 (diff) |
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>
Diffstat (limited to 'src/mainboard/google/poppy/variants/nami/mainboard.c')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/mainboard.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |