Peichao Li has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33824
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
DO NOT SUBMIT: It's just to study how to create a new variant.
mb/google/hatch: Create Akemi variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 296 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/1
diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig index 8045129..d7a8c58 100644 --- a/src/mainboard/google/hatch/Kconfig +++ b/src/mainboard/google/hatch/Kconfig @@ -67,6 +67,7 @@ default "HELIOS TEST 0878" if BOARD_GOOGLE_HELIOS default "KINDRED TEST 2636" if BOARD_GOOGLE_KINDRED default "KOHAKU TEST 1953" if BOARD_GOOGLE_KOHAKU + default "AKEMI TEST 1666" if BOARD_GOOGLE_AKEMI
config MAINBOARD_DIR string @@ -83,6 +84,7 @@ default "Helios" if BOARD_GOOGLE_HELIOS default "Kindred" if BOARD_GOOGLE_KINDRED default "Kohaku" if BOARD_GOOGLE_KOHAKU + default "Akemi" if BOARD_GOOGLE_AKEMI
config MAINBOARD_VENDOR string @@ -107,6 +109,7 @@ default "helios" if BOARD_GOOGLE_HELIOS default "kindred" if BOARD_GOOGLE_KINDRED default "kohaku" if BOARD_GOOGLE_KOHAKU + default "akemi" if BOARD_GOOGLE_AKEMI
config VBOOT select HAS_RECOVERY_MRC_CACHE diff --git a/src/mainboard/google/hatch/Kconfig.name b/src/mainboard/google/hatch/Kconfig.name index 9a25725..f04c096 100644 --- a/src/mainboard/google/hatch/Kconfig.name +++ b/src/mainboard/google/hatch/Kconfig.name @@ -29,3 +29,9 @@ select BOARD_GOOGLE_BASEBOARD_HATCH select BOARD_ROMSIZE_KB_16384 select SOC_INTEL_COMETLAKE + +config BOARD_GOOGLE_AKEMI + bool "-> Akemi" + select BOARD_GOOGLE_BASEBOARD_HATCH + select BOARD_ROMSIZE_KB_16384 + select SOC_INTEL_COMETLAKE diff --git a/src/mainboard/google/hatch/variants/akemi/Makefile.inc b/src/mainboard/google/hatch/variants/akemi/Makefile.inc new file mode 100644 index 0000000..555cbb4 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/Makefile.inc @@ -0,0 +1,22 @@ +## This file is part of the coreboot project. +## +## Copyright 2019 Google LLC +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + +SPD_SOURCES = 4G_2400 # 0b000 +SPD_SOURCES += empty_ddr4 # 0b001 +SPD_SOURCES += 8G_2400 # 0b010 +SPD_SOURCES += 8G_2666 # 0b011 +SPD_SOURCES += 16G_2400 # 0b100 +SPD_SOURCES += 16G_2666 # 0b101 + +ramstage-y += gpio.c diff --git a/src/mainboard/google/hatch/variants/akemi/gpio.c b/src/mainboard/google/hatch/variants/akemi/gpio.c new file mode 100644 index 0000000..7e73724 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/gpio.c @@ -0,0 +1,32 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2019 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the + * GNU General Public License for more details. + */ + +#include <arch/acpi.h> +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <commonlib/helpers.h> + +static const struct pad_config gpio_table[] = { + /* C13 : EC_PCH_INT_L + * TODO Configure it back to invert mode, when + * ITSS IPCx configuration is fixed in FSP. + */ + PAD_CFG_GPI_APIC(GPP_C13, UP_20K, PLTRST, LEVEL, NONE)}; + +const struct pad_config *override_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(gpio_table); + return gpio_table; +} diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl b/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl new file mode 100644 index 0000000..31f72b3 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl @@ -0,0 +1,16 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 Intel Corporation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <baseboard/acpi/dptf.asl> diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h b/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h new file mode 100644 index 0000000..c36f957 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h @@ -0,0 +1,21 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2018 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef VARIANT_EC_H +#define VARIANT_EC_H + +#include <baseboard/ec.h> + +#endif diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h b/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h new file mode 100644 index 0000000..e7d8a75 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h @@ -0,0 +1,27 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2018 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the + * GNU General Public License for more details. + */ + +#ifndef VARIANT_GPIO_H +#define VARIANT_GPIO_H + +#include <baseboard/gpio.h> + +/* Memory configuration board straps */ +#define GPIO_MEM_CONFIG_0 GPP_F20 +#define GPIO_MEM_CONFIG_1 GPP_F21 +#define GPIO_MEM_CONFIG_2 GPP_F11 +#define GPIO_MEM_CONFIG_3 GPP_F22 + +#endif diff --git a/src/mainboard/google/hatch/variants/akemi/overridetree.cb b/src/mainboard/google/hatch/variants/akemi/overridetree.cb new file mode 100644 index 0000000..d676843 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/overridetree.cb @@ -0,0 +1,169 @@ +chip soc/intel/cannonlake + + register "SerialIoDevMode" = "{ + [PchSerialIoIndexI2C0] = PchSerialIoPci, + [PchSerialIoIndexI2C1] = PchSerialIoPci, + [PchSerialIoIndexI2C2] = PchSerialIoPci, + [PchSerialIoIndexI2C3] = PchSerialIoPci, + [PchSerialIoIndexI2C4] = PchSerialIoPci, + [PchSerialIoIndexI2C5] = PchSerialIoPci, + [PchSerialIoIndexSPI0] = PchSerialIoPci, + [PchSerialIoIndexSPI1] = PchSerialIoPci, + [PchSerialIoIndexSPI2] = PchSerialIoDisabled, + [PchSerialIoIndexUART0] = PchSerialIoSkipInit, + [PchSerialIoIndexUART1] = PchSerialIoDisabled, + [PchSerialIoIndexUART2] = PchSerialIoDisabled, + }" + + # Intel Common SoC Config + #+-------------------+---------------------------+ + #| Field | Value | + #+-------------------+---------------------------+ + #| GSPI0 | cr50 TPM. Early init is | + #| | required to set up a BAR | + #| | for TPM communication | + #| | before memory is up | + #| GSPI1 | FP MCU | + #| I2C0 | Touchpad | + #| I2C1 | Touch screen | + #| I2C4 | Audio | + #+-------------------+---------------------------+ + register "common_soc_config" = "{ + .gspi[0] = { + .speed_mhz = 1, + .early_init = 1, + }, + .i2c[0] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 50, + .fall_time_ns = 15, + }, + .i2c[1] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 60, + .fall_time_ns = 25, + }, + .i2c[3] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 150, + .fall_time_ns = 150, + }, + .i2c[4] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 120, + .fall_time_ns = 120, + }, + }" + + # GPIO for SD card detect + register "sdcard_cd_gpio" = "vSD3_CD_B" + + device domain 0 on + device pci 15.0 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D21_IRQ)" + register "wake" = "GPE0_DW0_21" + device i2c 15 on end + end + end # I2C #0 + device pci 15.1 on + chip drivers/i2c/generic + register "hid" = ""ELAN0001"" + register "desc" = ""ELAN Touchscreen"" + register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "probed" = "1" + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "reset_delay_ms" = "100" + register "reset_off_delay_ms" = "5" + register "has_power_resource" = "1" + register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "stop_off_delay_ms" = "5" + device i2c 49 on end + end + chip drivers/i2c/hid + register "generic.hid" = ""GDIX0000"" + register "generic.desc" = ""Goodix Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "10" + register "generic.reset_off_delay_ms" = "1" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 5d on end + end + chip drivers/generic/gpio_keys + register "name" = ""PENH"" + register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A8)" + register "key.wake" = "GPE0_DW0_08" + register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" + register "key.dev_name" = ""EJCT"" + register "key.linux_code" = "SW_PEN_INSERTED" + register "key.linux_input_type" = "EV_SW" + register "key.label" = ""pen_eject"" + device generic 0 on end + end + end # I2C #1 + device pci 15.2 off end # I2C #2 + device pci 15.3 on + chip drivers/i2c/sx9310 + register "desc" = ""SAR Proximity Sensor"" + register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A0)" + register "speed" = "I2C_SPEED_FAST" + register "uid" = "1" + register "reg_prox_ctrl0" = "0x10" + register "reg_prox_ctrl1" = "0x00" + register "reg_prox_ctrl2" = "0x84" + register "reg_prox_ctrl3" = "0x0e" + register "reg_prox_ctrl4" = "0x07" + register "reg_prox_ctrl5" = "0xc6" + register "reg_prox_ctrl6" = "0x20" + register "reg_prox_ctrl7" = "0x0d" + register "reg_prox_ctrl8" = "0x8d" + register "reg_prox_ctrl9" = "0x43" + register "reg_prox_ctrl10" = "0x1f" + register "reg_prox_ctrl11" = "0x00" + register "reg_prox_ctrl12" = "0x00" + register "reg_prox_ctrl13" = "0x00" + register "reg_prox_ctrl14" = "0x00" + register "reg_prox_ctrl15" = "0x00" + register "reg_prox_ctrl16" = "0x00" + register "reg_prox_ctrl17" = "0x00" + register "reg_prox_ctrl18" = "0x00" + register "reg_prox_ctrl19" = "0x00" + register "reg_sar_ctrl0" = "0x50" + register "reg_sar_ctrl1" = "0x8a" + register "reg_sar_ctrl2" = "0x3c" + device i2c 28 on end + end + end # I2C #3 + device pci 19.0 on + chip drivers/i2c/generic + register "hid" = ""10EC5682"" + register "name" = ""RT58"" + register "desc" = ""Realtek RT5682"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" + register "property_count" = "1" + # Set the jd_src to RT5668_JD1 for jack detection + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-src"" + register "property_list[0].integer" = "1" + device i2c 1a on end + end + end #I2C #4 + device pci 1e.3 on + chip drivers/spi/acpi + register "name" = ""CRFP"" + register "hid" = "ACPI_DT_NAMESPACE_HID" + register "uid" = "1" + register "compat_string" = ""google,cros-ec-spi"" + register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A23_IRQ)" + device spi 1 on end + end # FPMCU + end # GSPI #1 + end + +end
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#2).
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
DO NOT SUBMIT: It's just to study how to create a new variant.
mb/google/hatch: Create Akemi variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 296 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/2
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Patch Set 2:
Dear All,
Regarding this you could check document: https://docs.google.com/document/d/1Mslbp6-d6GYSmCGUu3Nu8fxQ6ezpH52w-_0JlmEL...
Thanks and best regards
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Patch Set 2:
Patch Set 2:
Dear All,
Regarding this you could check document: https://docs.google.com/document/d/1Mslbp6-d6GYSmCGUu3Nu8fxQ6ezpH52w-_0JlmEL...
Thanks and best regards
Tells me I need to ask permission to access this document. Should I request access?
Idwer Vollering has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Patch Set 2: Code-Review-2
Patch Set 2:
Dear All,
Regarding this you could check document: https://docs.google.com/document/d/1Mslbp6-d6GYSmCGUu3Nu8fxQ6ezpH52w-_0JlmEL...
Thanks and best regards
You need to actually share the document.
Did you look at 'git log' and 'git log -p'? And did you look on https://review.coreboot.org/q/status:merged ?
Peichao Li has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Abandoned
Peichao Li has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Martin Roth.
Peichao Li has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Patrick Georgi.
Peichao Li has removed Paul Menzel from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Paul Menzel.
Peichao Li has removed Angel Pons from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Angel Pons.
Peichao Li has restored this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Restored
Hello Idwer Vollering, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#3).
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
DO NOT SUBMIT: It's just to study how to create a new variant.
mb/google/hatch: Create Akemi variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 322 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/3
Peichao Li has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Martin Roth.
Peichao Li has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Patrick Georgi.
Peichao Li has removed Philip Chen from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Philip Chen.
Peichao Li has removed Justin TerAvest from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Justin TerAvest.
Peichao Li has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Abandoned
Idwer Vollering has removed a vote from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed Code-Review-2 by Idwer Vollering vidwer@gmail.com
Peichao Li has restored this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Restored
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#4).
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
DO NOT SUBMIT: It's just to study how to create a new variant.
mb/google/hatch: Create Akemi variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 348 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/4
Peichao Li has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Patrick Georgi.
Peichao Li has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Removed reviewer Martin Roth.
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/4/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/4/src/mainboard/google/hatch/... PS4, Line 27: /* F11 : EMMC_CMD ==> EMMC_CMD */ : PAD_CFG_NF(GPP_F11, UP_20K, DEEP, NF1), : /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ : PAD_CFG_NF(GPP_F12, UP_20K, DEEP, NF1), : /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ : PAD_CFG_NF(GPP_F13, UP_20K, DEEP, NF1), : /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ : PAD_CFG_NF(GPP_F14, UP_20K, DEEP, NF1), : /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ : PAD_CFG_NF(GPP_F15, UP_20K, DEEP, NF1), : /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ : PAD_CFG_NF(GPP_F16, UP_20K, DEEP, NF1), : /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ : PAD_CFG_NF(GPP_F17, UP_20K, DEEP, NF1), : /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ : PAD_CFG_NF(GPP_F18, UP_20K, DEEP, NF1), : /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ : PAD_CFG_NF(GPP_F19, UP_20K, DEEP, NF1), : /* F20 : EMMC_RCLK ==> EMMC_RCLK */ : PAD_CFG_NF(GPP_F20, DN_20K, DEEP, NF1), : /* F21 : EMMC_CLK ==> EMMC_CLK */ : PAD_CFG_NF(GPP_F21, DN_20K, DEEP, NF1), Need configure PAD as well as meet Intel PDG eMMC requirement. Chapter 7.6.3
Hello Paul Ma, Marco Chen, Xingyu Wu, Philip Chen, Marx Wang, Justin TerAvest, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#5).
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
DO NOT SUBMIT: It's just to study how to create a new variant.
mb/google/hatch: Create Akemi variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 357 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/5
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: DO NOT SUBMIT: It's just to study how to create a new variant. ......................................................................
Patch Set 5:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... PS5, Line 73: chip drivers/i2c/hid : register "generic.hid" = ""PNP0C50"" : register "generic.desc" = ""Synaptics Touchpad"" : register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_A21_IRQ)" : register "generic.wake" = "GPE0_DW0_21" : register "generic.probed" = "1" : register "hid_desc_reg_offset" = "0x20" : device i2c 0x2c on end : end Add Synaptics touchpad configuration.
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... PS5, Line 95: device i2c 10 on end slave address is 0x10 and follow our panel setting.
Hello Paul Ma, Marco Chen, Xingyu Wu, Philip Chen, Marx Wang, Justin TerAvest, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#6).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 357 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/6
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 6:
(5 comments)
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 70: default "AKEMI TEST 4326" if BOARD_GOOGLE_AKEMI Can you please put this in alphabetical order here and for other configs below?
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 9: config BOARD_GOOGLE_HATCH_WHL : bool "-> Hatch_whl" : select BOARD_GOOGLE_BASEBOARD_HATCH : select BOARD_ROMSIZE_KB_32768 : select SOC_INTEL_WHISKEYLAKE I believe you need to rebase on ToT
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 33: BOARD_GOOGLE_AKEMI same here
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 38: .rise_time_ns = 50, : .fall_time_ns = 15, Can you please remove these if they are just being copied from hatch?
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 69: register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D21_IRQ)" You need to set the probed property since you have multiple touchpad devices defined here.
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#7).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant.
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 366 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/7
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 7:
Patch Set 6:
(5 comments)
Dear Furuqna,
If no any other concern, please kindly help merge it into coreboot master. Thanks lot.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 7:
(5 comments)
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 39: config CHROMEOS_WIFI_SAR : bool "Enable SAR options for Chrome OS build" : depends on CHROMEOS : select DSAR_ENABLE : select GEO_SAR_ENABLE : select SAR_ENABLE : select USE_SAR : select WIFI_SAR_CBFS : This already merged here: https://review.coreboot.org/c/coreboot/+/34580. You need to sync your repo and rebase.
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 9: : : : : : This was already removed here: https://review.coreboot.org/c/coreboot/+/34432
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 22: gpio_table I haven't looked at the schematics. I will let Philip/Marco confirm this looks good.
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
PS7: Is this file a copy of hatch? If yes, the devices added to i2c and spi buses should probably be removed then. +Philip, +Marco.
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 41: .rise_time_ns = 60, : .fall_time_ns = 25, : }, Are these really valid?
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 41: .rise_time_ns = 60, : .fall_time_ns = 25, : },
Are these really valid?
I think these need to be saved since I2C1 mount touch panel. Maybe tuning timing and make sure meet device vendor Spec.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 8:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG@7 PS8, Line 7: mainboard/google/hatch: create akemi variant. Please remove the dot/period at the end of the commit message summary.
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG@17 PS8, Line 17: Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com Please add a space before the < to separate the name and the address.
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#9).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 357 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/9
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 22: gpio_table
I haven't looked at the schematics. I will let Philip/Marco confirm this looks good.
Dear Furquan, regarding Akemi schematic, you could check https://docs.google.com/spreadsheets/d/1WlPgiNu32DppcMRQglaE99Er7V_jo99k0OVv...
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 9:
(1 comment)
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 22: gpio_table
Dear Furquan, regarding Akemi schematic, you could check https://docs.google. […]
The latest Akemi schematic and layout file has been uploaded to share folder, the link as below. Main board Schematic: AKEMI_CML CHROME_REV1P0_20190801.pdf Sub board schematic:AKEMI_CML_CHROME_DB_REV1P0_0801.pdf Layout file:Akemi Layout_Rev1p0_0731.brd https://drive.google.com/drive/u/0/folders/17ux8bEhZggfL4y_554h7kgGekw_jv9la
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#10).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 365 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/10
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 10:
(4 comments)
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG@11 PS10, Line 11: BUG=none Please file an issue in Google issue tracker to track the status of creating new Akemi firmware including EC and BIOS.
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG@14 PS10, Line 14: /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch It seems to me that the path here is for these private blobs like VBT, fitimage or SAR?
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 3: redundant line
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/include/variant/ec.h:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 4: 2018 2019
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#11).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 364 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/11
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#12).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=b:138879565 TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 364 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/12
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#13).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 388 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/13
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 13:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 33: /* A0 : NC */ : PAD_NC(GPP_A0, NONE), : /* A6 : NC */ : PAD_NC(GPP_A6, NONE), : /* A8 : NC */ : PAD_NC(GPP_A8, NONE), : /* A10 : NC */ : PAD_NC(GPP_A10, NONE), : /* A11 : NC */ : PAD_NC(GPP_A11, NONE), : /* A12 : NC */ : PAD_NC(GPP_A12, NONE), : /* A18 : NC */ : PAD_NC(GPP_A18, NONE), : /* A19 : NC */ : PAD_NC(GPP_A19, NONE), : /* A22 : NC */ : PAD_NC(GPP_A22, NONE), : /* A23 : NC */ : PAD_NC(GPP_A23, NONE), : /* B20 : NC */ : PAD_NC(GPP_B20, NONE), : /* B21 : NC */ : PAD_NC(GPP_B21, NONE), : /* B22 : NC */ : PAD_NC(GPP_B22, NONE), : /* C11 : NC */ : PAD_NC(GPP_C11, NONE), : /* F1 : NC */ : PAD_NC(GPP_F1, NONE), configure GPIO according to real schematic.
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#14).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 388 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/14
Hello Marco Chen, Xingyu Wu, Justin TerAvest, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Paul Ma, Paul Fagerburg, Marco Chen, Philip Chen, Marx Wang, Tim Wawrzynczak, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#15).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 388 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/15
Peichao Li has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Patrick Georgi.
Peichao Li has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Martin Roth.
Peichao Li has removed Furquan Shaikh from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Furquan Shaikh.
Peichao Li has removed Philip Chen from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Philip Chen.
Peichao Li has removed Justin TerAvest from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Justin TerAvest.
Peichao Li has removed Paul Fagerburg from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Paul Fagerburg.
Peichao Li has removed Marco Chen from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Marco Chen.
Peichao Li has removed Tim Wawrzynczak from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Tim Wawrzynczak.
Peichao Li has removed Xingyu Wu from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Xingyu Wu.
Peichao Li has removed Paul Menzel from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Paul Menzel.
Peichao Li has removed Marx Wang from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Marx Wang.
Peichao Li has removed Paul Ma from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Paul Ma.
Peichao Li has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Martin Roth.
Peichao Li has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Patrick Georgi.
Peichao Li has removed Justin TerAvest from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Justin TerAvest.
Peichao Li has removed Marco Chen from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Marco Chen.
Peichao Li has removed Furquan Shaikh from this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Removed reviewer Furquan Shaikh.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#17).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 392 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/17
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17: Code-Review+1
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 22: gpio_table Can you please group and order this list in alphabetical order for GPP_*? It just makes it easy to find if a GPIO is configured here.
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 100: early_gpio_table None of these GPIOs are configured in early_gpio_table[] in baseboard. Override logic just looks for a GPIO in baseboard and finds it in the override tree. So, this won't work.
It is probably better to just copy the early_gpio_table[] from baseboard and make the required changes here. Tim what do you think? We might have to add __weak for base_early_gpio_table in baseboard/gpio.c
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17:
(3 comments)
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG@14 PS10, Line 14: /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
It seems to me that the path here is for these private blobs like VBT, fitimage or SAR?
Yes, they should be in /build/hatch/firmware/
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 5: nit: most use two spaces here
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 100: early_gpio_table
None of these GPIOs are configured in early_gpio_table[] in baseboard. […]
I see two options: we could either keep adding PAD_NC() in the base_early_gpio_table for variants that need to add new early GPIOs (which for this family of devices, will only be the MEM_STRAP_* pins). The other option is what you suggest, change the baseboard's implementation to weak and allow variants to provide an override function instead. That probably makes more sense, and is less error-prone. Actually, thinking more, I'd rather not have the baseboard provide a weak function and just enforce that each variant provides its early_gpio_table separately. I can work on a patch for that.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
PS17: I'd rather for the initial commit if you just put in a mostly empty devicetree; otherwise stuff may get left in for a while before it's noticed. All you should need for bringup would be the common_soc_config.gspi[0].early_init and .speed_mhz.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 100: early_gpio_table
Actually, thinking more, I'd rather not have the baseboard provide a weak function and just enforce that each variant provides its early_gpio_table separately. I can work on a patch for that.
SGTM
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 17:
Peichao, can you rebase on top of https://review.coreboot.org/c/coreboot/+/34782 ?
Hello Paul Fagerburg, Marco Chen, Justin TerAvest, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#18).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 392 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/18
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 19:
Patch Set 17:
Peichao, can you rebase on top of https://review.coreboot.org/c/coreboot/+/34782 ?
Done, please kindly check.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 19:
Sorry Peichao, because of the rebase, there are a few changes that need to be made: 1) override_early_gpio_table() is now variant_early_gpio_table() AND 2) it needs to contain ALL of the early GPIOs needed by the board, because of a quirk in the way the override- code works. I haven't taken a look at the Akemi schematic yet, but depending on how closely you followed the reference schematic, these are probably the items you need to add to the early_gpio_table:
/* A12 : FPMCU_RST_ODL */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* B15 : H1_SLAVE_SPI_CS_L */ PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), /* B16 : H1_SLAVE_SPI_CLK */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), /* B17 : H1_SLAVE_SPI_MISO_R */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), /* C14 : BT_DISABLE_L */ PAD_CFG_GPO(GPP_C14, 0, DEEP), /* PCH_WP_OD */ PAD_CFG_GPI(GPP_C20, NONE, DEEP), /* C21 : H1_PCH_INT_ODL */ PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), /* C23 : WLAN_PE_RST# */ PAD_CFG_GPO(GPP_C23, 1, DEEP), /* E1 : M2_SSD_PEDET */ PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), /* E5 : SATA_DEVSLP1 */ PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), /* F2 : MEM_CH_SEL */ PAD_CFG_GPI(GPP_F2, NONE, PLTRST), /* F11 : PCH_MEM_STRAP2 */ PAD_CFG_GPI(GPP_F11, NONE, PLTRST), /* F20 : PCH_MEM_STRAP0 */ PAD_CFG_GPI(GPP_F20, NONE, PLTRST), /* F21 : PCH_MEM_STRAP1 */ PAD_CFG_GPI(GPP_F21, NONE, PLTRST), /* F22 : PCH_MEM_STRAP3 */ PAD_CFG_GPI(GPP_F22, NONE, PLTRST),
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 19:
Patch Set 19:
Sorry Peichao, because of the rebase, there are a few changes that need to be made:
override_early_gpio_table() is now variant_early_gpio_table() AND
it needs to contain ALL of the early GPIOs needed by the board, because of a quirk in the way the override- code works. I haven't taken a look at the Akemi schematic yet, but depending on how closely you followed the reference schematic, these are probably the items you need to add to the early_gpio_table:
/* A12 : FPMCU_RST_ODL */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* B15 : H1_SLAVE_SPI_CS_L */ PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), /* B16 : H1_SLAVE_SPI_CLK */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), /* B17 : H1_SLAVE_SPI_MISO_R */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), /* C14 : BT_DISABLE_L */ PAD_CFG_GPO(GPP_C14, 0, DEEP), /* PCH_WP_OD */ PAD_CFG_GPI(GPP_C20, NONE, DEEP), /* C21 : H1_PCH_INT_ODL */ PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), /* C23 : WLAN_PE_RST# */ PAD_CFG_GPO(GPP_C23, 1, DEEP), /* E1 : M2_SSD_PEDET */ PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), /* E5 : SATA_DEVSLP1 */ PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), /* F2 : MEM_CH_SEL */ PAD_CFG_GPI(GPP_F2, NONE, PLTRST), /* F11 : PCH_MEM_STRAP2 */ PAD_CFG_GPI(GPP_F11, NONE, PLTRST), /* F20 : PCH_MEM_STRAP0 */ PAD_CFG_GPI(GPP_F20, NONE, PLTRST), /* F21 : PCH_MEM_STRAP1 */ PAD_CFG_GPI(GPP_F21, NONE, PLTRST), /* F22 : PCH_MEM_STRAP3 */ PAD_CFG_GPI(GPP_F22, NONE, PLTRST),
Copy that, let me do it
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 19:
Patch Set 19:
Patch Set 19:
Sorry Peichao, because of the rebase, there are a few changes that need to be made:
override_early_gpio_table() is now variant_early_gpio_table() AND
it needs to contain ALL of the early GPIOs needed by the board, because of a quirk in the way the override- code works. I haven't taken a look at the Akemi schematic yet, but depending on how closely you followed the reference schematic, these are probably the items you need to add to the early_gpio_table:
/* A12 : FPMCU_RST_ODL */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* B15 : H1_SLAVE_SPI_CS_L */ PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), /* B16 : H1_SLAVE_SPI_CLK */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), /* B17 : H1_SLAVE_SPI_MISO_R */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), /* C14 : BT_DISABLE_L */ PAD_CFG_GPO(GPP_C14, 0, DEEP), /* PCH_WP_OD */ PAD_CFG_GPI(GPP_C20, NONE, DEEP), /* C21 : H1_PCH_INT_ODL */ PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), /* C23 : WLAN_PE_RST# */ PAD_CFG_GPO(GPP_C23, 1, DEEP), /* E1 : M2_SSD_PEDET */ PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), /* E5 : SATA_DEVSLP1 */ PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), /* F2 : MEM_CH_SEL */ PAD_CFG_GPI(GPP_F2, NONE, PLTRST), /* F11 : PCH_MEM_STRAP2 */ PAD_CFG_GPI(GPP_F11, NONE, PLTRST), /* F20 : PCH_MEM_STRAP0 */ PAD_CFG_GPI(GPP_F20, NONE, PLTRST), /* F21 : PCH_MEM_STRAP1 */ PAD_CFG_GPI(GPP_F21, NONE, PLTRST), /* F22 : PCH_MEM_STRAP3 */ PAD_CFG_GPI(GPP_F22, NONE, PLTRST),
Copy that, let me do it
Oops, I mean minus the PCH_MEM_STRAP pins; they don't need to be included in the early_gpio_table.
Hello Paul Fagerburg, Marco Chen, Justin TerAvest, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#20).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 440 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/20
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 20:
Patch Set 19:
Patch Set 19:
Patch Set 19:
Sorry Peichao, because of the rebase, there are a few changes that need to be made:
override_early_gpio_table() is now variant_early_gpio_table() AND
it needs to contain ALL of the early GPIOs needed by the board, because of a quirk in the way the override- code works. I haven't taken a look at the Akemi schematic yet, but depending on how closely you followed the reference schematic, these are probably the items you need to add to the early_gpio_table:
/* A12 : FPMCU_RST_ODL */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* B15 : H1_SLAVE_SPI_CS_L */ PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), /* B16 : H1_SLAVE_SPI_CLK */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), /* B17 : H1_SLAVE_SPI_MISO_R */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), /* C14 : BT_DISABLE_L */ PAD_CFG_GPO(GPP_C14, 0, DEEP), /* PCH_WP_OD */ PAD_CFG_GPI(GPP_C20, NONE, DEEP), /* C21 : H1_PCH_INT_ODL */ PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), /* C23 : WLAN_PE_RST# */ PAD_CFG_GPO(GPP_C23, 1, DEEP), /* E1 : M2_SSD_PEDET */ PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), /* E5 : SATA_DEVSLP1 */ PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), /* F2 : MEM_CH_SEL */ PAD_CFG_GPI(GPP_F2, NONE, PLTRST), /* F11 : PCH_MEM_STRAP2 */ PAD_CFG_GPI(GPP_F11, NONE, PLTRST), /* F20 : PCH_MEM_STRAP0 */ PAD_CFG_GPI(GPP_F20, NONE, PLTRST), /* F21 : PCH_MEM_STRAP1 */ PAD_CFG_GPI(GPP_F21, NONE, PLTRST), /* F22 : PCH_MEM_STRAP3 */ PAD_CFG_GPI(GPP_F22, NONE, PLTRST),
Copy that, let me do it
Oops, I mean minus the PCH_MEM_STRAP pins; they don't need to be included in the early_gpio_table.
We will use below GPIOs for memory strap. your mean don't include them in the early_gpio_table? right? Thanks. /* F3 : MEM_STRAP_3 */ PAD_CFG_GPI(GPP_F3, NONE, PLTRST), /* F10 : MEM_STRAP_2 */ PAD_CFG_GPI(GPP_F10, NONE, PLTRST), /* H19 : MEM_STRAP_0 */ PAD_CFG_GPI(GPP_H19, NONE, PLTRST), /* H22 : MEM_STRAP_1 */ PAD_CFG_GPI(GPP_H22, NONE, PLTRST),
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 20:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... PS20, Line 125: /* F11 : EMMC_CMD ==> EMMC_CMD */ : PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), : /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ : PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), : /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ : PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), : /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ : PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), : /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ : PAD_CFG_NF(GPP_F15, NONE, DEEP, NF1), : /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ : PAD_CFG_NF(GPP_F16, NONE, DEEP, NF1), : /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ : PAD_CFG_NF(GPP_F17, NONE, DEEP, NF1), : /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ : PAD_CFG_NF(GPP_F18, NONE, DEEP, NF1), : /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ : PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), : /* F20 : EMMC_RCLK ==> EMMC_RCLK */ : PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), : /* F21 : EMMC_CLK ==> EMMC_CLK */ : PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), : /* F22 : EMMC_RESET# ==> EMMC_RST_L */ : PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1), We will apply eMMC in our Akmei board.
Akemi schematic like: https://partnerissuetracker.corp.google.com/issues/138807931 comment#4. Thanks.
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... PS20, Line 149: /* F3 : MEM_STRAP_3 */ : PAD_CFG_GPI(GPP_F3, NONE, PLTRST), : /* F10 : MEM_STRAP_2 */ : PAD_CFG_GPI(GPP_F10, NONE, PLTRST), : /* H19 : MEM_STRAP_0 */ : PAD_CFG_GPI(GPP_H19, NONE, PLTRST), : /* H22 : MEM_STRAP_1 */ : PAD_CFG_GPI(GPP_H22, NONE, PLTRST), In the Akmei, these GPIOS will be used as memory strap pins.
Hello Paul Fagerburg, Marco Chen, Philip Chen, Justin TerAvest, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#21).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 432 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/21
Hello Paul Fagerburg, Marco Chen, Philip Chen, Justin TerAvest, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#22).
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
mainboard/google/hatch: create akemi variant.
This is based on the hatch variant
BUG=none TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 440 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/22
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 22:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/22//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/22//COMMIT_MSG@7 PS22, Line 7: mainboard/google/hatch: create akemi variant. Please use:
mb/google/hatch: Create Akema variant
Commit messages summaries should not have a dot/period at the end.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mainboard/google/hatch: create akemi variant. ......................................................................
Patch Set 22:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... PS22, Line 125: /* F3 : MEM_STRAP_3 */ : PAD_CFG_GPI(GPP_F3, NONE, PLTRST), : /* F10 : MEM_STRAP_2 */ : PAD_CFG_GPI(GPP_F10, NONE, PLTRST), The MEM_STRAP_* pins are not required to be in the early_gpio_table. Can you remove all 4 and then add this comment above the declaration?
/* * GPIOs configured before ramstage * Note: the Hatch platform's romstage will configure * the MEM_STRAP_* (a.k.a GPIO_MEM_CONFIG_*) pins * as inputs before it reads them, so they are not * needed in this table. */
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... PS22, Line 153: /* H19 : MEM_STRAP_0 */ : PAD_CFG_GPI(GPP_H19, NONE, PLTRST), : /* H22 : MEM_STRAP_1 */ : PAD_CFG_GPI(GPP_H22, NONE, PLTRST), See above, these are not required
Hello Paul Fagerburg, Marco Chen, Philip Chen, Justin TerAvest, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Furquan Shaikh, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33824
to look at the new patch set (#23).
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
mb/google/hatch: Create Akemi variant
This is based on the hatch variant
BUG=b:138879565 TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 438 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/33824/23
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... PS22, Line 125: /* F3 : MEM_STRAP_3 */ : PAD_CFG_GPI(GPP_F3, NONE, PLTRST), : /* F10 : MEM_STRAP_2 */ : PAD_CFG_GPI(GPP_F10, NONE, PLTRST),
The MEM_STRAP_* pins are not required to be in the early_gpio_table. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/22/src/mainboard/google/hatch... PS22, Line 153: /* H19 : MEM_STRAP_0 */ : PAD_CFG_GPI(GPP_H19, NONE, PLTRST), : /* H22 : MEM_STRAP_1 */ : PAD_CFG_GPI(GPP_H22, NONE, PLTRST),
See above, these are not required
Done
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33824/22//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/22//COMMIT_MSG@7 PS22, Line 7: mainboard/google/hatch: create akemi variant.
Please use: […]
Done
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(2 comments)
Patch Set 20:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... PS20, Line 125: /* F11 : EMMC_CMD ==> EMMC_CMD */ : PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), : /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ : PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), : /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ : PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), : /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ : PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), : /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ : PAD_CFG_NF(GPP_F15, NONE, DEEP, NF1), : /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ : PAD_CFG_NF(GPP_F16, NONE, DEEP, NF1), : /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ : PAD_CFG_NF(GPP_F17, NONE, DEEP, NF1), : /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ : PAD_CFG_NF(GPP_F18, NONE, DEEP, NF1), : /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ : PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), : /* F20 : EMMC_RCLK ==> EMMC_RCLK */ : PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), : /* F21 : EMMC_CLK ==> EMMC_CLK */ : PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), : /* F22 : EMMC_RESET# ==> EMMC_RST_L */ : PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1),
We will apply eMMC in our Akmei board. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/20/src/mainboard/google/hatch... PS20, Line 149: /* F3 : MEM_STRAP_3 */ : PAD_CFG_GPI(GPP_F3, NONE, PLTRST), : /* F10 : MEM_STRAP_2 */ : PAD_CFG_GPI(GPP_F10, NONE, PLTRST), : /* H19 : MEM_STRAP_0 */ : PAD_CFG_GPI(GPP_H19, NONE, PLTRST), : /* H22 : MEM_STRAP_1 */ : PAD_CFG_GPI(GPP_H22, NONE, PLTRST),
In the Akmei, these GPIOS will be used as memory strap pins.
Done
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 22: gpio_table
Can you please group and order this list in alphabetical order for GPP_*? It just makes it easy to f […]
Done
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 100: early_gpio_table
Actually, thinking more, I'd rather not have the baseboard provide a weak function and just enforc […]
Done
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(2 comments)
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 22: gpio_table
Done
Done
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... PS17, Line 100: early_gpio_table
Done
Done
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23:
(21 comments)
Patch Set 19:
Patch Set 19:
Patch Set 19:
Sorry Peichao, because of the rebase, there are a few changes that need to be made:
override_early_gpio_table() is now variant_early_gpio_table() AND
it needs to contain ALL of the early GPIOs needed by the board, because of a quirk in the way the override- code works. I haven't taken a look at the Akemi schematic yet, but depending on how closely you followed the reference schematic, these are probably the items you need to add to the early_gpio_table:
/* A12 : FPMCU_RST_ODL */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* B15 : H1_SLAVE_SPI_CS_L */ PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), /* B16 : H1_SLAVE_SPI_CLK */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), /* B17 : H1_SLAVE_SPI_MISO_R */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), /* B18 : H1_SLAVE_SPI_MOSI_R */ PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), /* C14 : BT_DISABLE_L */ PAD_CFG_GPO(GPP_C14, 0, DEEP), /* PCH_WP_OD */ PAD_CFG_GPI(GPP_C20, NONE, DEEP), /* C21 : H1_PCH_INT_ODL */ PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), /* C23 : WLAN_PE_RST# */ PAD_CFG_GPO(GPP_C23, 1, DEEP), /* E1 : M2_SSD_PEDET */ PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), /* E5 : SATA_DEVSLP1 */ PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), /* F2 : MEM_CH_SEL */ PAD_CFG_GPI(GPP_F2, NONE, PLTRST), /* F11 : PCH_MEM_STRAP2 */ PAD_CFG_GPI(GPP_F11, NONE, PLTRST), /* F20 : PCH_MEM_STRAP0 */ PAD_CFG_GPI(GPP_F20, NONE, PLTRST), /* F21 : PCH_MEM_STRAP1 */ PAD_CFG_GPI(GPP_F21, NONE, PLTRST), /* F22 : PCH_MEM_STRAP3 */ PAD_CFG_GPI(GPP_F22, NONE, PLTRST),
Copy that, let me do it
Oops, I mean minus the PCH_MEM_STRAP pins; they don't need to be included in the early_gpio_table.
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG@7 PS8, Line 7: mainboard/google/hatch: create akemi variant.
Please remove the dot/period at the end of the commit message summary.
Done
https://review.coreboot.org/c/coreboot/+/33824/8//COMMIT_MSG@17 PS8, Line 17: Signed-off-by: Peichao Wangpeichao.wang@bitland.corp-partner.google.com
Please add a space before the < to separate the name and the address.
Done
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG@11 PS10, Line 11: BUG=none
Please file an issue in Google issue tracker to track the status of creating new Akemi firmware incl […]
Done
https://review.coreboot.org/c/coreboot/+/33824/10//COMMIT_MSG@14 PS10, Line 14: /build/hatch/firmware/coreboot-private/3rdparty/blobs/baseboard/hatch
Yes, they should be in /build/hatch/firmware/
Done
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 70: default "AKEMI TEST 4326" if BOARD_GOOGLE_AKEMI
Can you please put this in alphabetical order here and for other configs below?
Done
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 39: config CHROMEOS_WIFI_SAR : bool "Enable SAR options for Chrome OS build" : depends on CHROMEOS : select DSAR_ENABLE : select GEO_SAR_ENABLE : select SAR_ENABLE : select USE_SAR : select WIFI_SAR_CBFS :
This already merged here: https://review.coreboot.org/c/coreboot/+/34580. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 9: config BOARD_GOOGLE_HATCH_WHL : bool "-> Hatch_whl" : select BOARD_GOOGLE_BASEBOARD_HATCH : select BOARD_ROMSIZE_KB_32768 : select SOC_INTEL_WHISKEYLAKE
I believe you need to rebase on ToT
Done
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 33: BOARD_GOOGLE_AKEMI
same here
Done
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 9: : : : : :
This was already removed here: https://review.coreboot. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 3:
redundant line
Done
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 5:
nit: most use two spaces here
Done
https://review.coreboot.org/c/coreboot/+/33824/4/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/4/src/mainboard/google/hatch/... PS4, Line 27: /* F11 : EMMC_CMD ==> EMMC_CMD */ : PAD_CFG_NF(GPP_F11, UP_20K, DEEP, NF1), : /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ : PAD_CFG_NF(GPP_F12, UP_20K, DEEP, NF1), : /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ : PAD_CFG_NF(GPP_F13, UP_20K, DEEP, NF1), : /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ : PAD_CFG_NF(GPP_F14, UP_20K, DEEP, NF1), : /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ : PAD_CFG_NF(GPP_F15, UP_20K, DEEP, NF1), : /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ : PAD_CFG_NF(GPP_F16, UP_20K, DEEP, NF1), : /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ : PAD_CFG_NF(GPP_F17, UP_20K, DEEP, NF1), : /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ : PAD_CFG_NF(GPP_F18, UP_20K, DEEP, NF1), : /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ : PAD_CFG_NF(GPP_F19, UP_20K, DEEP, NF1), : /* F20 : EMMC_RCLK ==> EMMC_RCLK */ : PAD_CFG_NF(GPP_F20, DN_20K, DEEP, NF1), : /* F21 : EMMC_CLK ==> EMMC_CLK */ : PAD_CFG_NF(GPP_F21, DN_20K, DEEP, NF1),
Need configure PAD as well as meet Intel PDG eMMC requirement. Chapter 7.6. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... PS7, Line 22: gpio_table
The latest Akemi schematic and layout file has been uploaded to share folder, the link as below. […]
Done
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/gpio.c:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 33: /* A0 : NC */ : PAD_NC(GPP_A0, NONE), : /* A6 : NC */ : PAD_NC(GPP_A6, NONE), : /* A8 : NC */ : PAD_NC(GPP_A8, NONE), : /* A10 : NC */ : PAD_NC(GPP_A10, NONE), : /* A11 : NC */ : PAD_NC(GPP_A11, NONE), : /* A12 : NC */ : PAD_NC(GPP_A12, NONE), : /* A18 : NC */ : PAD_NC(GPP_A18, NONE), : /* A19 : NC */ : PAD_NC(GPP_A19, NONE), : /* A22 : NC */ : PAD_NC(GPP_A22, NONE), : /* A23 : NC */ : PAD_NC(GPP_A23, NONE), : /* B20 : NC */ : PAD_NC(GPP_B20, NONE), : /* B21 : NC */ : PAD_NC(GPP_B21, NONE), : /* B22 : NC */ : PAD_NC(GPP_B22, NONE), : /* C11 : NC */ : PAD_NC(GPP_C11, NONE), : /* F1 : NC */ : PAD_NC(GPP_F1, NONE),
configure GPIO according to real schematic.
Done
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/include/variant/ec.h:
https://review.coreboot.org/c/coreboot/+/33824/10/src/mainboard/google/hatch... PS10, Line 4: 2018
2019
Done
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... PS5, Line 73: chip drivers/i2c/hid : register "generic.hid" = ""PNP0C50"" : register "generic.desc" = ""Synaptics Touchpad"" : register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_A21_IRQ)" : register "generic.wake" = "GPE0_DW0_21" : register "generic.probed" = "1" : register "hid_desc_reg_offset" = "0x20" : device i2c 0x2c on end : end
Add Synaptics touchpad configuration.
Done
https://review.coreboot.org/c/coreboot/+/33824/5/src/mainboard/google/hatch/... PS5, Line 95: device i2c 10 on end
slave address is 0x10 and follow our panel setting.
Done
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 38: .rise_time_ns = 50, : .fall_time_ns = 15,
Can you please remove these if they are just being copied from hatch?
Done
https://review.coreboot.org/c/coreboot/+/33824/6/src/mainboard/google/hatch/... PS6, Line 69: register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D21_IRQ)"
You need to set the probed property since you have multiple touchpad devices defined here.
Done
https://review.coreboot.org/c/coreboot/+/33824/7/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
PS7:
Is this file a copy of hatch? If yes, the devices added to i2c and spi buses should probably be remo […]
Done
https://review.coreboot.org/c/coreboot/+/33824/17/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/akemi/overridetree.cb:
PS17:
I'd rather for the initial commit if you just put in a mostly empty devicetree; otherwise stuff may […]
Done
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23: Code-Review+2
Peichao Li has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
Patch Set 23: Code-Review+1
Furquan Shaikh has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/33824 )
Change subject: mb/google/hatch: Create Akemi variant ......................................................................
mb/google/hatch: Create Akemi variant
This is based on the hatch variant
BUG=b:138879565 TEST=FW_NAME="akemi" emerge-hatch coreboot depthcharge intel-cmlfsp chromeos-bootimage look for image-akemi.*.bin generated under the /build/hatch/firmware/
Change-Id: I1a868839e2c598f8052d37c99713bc58b21e887c Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/33824 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Furquan Shaikh furquan@google.com --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/akemi/Makefile.inc A src/mainboard/google/hatch/variants/akemi/gpio.c A src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/akemi/include/variant/ec.h A src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h A src/mainboard/google/hatch/variants/akemi/overridetree.cb 8 files changed, 438 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved Peichao Li: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig index 5991b93..5c7c267 100644 --- a/src/mainboard/google/hatch/Kconfig +++ b/src/mainboard/google/hatch/Kconfig @@ -71,6 +71,7 @@ config GBB_HWID string depends on CHROMEOS + default "AKEMI TEST 4326" if BOARD_GOOGLE_AKEMI default "HATCH TEST 1823" if BOARD_GOOGLE_HATCH default "HELIOS TEST 0878" if BOARD_GOOGLE_HELIOS default "KINDRED TEST 2636" if BOARD_GOOGLE_KINDRED @@ -86,6 +87,7 @@
config MAINBOARD_PART_NUMBER string + default "Akemi" if BOARD_GOOGLE_AKEMI default "Hatch" if BOARD_GOOGLE_HATCH default "Helios" if BOARD_GOOGLE_HELIOS default "Kindred" if BOARD_GOOGLE_KINDRED @@ -109,6 +111,7 @@
config VARIANT_DIR string + default "akemi" if BOARD_GOOGLE_AKEMI default "hatch" if BOARD_GOOGLE_HATCH default "helios" if BOARD_GOOGLE_HELIOS default "kindred" if BOARD_GOOGLE_KINDRED diff --git a/src/mainboard/google/hatch/Kconfig.name b/src/mainboard/google/hatch/Kconfig.name index 3b5d3f2..e8748e3 100644 --- a/src/mainboard/google/hatch/Kconfig.name +++ b/src/mainboard/google/hatch/Kconfig.name @@ -1,5 +1,11 @@ comment "Hatch"
+config BOARD_GOOGLE_AKEMI + bool "-> Akemi" + select BOARD_GOOGLE_BASEBOARD_HATCH + select BOARD_ROMSIZE_KB_16384 + select SOC_INTEL_COMETLAKE + config BOARD_GOOGLE_HATCH bool "-> Hatch" select BOARD_GOOGLE_BASEBOARD_HATCH diff --git a/src/mainboard/google/hatch/variants/akemi/Makefile.inc b/src/mainboard/google/hatch/variants/akemi/Makefile.inc new file mode 100644 index 0000000..2f590bf --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/Makefile.inc @@ -0,0 +1,23 @@ +## This file is part of the coreboot project. +## +## Copyright 2019 Google LLC +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + +SPD_SOURCES = 4G_2400 # 0b000 +SPD_SOURCES += empty_ddr4 # 0b001 +SPD_SOURCES += 8G_2400 # 0b010 +SPD_SOURCES += 8G_2666 # 0b011 +SPD_SOURCES += 16G_2400 # 0b100 +SPD_SOURCES += 16G_2666 # 0b101 + +bootblock-y += gpio.c +ramstage-y += gpio.c diff --git a/src/mainboard/google/hatch/variants/akemi/gpio.c b/src/mainboard/google/hatch/variants/akemi/gpio.c new file mode 100644 index 0000000..5a58839 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/gpio.c @@ -0,0 +1,161 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2019 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the + * GNU General Public License for more details. + */ + +#include <arch/acpi.h> +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <commonlib/helpers.h> +#include <console/console.h> + +static const struct pad_config gpio_table[] = { + /* A0 : NC */ + PAD_NC(GPP_A0, NONE), + /* A6 : NC */ + PAD_NC(GPP_A6, NONE), + /* A8 : NC */ + PAD_NC(GPP_A8, NONE), + /* A10 : NC */ + PAD_NC(GPP_A10, NONE), + /* A11 : NC */ + PAD_NC(GPP_A11, NONE), + /* A12 : NC */ + PAD_NC(GPP_A12, NONE), + /* A18 : NC */ + PAD_NC(GPP_A18, NONE), + /* A19 : NC */ + PAD_NC(GPP_A19, NONE), + /* A22 : NC */ + PAD_NC(GPP_A22, NONE), + /* A23 : NC */ + PAD_NC(GPP_A23, NONE), + /* B20 : NC */ + PAD_NC(GPP_B20, NONE), + /* B21 : NC */ + PAD_NC(GPP_B21, NONE), + /* B22 : NC */ + PAD_NC(GPP_B22, NONE), + /* C11 : NC */ + PAD_NC(GPP_C11, NONE), + /* C15 : NC */ + PAD_NC(GPP_C15, NONE), + /* F1 : NC */ + PAD_NC(GPP_F1, NONE), + /* F3 : MEM_STRAP_3 */ + PAD_CFG_GPI(GPP_F3, NONE, PLTRST), + /* F10 : MEM_STRAP_2 */ + PAD_CFG_GPI(GPP_F10, NONE, PLTRST), + /* F11 : EMMC_CMD ==> EMMC_CMD */ + PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), + /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ + PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), + /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ + PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), + /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ + PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), + /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ + PAD_CFG_NF(GPP_F15, NONE, DEEP, NF1), + /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ + PAD_CFG_NF(GPP_F16, NONE, DEEP, NF1), + /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ + PAD_CFG_NF(GPP_F17, NONE, DEEP, NF1), + /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ + PAD_CFG_NF(GPP_F18, NONE, DEEP, NF1), + /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ + PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), + /* F20 : EMMC_RCLK ==> EMMC_RCLK */ + PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), + /* F21 : EMMC_CLK ==> EMMC_CLK */ + PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), + /* F22 : EMMC_RESET# ==> EMMC_RST_L */ + PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1), + /* H6 : NC */ + PAD_NC(GPP_H6, NONE), + /* H7 : NC */ + PAD_NC(GPP_H7, NONE), + /* H19 : MEM_STRAP_0 */ + PAD_CFG_GPI(GPP_H19, NONE, PLTRST), + /* H22 : MEM_STRAP_1 */ + PAD_CFG_GPI(GPP_H22, NONE, PLTRST), +}; + +const struct pad_config *override_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(gpio_table); + return gpio_table; +} + +/* + * GPIOs configured before ramstage + * Note: the Hatch platform's romstage will configure + * the MEM_STRAP_* (a.k.a GPIO_MEM_CONFIG_*) pins + * as inputs before it reads them, so they are not + * needed in this table. + */ +static const struct pad_config early_gpio_table[] = { + /* A12 : NC */ + PAD_NC(GPP_A12, NONE), + /* B15 : H1_SLAVE_SPI_CS_L */ + PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), + /* B16 : H1_SLAVE_SPI_CLK */ + PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), + /* B17 : H1_SLAVE_SPI_MISO_R */ + PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), + /* B18 : H1_SLAVE_SPI_MOSI_R */ + PAD_CFG_NF(GPP_B18, NONE, DEEP, NF1), + /* C14 : BT_DISABLE_L */ + PAD_CFG_GPO(GPP_C14, 0, DEEP), + /* PCH_WP_OD */ + PAD_CFG_GPI(GPP_C20, NONE, DEEP), + /* C21 : H1_PCH_INT_ODL */ + PAD_CFG_GPI_APIC(GPP_C21, NONE, PLTRST, LEVEL, INVERT), + /* C23 : WLAN_PE_RST# */ + PAD_CFG_GPO(GPP_C23, 1, DEEP), + /* E1 : M2_SSD_PEDET */ + PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), + /* E5 : SATA_DEVSLP1 */ + PAD_CFG_NF(GPP_E5, NONE, PLTRST, NF1), + /* F2 : MEM_CH_SEL */ + PAD_CFG_GPI(GPP_F2, NONE, PLTRST), + /* F11 : EMMC_CMD ==> EMMC_CMD */ + PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), + /* F12 : EMMC_DATA0 ==> EMMC_DAT0 */ + PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), + /* F13 : EMMC_DATA1 ==> EMMC_DAT1 */ + PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), + /* F14 : EMMC_DATA2 ==> EMMC_DAT2 */ + PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), + /* F15 : EMMC_DATA3 ==> EMMC_DAT3 */ + PAD_CFG_NF(GPP_F15, NONE, DEEP, NF1), + /* F16 : EMMC_DATA4 ==> EMMC_DAT4 */ + PAD_CFG_NF(GPP_F16, NONE, DEEP, NF1), + /* F17 : EMMC_DATA5 ==> EMMC_DAT5 */ + PAD_CFG_NF(GPP_F17, NONE, DEEP, NF1), + /* F18 : EMMC_DATA6 ==> EMMC_DAT6 */ + PAD_CFG_NF(GPP_F18, NONE, DEEP, NF1), + /* F19 : EMMC_DATA7 ==> EMMC_DAT7 */ + PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), + /* F20 : EMMC_RCLK ==> EMMC_RCLK */ + PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), + /* F21 : EMMC_CLK ==> EMMC_CLK */ + PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), + /* F22 : EMMC_RESET# ==> EMMC_RST_L */ + PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1), +}; + +const struct pad_config *variant_early_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(early_gpio_table); + return early_gpio_table; +} diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl b/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl new file mode 100644 index 0000000..31f72b3 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/acpi/dptf.asl @@ -0,0 +1,16 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 Intel Corporation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <baseboard/acpi/dptf.asl> diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h b/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h new file mode 100644 index 0000000..768987d --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/ec.h @@ -0,0 +1,21 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2019 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef VARIANT_EC_H +#define VARIANT_EC_H + +#include <baseboard/ec.h> + +#endif diff --git a/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h b/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h new file mode 100644 index 0000000..b257589 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/include/variant/gpio.h @@ -0,0 +1,27 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2018 Google LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the + * GNU General Public License for more details. + */ + +#ifndef VARIANT_GPIO_H +#define VARIANT_GPIO_H + +#include <baseboard/gpio.h> + +/* Memory configuration board straps */ +#define GPIO_MEM_CONFIG_0 GPP_H19 +#define GPIO_MEM_CONFIG_1 GPP_H22 +#define GPIO_MEM_CONFIG_2 GPP_F10 +#define GPIO_MEM_CONFIG_3 GPP_F3 + +#endif diff --git a/src/mainboard/google/hatch/variants/akemi/overridetree.cb b/src/mainboard/google/hatch/variants/akemi/overridetree.cb new file mode 100644 index 0000000..88d33e7 --- /dev/null +++ b/src/mainboard/google/hatch/variants/akemi/overridetree.cb @@ -0,0 +1,181 @@ +chip soc/intel/cannonlake + + register "SerialIoDevMode" = "{ + [PchSerialIoIndexI2C0] = PchSerialIoPci, + [PchSerialIoIndexI2C1] = PchSerialIoPci, + [PchSerialIoIndexI2C2] = PchSerialIoPci, + [PchSerialIoIndexI2C3] = PchSerialIoPci, + [PchSerialIoIndexI2C4] = PchSerialIoPci, + [PchSerialIoIndexI2C5] = PchSerialIoPci, + [PchSerialIoIndexSPI0] = PchSerialIoPci, + [PchSerialIoIndexSPI1] = PchSerialIoPci, + [PchSerialIoIndexSPI2] = PchSerialIoDisabled, + [PchSerialIoIndexUART0] = PchSerialIoSkipInit, + [PchSerialIoIndexUART1] = PchSerialIoDisabled, + [PchSerialIoIndexUART2] = PchSerialIoDisabled, + }" + + # Intel Common SoC Config + #+-------------------+---------------------------+ + #| Field | Value | + #+-------------------+---------------------------+ + #| GSPI0 | cr50 TPM. Early init is | + #| | required to set up a BAR | + #| | for TPM communication | + #| | before memory is up | + #| GSPI1 | FP MCU | + #| I2C0 | Touchpad | + #| I2C1 | Touch screen | + #| I2C4 | Audio | + #+-------------------+---------------------------+ + register "common_soc_config" = "{ + .gspi[0] = { + .speed_mhz = 1, + .early_init = 1, + }, + .i2c[0] = { + .speed = I2C_SPEED_FAST, + }, + .i2c[1] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 60, + .fall_time_ns = 25, + }, + .i2c[3] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 150, + .fall_time_ns = 150, + }, + .i2c[4] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 120, + .fall_time_ns = 120, + }, + }" + + # GPIO for SD card detect + register "sdcard_cd_gpio" = "vSD3_CD_B" + + # Enable eMMC HS400 + register "ScsEmmcHs400Enabled" = "1" + + device domain 0 on + device pci 15.0 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D21_IRQ)" + register "wake" = "GPE0_DW0_21" + register "probed" = "1" + device i2c 15 on end + end + chip drivers/i2c/hid + register "generic.hid" = ""PNP0C50"" + register "generic.desc" = ""Synaptics Touchpad"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_A21_IRQ)" + register "generic.wake" = "GPE0_DW0_21" + register "generic.probed" = "1" + register "hid_desc_reg_offset" = "0x20" + device i2c 0x2c on end + end + end # I2C #0 + device pci 15.1 on + chip drivers/i2c/generic + register "hid" = ""ELAN0001"" + register "desc" = ""ELAN Touchscreen"" + register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "probed" = "1" + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "reset_delay_ms" = "100" + register "reset_off_delay_ms" = "5" + register "has_power_resource" = "1" + register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "stop_off_delay_ms" = "5" + device i2c 10 on end + end + chip drivers/i2c/hid + register "generic.hid" = ""GDIX0000"" + register "generic.desc" = ""Goodix Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "10" + register "generic.reset_off_delay_ms" = "1" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 5d on end + end + chip drivers/generic/gpio_keys + register "name" = ""PENH"" + register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A8)" + register "key.wake" = "GPE0_DW0_08" + register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" + register "key.dev_name" = ""EJCT"" + register "key.linux_code" = "SW_PEN_INSERTED" + register "key.linux_input_type" = "EV_SW" + register "key.label" = ""pen_eject"" + device generic 0 on end + end + end # I2C #1 + device pci 15.2 off end # I2C #2 + device pci 15.3 on + chip drivers/i2c/sx9310 + register "desc" = ""SAR Proximity Sensor"" + register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A0)" + register "speed" = "I2C_SPEED_FAST" + register "uid" = "1" + register "reg_prox_ctrl0" = "0x10" + register "reg_prox_ctrl1" = "0x00" + register "reg_prox_ctrl2" = "0x84" + register "reg_prox_ctrl3" = "0x0e" + register "reg_prox_ctrl4" = "0x07" + register "reg_prox_ctrl5" = "0xc6" + register "reg_prox_ctrl6" = "0x20" + register "reg_prox_ctrl7" = "0x0d" + register "reg_prox_ctrl8" = "0x8d" + register "reg_prox_ctrl9" = "0x43" + register "reg_prox_ctrl10" = "0x1f" + register "reg_prox_ctrl11" = "0x00" + register "reg_prox_ctrl12" = "0x00" + register "reg_prox_ctrl13" = "0x00" + register "reg_prox_ctrl14" = "0x00" + register "reg_prox_ctrl15" = "0x00" + register "reg_prox_ctrl16" = "0x00" + register "reg_prox_ctrl17" = "0x00" + register "reg_prox_ctrl18" = "0x00" + register "reg_prox_ctrl19" = "0x00" + register "reg_sar_ctrl0" = "0x50" + register "reg_sar_ctrl1" = "0x8a" + register "reg_sar_ctrl2" = "0x3c" + device i2c 28 on end + end + end # I2C #3 + device pci 19.0 on + chip drivers/i2c/generic + register "hid" = ""10EC5682"" + register "name" = ""RT58"" + register "desc" = ""Realtek RT5682"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" + register "property_count" = "1" + # Set the jd_src to RT5668_JD1 for jack detection + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-src"" + register "property_list[0].integer" = "1" + device i2c 1a on end + end + end #I2C #4 + device pci 1a.0 on end # eMMC + device pci 1e.3 on + chip drivers/spi/acpi + register "name" = ""CRFP"" + register "hid" = "ACPI_DT_NAMESPACE_HID" + register "uid" = "1" + register "compat_string" = ""google,cros-ec-spi"" + register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A23_IRQ)" + device spi 1 on end + end # FPMCU + end # GSPI #1 + end + +end