Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45741 )
Change subject: mb/google/octopus: Disable Ambient Light Sensor (ALS)
......................................................................
mb/google/octopus: Disable Ambient Light Sensor (ALS)
ALS is not stuffed in octopus boards. Hence disable ALS ACPI devices.
BUG=b:169245831
TEST=Ensure that ALS devices are disabled in ACPI tables.
Change-Id: I5ad28f01b0515a41b314116eb2d05c520df0f86e
Signed-off-by: Karthikeyan Ramasubramanian <kramasub(a)google.com>
---
M src/mainboard/google/octopus/variants/baseboard/include/baseboard/ec.h
1 file changed, 0 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/45741/1
diff --git a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/ec.h
index ecc9355..fa86170f 100644
--- a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/ec.h
+++ b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/ec.h
@@ -54,9 +54,6 @@
* ACPI related definitions for ASL code.
*/
-/* Enable EC backed ALS device in ACPI */
-#define EC_ENABLE_ALS_DEVICE
-
/* Enable LID switch and provide wake pin for EC */
#define EC_ENABLE_LID_SWITCH
#define EC_ENABLE_WAKE_PIN GPE_EC_WAKE
--
To view, visit https://review.coreboot.org/c/coreboot/+/45741
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5ad28f01b0515a41b314116eb2d05c520df0f86e
Gerrit-Change-Number: 45741
Gerrit-PatchSet: 1
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-MessageType: newchange
Nick Vaccaro has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45459 )
Change subject: soc/intel/tigerlake: log the memory part name
......................................................................
soc/intel/tigerlake: log the memory part name
THe BIOS log was looking in the spd data for the part name, but part
names are stripped from generic SPDs. In those cases, devices define
their DRAM Part Name in the CBI, which can be retrieved by calling
mainboard_get_dram_part_num().
Add a spd_set_name() call to the spd library to allow logging the memory
part name in cases where the name does not exist in the actual SPD data,
and call it in cases where the mainboard is overriding the part name.
BUG=b:168724473
TEST="emerge-volteer coreboot chromeos-bootimage", flash and boot
volteer to kernel and verify that the BIOS log shows a part name when
logging SPD information:
SPD: module part number is K4U6E3S4AA-MGCL
Change-Id: I91971e07c450492dbb0588abd1c3c692ee0d3bb0
Signed-off-by: Nick Vaccaro <nvaccaro(a)google.com>
---
M src/include/spd_bin.h
M src/lib/spd_bin.c
M src/soc/intel/tigerlake/meminit.c
3 files changed, 24 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/45459/1
diff --git a/src/include/spd_bin.h b/src/include/spd_bin.h
index 11a0084..80c2e62 100644
--- a/src/include/spd_bin.h
+++ b/src/include/spd_bin.h
@@ -47,6 +47,7 @@
int get_spd_cbfs_rdev(struct region_device *spd_rdev, u8 spd_index);
void dump_spd_info(struct spd_block *blk);
void get_spd_smbus(struct spd_block *blk);
+void spd_set_name(uint8_t spd[], char part_name[]);
/*
* get_spd_sn returns the SODIMM serial number. It only supports DDR3 and DDR4.
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 3888896..78c3e98 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -136,8 +136,23 @@
return spd_busw[index];
}
+static char *spd_dram_part_name;
+static bool spd_part_name_overridden = false;
+void spd_set_name(uint8_t spd[], char *part_name)
+{
+ spd_dram_part_name = part_name;
+ spd_part_name_overridden = true;
+}
+
static void spd_get_name(const uint8_t spd[], char spd_name[], int dram_type)
{
+ /* If memory part name is overridden, use override copy */
+ if (spd_part_name_overridden) {
+ memcpy(spd_name, spd_dram_part_name,
+ strlen(spd_dram_part_name));
+ return;
+ }
+
switch (dram_type) {
case SPD_DRAM_DDR3:
memcpy(spd_name, &spd[DDR3_SPD_PART_OFF], DDR3_SPD_PART_LEN);
diff --git a/src/soc/intel/tigerlake/meminit.c b/src/soc/intel/tigerlake/meminit.c
index 0c6f0b0..a027f2f 100644
--- a/src/soc/intel/tigerlake/meminit.c
+++ b/src/soc/intel/tigerlake/meminit.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <fsp/util.h>
#include <soc/meminit.h>
+#include <soc/romstage.h>
#include <spd_bin.h>
#include <string.h>
@@ -216,6 +217,9 @@
static void read_md_spd(const struct spd_info *info, uintptr_t *data, size_t *len)
{
+ const char *spd_name;
+ size_t spd_name_len;
+
if (info->md_spd_loc == SPD_MEMPTR) {
*data = info->data_ptr;
*len = info->data_len;
@@ -225,6 +229,10 @@
die("Not a valid location(%d) for Memory-down SPD!\n", info->md_spd_loc);
}
+ /* if mainboard overrides module name, use override name */
+ if (mainboard_get_dram_part_num(&spd_name, &spd_name_len))
+ spd_set_name((uint8_t *) *data, (char *) spd_name);
+
print_spd_info((uint8_t *) *data);
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/45459
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I91971e07c450492dbb0588abd1c3c692ee0d3bb0
Gerrit-Change-Number: 45459
Gerrit-PatchSet: 1
Gerrit-Owner: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-MessageType: newchange
Lucas Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45810 )
Change subject: zork/var/ezkinil: Add micron-MT40A1G16KD-062E-E in SPD table for Ezkinil.
......................................................................
zork/var/ezkinil: Add micron-MT40A1G16KD-062E-E in SPD table for Ezkinil.
Current Ram_Id: 0011 MT40A1G16KNR-075-E never be built before.
Remove it and change use micron-MT40A1G16KD-062E-E for ram_id:0011.
BRANCH=zork
BUG=b:159316110
TEST=run gen_part_id then check the generated files.
Signed-off-by: Lucas Chen <lucas.chen(a)quanta.corp-partner.google.com>
Change-Id: I28fc39f17e06ecd39f6567613e6ff5919becb2fd
---
M src/mainboard/google/zork/variants/ezkinil/spd/Makefile.inc
M src/mainboard/google/zork/variants/ezkinil/spd/dram_id.generated.txt
M src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
3 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/45810/1
diff --git a/src/mainboard/google/zork/variants/ezkinil/spd/Makefile.inc b/src/mainboard/google/zork/variants/ezkinil/spd/Makefile.inc
index 65eb7b0..12e7fa9 100644
--- a/src/mainboard/google/zork/variants/ezkinil/spd/Makefile.inc
+++ b/src/mainboard/google/zork/variants/ezkinil/spd/Makefile.inc
@@ -3,7 +3,7 @@
SPD_SOURCES =
SPD_SOURCES += ddr4-spd-3.hex # ID = 0(0b0000) Parts = H5AN8G6NCJR-VKC
-SPD_SOURCES += ddr4-spd-empty.hex # ID = 1(0b0001)
+SPD_SOURCES += ddr4-spd-empty.bin # ID = 1(0b0001)
SPD_SOURCES += ddr4-spd-1.hex # ID = 2(0b0010) Parts = MT40A512M16TB-062E:J
-SPD_SOURCES += ddr4-spd-4.hex # ID = 3(0b0011) Parts = MT40A1G16KNR-075:E
+SPD_SOURCES += ddr4-spd-7.hex # ID = 3(0b0011) Parts = MT40A1G16KD-062E:E
SPD_SOURCES += ddr4-spd-3.hex # ID = 4(0b0100) Parts = K4A8G165WC-BCTD
diff --git a/src/mainboard/google/zork/variants/ezkinil/spd/dram_id.generated.txt b/src/mainboard/google/zork/variants/ezkinil/spd/dram_id.generated.txt
index 99072f6..7e54cc1 100644
--- a/src/mainboard/google/zork/variants/ezkinil/spd/dram_id.generated.txt
+++ b/src/mainboard/google/zork/variants/ezkinil/spd/dram_id.generated.txt
@@ -1,5 +1,5 @@
DRAM Part Name ID to assign
H5AN8G6NCJR-VKC 0 (0000)
MT40A512M16TB-062E:J 2 (0010)
-MT40A1G16KNR-075:E 3 (0011)
+MT40A1G16KD-062E:E 3 (0011)
K4A8G165WC-BCTD 4 (0100)
diff --git a/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
index a9994a3..b4b1601 100644
--- a/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/ezkinil/spd/mem_parts_used.txt
@@ -9,5 +9,5 @@
# Part Name, Fixed ID (optional)
H5AN8G6NCJR-VKC,0
MT40A512M16TB-062E:J,2
-MT40A1G16KNR-075:E, 3
+MT40A1G16KD-062E:E,3
K4A8G165WC-BCTD,4
--
To view, visit https://review.coreboot.org/c/coreboot/+/45810
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I28fc39f17e06ecd39f6567613e6ff5919becb2fd
Gerrit-Change-Number: 45810
Gerrit-PatchSet: 1
Gerrit-Owner: Lucas Chen <lucas.chen(a)quanta.corp-partner.google.com>
Gerrit-MessageType: newchange
Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45852 )
Change subject: mb/google/zork/ezkinil: Increase eMMC initial clock frequency
......................................................................
mb/google/zork/ezkinil: Increase eMMC initial clock frequency
This will reduce boot time by over 30ms. Some of the initial designs
don't have a pull-up resistor on the CMD line. These designs still boot
at 400 kHz despite not having the pull-up.
BUG=b:158766134
TEST=Boot Ezkinil w/ eMMC to OS.
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: Ida0bbf9bd772ab7d384d5d097fa3b02b846a3efa
---
M src/mainboard/google/zork/variants/ezkinil/overridetree.cb
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/45852/1
diff --git a/src/mainboard/google/zork/variants/ezkinil/overridetree.cb b/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
index 614d6ab..b0204de 100644
--- a/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
+++ b/src/mainboard/google/zork/variants/ezkinil/overridetree.cb
@@ -39,6 +39,12 @@
.early_init = true,
}"
+ register "emmc_config" = "{
+ .timing = SD_EMMC_EMMC_HS400,
+ .sdr104_hs400_driver_strength = SD_EMMC_DRIVE_STRENGTH_A,
+ .init_khz_preset = 400,
+ }"
+
# See AMD 55570-B1 Table 13: PCI Device ID Assignments.
device domain 0 on
subsystemid 0x1022 0x1510 inherit
--
To view, visit https://review.coreboot.org/c/coreboot/+/45852
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida0bbf9bd772ab7d384d5d097fa3b02b846a3efa
Gerrit-Change-Number: 45852
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-MessageType: newchange