diff options
author | Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com> | 2024-02-20 13:47:07 +0900 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-02-21 14:29:09 +0000 |
commit | a79ef93e82d39b4ff2f045cdc06ba33f0fe8abd3 (patch) | |
tree | 7979d7761ce95c285890455d3a2728270ca3c11d /src/mainboard/google/brya/variants | |
parent | 12781b64cb83bfac6f679f5bdfddf5e2423258cb (diff) |
mb/google/brya/var/xol: Update memory configuration
Update memory configuration following proto schematics.
BUG=b:319506033
BRANCH=firmware-brya-14505.B
TEST=FW_NAME=xol emerge-brya coreboot chromeos-bootimage
Proto board can boot to ChromeOS.
Change-Id: I59aabe0870317092f59701bdf88b53bf9731377a
Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80326
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'src/mainboard/google/brya/variants')
-rw-r--r-- | src/mainboard/google/brya/variants/xol/Makefile.mk | 1 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/xol/memory.c | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/xol/Makefile.mk b/src/mainboard/google/brya/variants/xol/Makefile.mk index df044c28a5..641e814351 100644 --- a/src/mainboard/google/brya/variants/xol/Makefile.mk +++ b/src/mainboard/google/brya/variants/xol/Makefile.mk @@ -1,4 +1,5 @@ ## SPDX-License-Identifier: GPL-2.0-only bootblock-y += gpio.c +romstage-y += memory.c ramstage-y += gpio.c diff --git a/src/mainboard/google/brya/variants/xol/memory.c b/src/mainboard/google/brya/variants/xol/memory.c new file mode 100644 index 0000000000..f8afa73e14 --- /dev/null +++ b/src/mainboard/google/brya/variants/xol/memory.c @@ -0,0 +1,74 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <baseboard/variants.h> +#include <soc/romstage.h> + +static const struct mb_cfg variant_memcfg = { + .type = MEM_TYPE_LP5X, + + .rcomp = { + /* Baseboard uses only 100ohm Rcomp resistors */ + .resistor = 100, + }, + + /* DQ byte map */ + .lpx_dq_map = { + .ddr0 = { + .dq0 = { 11, 10, 9, 8, 15, 14, 13, 12 }, + .dq1 = { 7, 5, 4, 6, 1, 2, 0, 3 }, + }, + .ddr1 = { + .dq0 = { 1, 4, 0, 2, 5, 3, 6, 7 }, + .dq1 = { 14, 13, 12, 15, 11, 10, 9, 8 }, + }, + .ddr2 = { + .dq0 = { 11, 10, 9, 8, 13, 15, 12, 14 }, + .dq1 = { 4, 6, 7, 5, 0, 1, 2, 3 }, + }, + .ddr3 = { + .dq0 = { 4, 5, 1, 0, 7, 2, 6, 3 }, + .dq1 = { 15, 11, 10, 14, 9, 8, 13, 12 }, + }, + .ddr4 = { + .dq0 = { 10, 9, 8, 11, 13, 15, 14, 12 }, + .dq1 = { 5, 4, 3, 6, 2, 1, 0, 7 }, + }, + .ddr5 = { + .dq0 = { 0, 5, 1, 4, 6, 3, 7, 2 }, + .dq1 = { 10, 11, 13, 15, 14, 9, 12, 8 }, + }, + .ddr6 = { + .dq0 = { 9, 10, 11, 8, 14, 12, 13, 15 }, + .dq1 = { 5, 7, 6, 4, 1, 2, 3, 0 }, + }, + .ddr7 = { + .dq0 = { 3, 1, 2, 0, 7, 6, 5, 4 }, + .dq1 = { 10, 9, 15, 13, 11, 12, 14, 8 }, + }, + }, + + /* DQS CPU<>DRAM map */ + .lpx_dqs_map = { + .ddr0 = { .dqs0 = 1, .dqs1 = 0 }, + .ddr1 = { .dqs0 = 0, .dqs1 = 1 }, + .ddr2 = { .dqs0 = 1, .dqs1 = 0 }, + .ddr3 = { .dqs0 = 0, .dqs1 = 1 }, + .ddr4 = { .dqs0 = 1, .dqs1 = 0 }, + .ddr5 = { .dqs0 = 0, .dqs1 = 1 }, + .ddr6 = { .dqs0 = 1, .dqs1 = 0 }, + .ddr7 = { .dqs0 = 0, .dqs1 = 1 }, + }, + + .lp5x_config = { + .ccc_config = 0xff, + }, + + .ect = 1, /* Early Command Training */ + + .UserBd = BOARD_TYPE_MOBILE, +}; + +const struct mb_cfg *variant_memory_params(void) +{ + return &variant_memcfg; +} |