Kane Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/palkia: Create palkia variant ......................................................................
mb/google/palkia: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb A src/mainboard/google/hatch/variants/palkia/ramstage.c 8 files changed, 747 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/1
diff --git a/src/mainboard/google/hatch/variants/palkia/Makefile.inc b/src/mainboard/google/hatch/variants/palkia/Makefile.inc new file mode 100644 index 0000000..be074b7 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/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 = LP_8G_2133 # 0b0000 +SPD_SOURCES += LP_16G_2133 # 0b0001 + +romstage-y += memory.c +bootblock-y += gpio.c + +ramstage-y += gpio.c +ramstage-y += ramstage.c diff --git a/src/mainboard/google/hatch/variants/palkia/gpio.c b/src/mainboard/google/hatch/variants/palkia/gpio.c new file mode 100644 index 0000000..a9a17e5 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/gpio.c @@ -0,0 +1,190 @@ +/* + * 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[] = { + /* A8 : PEN_GARAGE_DET_L (wake) */ + PAD_CFG_GPI_SCI(GPP_A8, NONE, DEEP, EDGE_SINGLE, NONE), + /* A10 : FPMCU_PCH_BOOT1 */ + PAD_CFG_GPO(GPP_A10, 0, DEEP), + /* A11 : GSPI1_CS1# ==> NC */ + PAD_NC(GPP_A11, NONE), + /* A12 : ISH_GP6 ==> NC */ + PAD_NC(GPP_A12, NONE), + /* A18 : ISH_GP0 ==> NC */ + PAD_NC(GPP_A18, NONE), + /* A19 : ISH_GP1 ==> NC */ + PAD_NC(GPP_A19, NONE), + /* A20 : ISH_GP2 ==> NC */ + PAD_NC(GPP_A20, NONE), + /* A22 : ISH_GP4 ==> NC */ + PAD_NC(GPP_A22, NONE), + /* A23 : ISH_GP5 ==> NC */ + PAD_NC(GPP_A23, NONE), + /* B19 : GSPI1_CS0# ==> NC */ + PAD_NC(GPP_B19, NONE), + /* B20 : GSPI1_CLK ==> NC */ + PAD_NC(GPP_B20, NONE), + /* B21 : GSPI1_MISO ==> NC */ + PAD_NC(GPP_B21, NONE), + /* B22 : GSPI1_MOSI ==> NC */ + PAD_NC(GPP_B22, NONE), + /* C1 : SMBDATA ==> NC */ + PAD_NC(GPP_C1, NONE), + /* C4 : TOUCHSCREEN_DIS_L */ + PAD_CFG_GPO(GPP_C4, 0, DEEP), + /* C6 : GPP_C6 ==> NC */ + PAD_NC(GPP_C6, NONE), + /* C7 : GPP_C7 ==> Touchscreen_INT_L */ + PAD_CFG_GPI_APIC(GPP_C7, NONE, PLTRST, LEVEL, INVERT), + /* C23 : UART2_CTS# ==> NC */ + PAD_NC(GPP_C23, NONE), + /* D5 : ISH_I2C0_SDA ==> NC */ + PAD_NC(GPP_D5, NONE), + /* D6 : ISH_I2C0_SCL ==> NC */ + PAD_NC(GPP_D6, NONE), + /* D7 : ISH_I2C1_SDA ==> NC */ + PAD_NC(GPP_D7, NONE), + /* D8 : ISH_I2C1_SCL ==> NC */ + PAD_NC(GPP_D8, NONE), + /* D10 : ISH_SPI_CLK ==> NC */ + PAD_NC(GPP_D10, NONE), + /* D16 : USI_INT_L */ + PAD_CFG_GPI_APIC(GPP_D16, NONE, PLTRST, LEVEL, INVERT), + /* D21 : SPI1_IO2 ==> NC */ + PAD_NC(GPP_D21, NONE), + /* F0 : GPP_F0 ==> NC */ + /* E12 : USB_A_OC_OD USB_OC3 */ + PAD_CFG_NF(GPP_E12, NONE, DEEP, NF1), + /* F0 : GPP_F0 ==> NC */ + PAD_NC(GPP_F0, NONE), + /* F1 : GPP_F1 ==> NC */ + PAD_NC(GPP_F1, NONE), + /* F3 : GPP_F3 ==> MEM_STRAP_3 */ + PAD_CFG_GPI(GPP_F3, NONE, PLTRST), + /* F10 : GPP_F10 ==> MEM_STRAP_2 */ + PAD_CFG_GPI(GPP_F10, NONE, PLTRST), + /* F11 : EMMC_CMD ==> NC */ + PAD_NC(GPP_F11, NONE), + /* F20 : EMMC_RCLK ==> NC */ + PAD_NC(GPP_F20, NONE), + /* F21 : EMMC_CLK ==> NC */ + PAD_NC(GPP_F21, NONE), + /* F22 : EMMC_RESET# ==> NC */ + PAD_NC(GPP_F22, NONE), + /* G0 : GPP_G0 ==> NC */ + PAD_NC(GPP_G0, NONE), + /* G1 : GPP_G1 ==> NC */ + PAD_NC(GPP_G1, NONE), + /* G2 : GPP_G2 ==> NC */ + PAD_NC(GPP_G2, NONE), + /* G3 : GPP_G3 ==> NC */ + PAD_NC(GPP_G3, NONE), + /* G4 : GPP_G4 ==> NC */ + PAD_NC(GPP_G4, NONE), + /* G5 : GPP_G5 ==> NC */ + PAD_NC(GPP_G5, NONE), + /* G6 : GPP_G6 ==> NC */ + PAD_NC(GPP_G6, NONE), + /* H3 : SPKR_PA_EN */ + PAD_CFG_GPO(GPP_H3, 1, DEEP), + /* H4 : Touchscreen I2C2_SDA */ + PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1), + /* H5 : Touchscreen I2C2_SCL */ + PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1), + /* H13 : M2_SKT2_CFG1 ==> SPKR_RST_L */ + PAD_CFG_GPO(GPP_H13, 1, DEEP), + /* H14 : M2_SKT2_CFG2 ==> TOUCHSCREEN_STOP_L */ + PAD_CFG_GPO(GPP_H14, 1, PLTRST), + /* H19 : TIMESYNC[0] ==> 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[] = { + /* 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), + /* 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), +}; + +const struct pad_config *variant_early_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(early_gpio_table); + return early_gpio_table; +} + +/* + * Default GPIO settings before entering non-S5 sleep states. + * Configure A12: FPMCU_RST_ODL as GPO before entering sleep. + * This guarantees that A12's native3 function is disabled. + * See https://review.coreboot.org/c/coreboot/+/32111 . + */ +static const struct pad_config default_sleep_gpio_table[] = { + PAD_CFG_GPO(GPP_A12, 1, DEEP), /* FPMCU_RST_ODL */ +}; + +/* + * GPIO settings before entering S5, which are same as + * default_sleep_gpio_table but also, turn off FPMCU. + */ +static const struct pad_config s5_sleep_gpio_table[] = { + PAD_CFG_GPO(GPP_A12, 0, DEEP), /* FPMCU_RST_ODL */ + PAD_CFG_GPO(GPP_C11, 0, DEEP), /* PCH_FP_PWR_EN */ +}; + +const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num) +{ + if (slp_typ == ACPI_S5) { + *num = ARRAY_SIZE(s5_sleep_gpio_table); + return s5_sleep_gpio_table; + } + *num = ARRAY_SIZE(default_sleep_gpio_table); + return default_sleep_gpio_table; +} diff --git a/src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl b/src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl new file mode 100644 index 0000000..a02ce04 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl @@ -0,0 +1,128 @@ +/* + * 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. + */ + +#define DPTF_CPU_PASSIVE 0 +#define DPTF_CPU_CRITICAL 105 + +#define DPTF_TSR0_SENSOR_ID 0 +#define DPTF_TSR0_SENSOR_NAME "Battery Charger" +#define DPTF_TSR0_PASSIVE 59 +#define DPTF_TSR0_CRITICAL 80 + +#define DPTF_TSR1_SENSOR_ID 1 +#define DPTF_TSR1_SENSOR_NAME "5V Regulator" +#define DPTF_TSR1_PASSIVE 0 +#define DPTF_TSR1_CRITICAL 70 +#define DPTF_TSR1_ACTIVE_AC0 42 +#define DPTF_TSR1_ACTIVE_AC1 41 +#define DPTF_TSR1_ACTIVE_AC2 39 + +#define DPTF_TSR2_SENSOR_ID 2 +#define DPTF_TSR2_SENSOR_NAME "Ambient" +#define DPTF_TSR2_PASSIVE 0 +#define DPTF_TSR2_CRITICAL 65 + +#define DPTF_TSR3_SENSOR_ID 3 +#define DPTF_TSR3_SENSOR_NAME "CPU" +#define DPTF_TSR3_PASSIVE 44 +#define DPTF_TSR3_CRITICAL 90 + +#define DPTF_ENABLE_CHARGER +#define DPTF_ENABLE_FAN_CONTROL + +/* Charger performance states, board-specific values from charger and EC */ +Name (CHPS, Package () { + Package () { 0, 0, 0, 0, 255, 0x6a4, "mA", 0 }, /* 1.7A (MAX) */ + Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 }, /* 1.5A */ + Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 }, /* 1.0A */ +}) + +/* DFPS: Fan Performance States */ +Name (DFPS, Package () { + 0, // Revision + /* + * TODO : Need to update this Table after characterization. + * These are initial reference values. + */ + /* Control, Trip Point, Speed, NoiseLevel, Power */ + Package () {90, 0xFFFFFFFF, 6700, 220, 2200}, + Package () {80, 0xFFFFFFFF, 5800, 180, 1800}, + Package () {70, 0xFFFFFFFF, 5000, 145, 1450}, + Package () {60, 0xFFFFFFFF, 4900, 115, 1150}, + Package () {50, 0xFFFFFFFF, 3838, 90, 900}, + Package () {40, 0xFFFFFFFF, 2904, 55, 550}, + Package () {30, 0xFFFFFFFF, 2337, 30, 300}, + Package () {20, 0xFFFFFFFF, 1608, 15, 150}, + Package () {10, 0xFFFFFFFF, 800, 10, 100}, + Package () {0, 0xFFFFFFFF, 0, 0, 50} +}) + +Name (DART, Package () { + /* Fan effect on CPU */ + 0, // Revision + Package () { + /* + * Source, Target, Weight, AC0, AC1, AC2, AC3, AC4, AC5, AC6, + * AC7, AC8, AC9 + */ + _SB.DPTF.TFN1, _SB.PCI0.TCPU, 100, 90, 70, 50, 50, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR0, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR1, 100, 90, 70, 50, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR2, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR3, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + } +}) + +Name (DTRT, Package () { + /* CPU Throttle Effect on TSR0 */ + Package () { _SB.PCI0.TCPU, _SB.DPTF.TSR0, 100, 60, 0, 0, 0, 0 }, + + /* Charger Throttle Effect on TSR0 */ + Package () { _SB.DPTF.TCHG, _SB.DPTF.TSR0, 100, 60, 0, 0, 0, 0 }, +}) + +Name (MPPC, Package () +{ + 0x2, /* Revision */ + Package () { /* Power Limit 1 */ + 0, /* PowerLimitIndex, 0 for Power Limit 1 */ + 10000, /* PowerLimitMinimum */ + 15000, /* PowerLimitMaximum */ + 28000, /* TimeWindowMinimum */ + 28000, /* TimeWindowMaximum */ + 200 /* StepSize */ + }, + Package () { /* Power Limit 2 */ + 1, /* PowerLimitIndex, 1 for Power Limit 2 */ + 64000, /* PowerLimitMinimum */ + 64000, /* PowerLimitMaximum */ + 28000, /* TimeWindowMinimum */ + 28000, /* TimeWindowMaximum */ + 1000 /* StepSize */ + } +}) diff --git a/src/mainboard/google/hatch/variants/palkia/include/variant/ec.h b/src/mainboard/google/hatch/variants/palkia/include/variant/ec.h new file mode 100644 index 0000000..768987d --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/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/palkia/include/variant/gpio.h b/src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h new file mode 100644 index 0000000..92f9d41 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h @@ -0,0 +1,27 @@ +/* + * 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_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/palkia/memory.c b/src/mainboard/google/hatch/variants/palkia/memory.c new file mode 100644 index 0000000..a3cd813 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/memory.c @@ -0,0 +1,102 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2018 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/variants.h> +#include <baseboard/gpio.h> +#include <boardid.h> +#include <gpio.h> +#include <soc/cnl_memcfg_init.h> +#include <string.h> +#include <variant/gpio.h> + +static const struct cnl_mb_cfg baseboard_memcfg = { + /* + * The dqs_map arrays map the SoC pins to the lpddr3 pins + * for both channels. + * + * "The index of the array is CPU byte number, the values are DRAM byte + * numbers." - doc #573387 + * + * the index = pin number on SoC + * the value = pin number on lpddr3 part + */ + .dqs_map[DDR_CH0] = {4, 7, 5, 6, 0, 3, 2, 1}, + .dqs_map[DDR_CH1] = {0, 3, 2, 1, 4, 7, 6, 5}, + + .dq_map[DDR_CH0] = { + {0xf0, 0xf}, + {0x0, 0xf}, + {0xf0, 0xf}, + {0xf0, 0x0}, + {0xff, 0x0}, + {0xff, 0x0} + }, + .dq_map[DDR_CH1] = { + {0xf, 0xf0}, + {0x0, 0xf0}, + {0xf, 0xf0}, + {0xf, 0x0}, + {0xff, 0x0}, + {0xff, 0x0} + }, + + /* Helios uses 200, 80.6 and 162 rcomp resistors */ + .rcomp_resistor = {200, 81, 162}, + + /* Helios Rcomp target values */ + .rcomp_targets = {100, 40, 40, 23, 40}, + + /* Set CaVref config to 0 for LPDDR3 */ + .vref_ca_config = 0, + + /* Disable Early Command Training */ + .ect = 0, +}; + +void variant_memory_params(struct cnl_mb_cfg *bcfg) +{ + memcpy(bcfg, &baseboard_memcfg, sizeof(baseboard_memcfg)); +} + +int variant_memory_sku(void) +{ + const gpio_t spd_gpios[] = { + GPIO_MEM_CONFIG_0, + GPIO_MEM_CONFIG_1, + GPIO_MEM_CONFIG_2, + GPIO_MEM_CONFIG_3, + }; + + int val = gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios)); + + if ((board_id() != 0) && (board_id() != BOARD_ID_UNKNOWN)) + return val; + + /* + * For boards with id 0 or unknown, memory straps 3 and 4 are + * incorrectly stuffed in hardware. This is a workaround for these + * boards to override memory strap 3 to 0 and 4 to 1. + */ + switch (val) { + case 3: + val = 0; + break; + case 4: + val = 1; + break; + } + + return val; +} diff --git a/src/mainboard/google/hatch/variants/palkia/overridetree.cb b/src/mainboard/google/hatch/variants/palkia/overridetree.cb new file mode 100644 index 0000000..140b9d3 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/overridetree.cb @@ -0,0 +1,225 @@ +chip soc/intel/cannonlake + register "tdp_pl1_override" = "15" + register "tdp_pl2_override" = "64" + + 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, + }" + + register "usb2_ports[3]" = "USB2_PORT_LONG(OC3)" # Type A + register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type A + + # No PCIe WiFi + register "PcieRpEnable[13]" = "0" + + # Intel Common SoC Config + #+-------------------+---------------------------+ + #| Field | Value | + #+-------------------+---------------------------+ + #| GSPI1 | FP MCU | + #| I2C0 | Trackpad | + #| I2C1 | Touchscreen | + #| I2C2 | 2nd Touchscreen | + #| I2C4 | Audio | + #+-------------------+---------------------------+ + register "common_soc_config" = "{ + .i2c[0] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 50, + .fall_time_ns = 15, + .data_hold_time_ns = 330, + }, + .i2c[1] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 60, + .fall_time_ns = 25, + }, + .i2c[2] = { + .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, + }, + .gspi[0] = { + .speed_mhz = 1, + .early_init = 1, + }, + }" + + device domain 0 on + device pci 14.0 on + chip drivers/usb/acpi + device usb 0.0 on + chip drivers/usb/acpi + # No Type-A port + device usb 2.2 off end + end + chip drivers/usb/acpi + # No Type-A Port + device usb 2.3 off end + end + chip drivers/usb/acpi + # No WWAN + device usb 2.5 off end + end + chip drivers/usb/acpi + register "desc" = ""Left Type-A Port"" + register "type" = "UPC_TYPE_A" + register "group" = "ACPI_PLD_GROUP(1, 2)" + device usb 2.4 on end + end + chip drivers/usb/acpi + register "desc" = ""Left Type-A Port"" + register "type" = "UPC_TYPE_A" + register "group" = "ACPI_PLD_GROUP(1, 2)" + device usb 3.4 on end + end + end + end + end + + # Native SD Card interface unused + device pci 14.5 off end + + device pci 15.0 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_A21_IRQ)" + register "wake" = "GPE0_DW0_21" + device i2c 15 on end + end + end + + device pci 15.1 on + chip drivers/i2c/hid + register "generic.hid" = ""ELAN9008"" + register "generic.desc" = ""ELAN 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" = "120" + register "generic.reset_off_delay_ms" = "1" + register "generic.enable_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "12" + register "generic.enable_off_delay_ms" = "10" + register "generic.has_power_resource" = "1" + register "generic.stop_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "15" + register "generic.stop_off_delay_ms" = "5" + register "hid_desc_reg_offset" = "0x01" + device i2c 10 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_ASSERTED" + 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 on + chip drivers/i2c/hid + register "generic.hid" = ""ELAN9009"" + register "generic.desc" = ""ELAN Touchscreen"" + register "generic.irq" = + "ACPI_IRQ_EDGE_LOW(GPP_C7_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "120" + register "generic.reset_off_delay_ms" = "1" + register "generic.enable_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "12" + register "generic.enable_off_delay_ms" = "10" + register "generic.has_power_resource" = "1" + register "generic.stop_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "15" + register "generic.stop_off_delay_ms" = "5" + register "hid_desc_reg_offset" = "0x01" + device i2c 10 on end + end + end #I2C 2 + + # I2C #3 unused + device pci 15.3 off end + + 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 + chip drivers/i2c/generic + register "hid" = ""10EC1011"" + register "desc" = ""RT1011 Tweeter Left Speaker Amp"" + register "uid" = "0" + register "name" = ""TL"" + device i2c 38 on end + end + chip drivers/i2c/generic + register "hid" = ""10EC1011"" + register "desc" = ""RT1011 Tweeter Right Speaker Amp"" + register "uid" = "1" + register "name" = ""TR"" + device i2c 39 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_WAKE_LEVEL_LOW(GPP_A23_IRQ)" + register "wake" = "GPE0_DW0_23" + device spi 1 on end + end # FPMCU + end # GSPI #1 + device pci 1f.3 on + chip drivers/generic/max98357a + register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" + register "sdmode_delay" = "5" + device generic 0 on end + end + end # Intel HDA + end +end diff --git a/src/mainboard/google/hatch/variants/palkia/ramstage.c b/src/mainboard/google/hatch/variants/palkia/ramstage.c new file mode 100644 index 0000000..9b919fc --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/ramstage.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 <delay.h> +#include <gpio.h> +#include <baseboard/variants.h> +#include <soc/gpio.h> + +void variant_ramstage_init(void) +{ + /* + * Enable power to FPMCU, wait for power rail to stabilize, + * and then deassert FPMCU reset. + * Waiting for the power rail to stabilize can take a while, + * a minimum of 400us on Kohaku. + */ + gpio_output(GPP_C11, 1); + mdelay(1); + gpio_output(GPP_A12, 1); +}
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#2).
Change subject: mb/google/palkia: Create palkia variant ......................................................................
mb/google/palkia: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:147078849 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb A src/mainboard/google/hatch/variants/palkia/ramstage.c 8 files changed, 747 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/2
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/palkia: Create palkia variant ......................................................................
Patch Set 2: Code-Review+1
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/palkia: Create palkia variant ......................................................................
Patch Set 2:
(10 comments)
https://review.coreboot.org/c/coreboot/+/38860/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38860/2//COMMIT_MSG@7 PS2, Line 7: palkia hatch
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/memory.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 55: Helios Which RCOMP resistors does Palkia use?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 58: Helios Are these the same for Palkia?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 87: /* : * For boards with id 0 or unknown, memory straps 3 and 4 are : * incorrectly stuffed in hardware. This is a workaround for these : * boards to override memory strap 3 to 0 and 4 to 1. : */ Does this apply to Palkia?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 9: [PchSerialIoIndexI2C3] = PchSerialIoPci, Should be disabled
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 11: [PchSerialIoIndexI2C5] = PchSerialIoPci, Should be disabled
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 13: [PchSerialIoIndexSPI1] = PchSerialIoPci, I think this should be disabled as well
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: GSPI1 GSPI0 ?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : }, It's disabled in the devicetree
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 27: Kohaku But this is not Kohaku?
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/palkia: Create palkia variant ......................................................................
Patch Set 2:
(25 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 26: /* A11 : GSPI1_CS1# ==> NC */ : PAD_NC(GPP_A11, NONE), : /* A12 : ISH_GP6 ==> NC */ : PAD_NC(GPP_A12, NONE), Remove this. This should be inherited from baseboard gpio.c
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 39: PAD_NC(GPP_A23, NONE), : /* B19 : GSPI1_CS0# ==> NC */ Add a newline when changing the GPIO group. ie: PAD_NC(GPP_A23, NONE),
/* B19 : GSPI1_CS0# ==> NC */
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 52: /* C6 : GPP_C6 ==> NC */ : PAD_NC(GPP_C6, NONE), Remove this. This should be inherited from baseboard gpio.c
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 58: /* D5 : ISH_I2C0_SDA ==> NC */ : PAD_NC(GPP_D5, NONE), : /* D6 : ISH_I2C0_SCL ==> NC */ : PAD_NC(GPP_D6, NONE), : /* D7 : ISH_I2C1_SDA ==> NC */ : PAD_NC(GPP_D7, NONE), : /* D8 : ISH_I2C1_SCL ==> NC */ : PAD_NC(GPP_D8, NONE), : /* D10 : ISH_SPI_CLK ==> NC */ : PAD_NC(GPP_D10, NONE), Remove this. This should be inherited from baseboard gpio.c
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 70: /* D21 : SPI1_IO2 ==> NC */ : PAD_NC(GPP_D21, NONE), Remove this. This should be inherited from baseboard gpio.c
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 72: /* F0 : GPP_F0 ==> NC */ Remove this.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 73: /* E12 : USB_A_OC_OD USB_OC3 */ : PAD_CFG_NF(GPP_E12, NONE, DEEP, NF1), Remove this. This should be inherited from baseboard gpio.c
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 163: /* : * Default GPIO settings before entering non-S5 sleep states. : * Configure A12: FPMCU_RST_ODL as GPO before entering sleep. : * This guarantees that A12's native3 function is disabled. : * See https://review.coreboot.org/c/coreboot/+/32111 . : */ : static const struct pad_config default_sleep_gpio_table[] = { : PAD_CFG_GPO(GPP_A12, 1, DEEP), /* FPMCU_RST_ODL */ : }; : Remove this, we don't use GPP_A12.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 173: /* : * GPIO settings before entering S5, which are same as : * default_sleep_gpio_table but also, turn off FPMCU. : */ : static const struct pad_config s5_sleep_gpio_table[] = { : PAD_CFG_GPO(GPP_A12, 0, DEEP), /* FPMCU_RST_ODL */ : PAD_CFG_GPO(GPP_C11, 0, DEEP), /* PCH_FP_PWR_EN */ : }; : Remove this. We don't use GPP_A12 and GPP_C11. Besides, please add the below to gpio_table[]:
PAD_NC(GPP_C11, NONE),
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 182: const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num) : { : if (slp_typ == ACPI_S5) { : *num = ARRAY_SIZE(s5_sleep_gpio_table); : return s5_sleep_gpio_table; : } : *num = ARRAY_SIZE(default_sleep_gpio_table); : return default_sleep_gpio_table; : } Remove this if the sleep_gpio_table is removed.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 80: 90, 70, 50, 50 Do we need to add this?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 103: TSR0 Could you please double check this value?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 20: register "usb2_ports[3]" = "USB2_PORT_LONG(OC3)" # Type A : register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type A : From the schematics, you don't need to set port3. Instead, you should change the port2 setting to internal USB for SD card, like this:
register "usb2_ports[2]" = "USB2_PORT_LONG(OC_SKIP)" # SD CARD register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD CARD
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: #| GSPI1 | FP MCU | Remove this.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 63: .gspi[0] = { : .speed_mhz = 1, : .early_init = 1, : }, : }" Remove this.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 72: device usb 0.0 on No right type-c port. Add this: chip drivers/usb/acpi # No Right Type-C port device usb 2.1 off end end
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 73: chip drivers/usb/acpi : # No Type-A port : device usb 2.2 off end : end From Schematics, this should be like this:
chip drivers/usb/acpi register "desc" = ""Micro SD Card"" register "type" = "UPC_TYPE_INTERNAL" device usb 2.2 on end end
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 77: chip drivers/usb/acpi : # No Type-A Port : device usb 2.3 off end : end From Schematics, this should be like this: chip drivers/usb/acpi register "desc" = ""Left Type-A Port"" register "type" = "UPC_TYPE_A" register "group" = "ACPI_PLD_GROUP(1, 2)" device usb 2.3 on end end
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 85: chip drivers/usb/acpi : register "desc" = ""Left Type-A Port"" : register "type" = "UPC_TYPE_A" : register "group" = "ACPI_PLD_GROUP(1, 2)" : device usb 2.4 on end : end : chip drivers/usb/acpi : register "desc" = ""Left Type-A Port"" : register "type" = "UPC_TYPE_A" : register "group" = "ACPI_PLD_GROUP(1, 2)" : device usb 3.4 on end : end Remove this. I don't see this port from the schematics.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 97: end Add USB 3 setting as below: chip drivers/usb/acpi # No Right Type-C port device usb 3.1 off end end chip drivers/usb/acpi register "desc" = ""Micro SD card"" register "type" = "UPC_TYPE_INTERNAL" device usb 3.2 on end end chip drivers/usb/acpi register "desc" = ""Left Type-A Port"" register "type" = "UPC_TYPE_A" register "group" = "ACPI_PLD_GROUP(1, 2)" device usb 3.3 on end end
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 121: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1" Remove this. From schematics, it looks like we don't use this pin.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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 Remove this.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 157: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1" Remove this. From schematics, it looks like we don't use this pin.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 206: 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_WAKE_LEVEL_LOW(GPP_A23_IRQ)" : register "wake" = "GPE0_DW0_23" : device spi 1 on end : end # FPMCU : end # GSPI #1 We don't use GSPI1, remove it. ie:
# GSPI #1 unused device pci 1e.3 off end
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 29: gpio_output(GPP_C11, 1); : mdelay(1); : gpio_output(GPP_A12, 1); Remove this. We don't need this.
Hello Zhuohao Lee, Zhuohao Lee, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#3).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:147078849 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb A src/mainboard/google/hatch/variants/palkia/ramstage.c 8 files changed, 747 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/3
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38860/2//COMMIT_MSG@7 PS2, Line 7: palkia
hatch
Done
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 3:
(8 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 80: 90, 70, 50, 50
Do we need to add this?
Add these temporary setting to make FAN working when CPU temperature raise up .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/memory.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 55: Helios
Which RCOMP resistors does Palkia use?
Palkia use the same RCOMP resistors as Helios .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 58: Helios
Are these the same for Palkia?
Palkia should use the same setting as Helios on Rcomp target values .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 87: /* : * For boards with id 0 or unknown, memory straps 3 and 4 are : * incorrectly stuffed in hardware. This is a workaround for these : * boards to override memory strap 3 to 0 and 4 to 1. : */
Does this apply to Palkia?
Yes , Palkia use the same memory config table as Helios . It should be suitable as Palkia .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : },
It's disabled in the devicetree
According to this CL https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+... i2c[4] setting would effect by i2c[3] setting show up .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 121: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
Remove this. From schematics, it looks like we don't use this pin.
We do use GPP_D15 for touchscreen reset control .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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
Remove this.
We plan to support touch pen . Should we remove it ?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 157: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
Remove this. From schematics, it looks like we don't use this pin.
We do use GPP_D15 for touchscreen reset control .
Hello Zhuohao Lee, Zhuohao Lee, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#4).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 661 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/4
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/4/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/4/src/mainboard/google/hatch/... PS4, Line 82: # No Right Tpype-C port trailing whitespace
Hello Zhuohao Lee, Zhuohao Lee, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#5).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 661 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/5
Hello Zhuohao Lee, Zhuohao Lee, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#6).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 663 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/6
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 6:
(4 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 121: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
We do use GPP_D15 for touchscreen reset control .
From the schematics, it is not used. Please attach the schematics you see in the issue and point out the pin connection.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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
We plan to support touch pen . […]
Double check with device pm, we won't support the pen garage.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 157: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
We do use GPP_D15 for touchscreen reset control .
Same as above.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
PS2: Remove this file, i don't think we need this.
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 6:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: Google LLC Add pegatron as well?
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: 2019 Change the year. Same as the other files.
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 22: ramstage-y += ramstage.c This should be removed too if the ramstage.c is removed. Could you please double check at your end?
Hello Zhuohao Lee, Zhuohao Lee, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#7).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 662 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/7
Hello Zhuohao Lee, Zhuohao Lee, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#8).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 654 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/8
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 8:
(3 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 121: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
From the schematics, it is not used. […]
After confirmation , we did not use GPP_D15 . We will remove it .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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
Double check with device pm, we won't support the pen garage.
We do plan to support touch pen .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 157: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
Same as above.
After confirmation , we did not use GPP_D15 . We will remove it .
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 8:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/memory.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 87: /* : * For boards with id 0 or unknown, memory straps 3 and 4 are : * incorrectly stuffed in hardware. This is a workaround for these : * boards to override memory strap 3 to 0 and 4 to 1. : */
Yes , Palkia use the same memory config table as Helios . It should be suitable as Palkia .
Ack
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 11: [PchSerialIoIndexI2C5] = PchSerialIoPci,
Should be disabled
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 13: [PchSerialIoIndexSPI1] = PchSerialIoPci,
I think this should be disabled as well
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: GSPI1
GSPI0 ?
Ack
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : }, On CB:33384 (same change as your link), Furquan said:
You don't need a value for the unused buses.
Therefore, I believe this value is not necessary for Palkia.
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 27: Kohaku
But this is not Kohaku?
Ack
Hello Zhuohao Lee, Zhuohao Lee, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#9).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 624 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/9
Hello Zhuohao Lee, Zhuohao Lee, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#10).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 623 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/10
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 10:
(3 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: GSPI1
Ack
GSPI1 had removed . Do you jump to https://review.coreboot.org/c/coreboot/+/38860/2 instead of https://review.coreboot.org/c/coreboot/+/38860 ?
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : },
On CB:33384 (same change as your link), Furquan said: […]
In my memory , the i2c[4] setting will not workable if i2c[3] setting removed . I need to double confirm the setting again .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 27: Kohaku
Ack
Palkia did not use GPP_C11 and GPP_A12 . We had removed this file .
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 10:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: 2019
Change the year. Same as the other files.
coreboot is switching to SPDX-style headers. you can grep the source to see what it looks like. it replaces the entire license text.
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 10: Code-Review+1
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#11).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 612 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/11
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 11: Code-Review+1
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#12).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 607 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/12
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 12: Code-Review+1
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 12:
(3 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/memory.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 87: /* : * For boards with id 0 or unknown, memory straps 3 and 4 are : * incorrectly stuffed in hardware. This is a workaround for these : * boards to override memory strap 3 to 0 and 4 to 1. : */
Ack
Palkia did not need this patch . So remove it .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : },
In my memory , the i2c[4] setting will not workable if i2c[3] setting removed . […]
After verification , the setting can be remove .
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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
We do plan to support touch pen .
Sorry for the misunderstanding , we do not support pen garage . We can remove it .
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#13).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 606 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/13
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 13: Code-Review+1
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 13:
(16 comments)
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/memory.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 87: /* : * For boards with id 0 or unknown, memory straps 3 and 4 are : * incorrectly stuffed in hardware. This is a workaround for these : * boards to override memory strap 3 to 0 and 4 to 1. : */
Palkia did not need this patch . So remove it .
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 9: [PchSerialIoIndexI2C3] = PchSerialIoPci,
Should be disabled
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 20: register "usb2_ports[3]" = "USB2_PORT_LONG(OC3)" # Type A : register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type A :
From the schematics, you don't need to set port3. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: #| GSPI1 | FP MCU |
Remove this.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 30: GSPI1
GSPI1 had removed . Do you jump to […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 53: .i2c[3] = { : .speed = I2C_SPEED_FAST, : .rise_time_ns = 150, : .fall_time_ns = 150, : },
After verification , the setting can be remove .
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 63: .gspi[0] = { : .speed_mhz = 1, : .early_init = 1, : }, : }"
Remove this.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 72: device usb 0.0 on
No right type-c port. Add this: […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 73: chip drivers/usb/acpi : # No Type-A port : device usb 2.2 off end : end
From Schematics, this should be like this: […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 77: chip drivers/usb/acpi : # No Type-A Port : device usb 2.3 off end : end
From Schematics, this should be like this: […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 85: chip drivers/usb/acpi : register "desc" = ""Left Type-A Port"" : register "type" = "UPC_TYPE_A" : register "group" = "ACPI_PLD_GROUP(1, 2)" : device usb 2.4 on end : end : chip drivers/usb/acpi : register "desc" = ""Left Type-A Port"" : register "type" = "UPC_TYPE_A" : register "group" = "ACPI_PLD_GROUP(1, 2)" : device usb 3.4 on end : end
Remove this. I don't see this port from the schematics.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 97: end
Add USB 3 setting as below: […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 121: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
After confirmation , we did not use GPP_D15 . We will remove it .
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 137: 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_ASSERTED" : 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
Sorry for the misunderstanding , we do not support pen garage . We can remove it .
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 157: register "generic.reset_gpio" = : "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" : register "generic.reset_delay_ms" = "120" : register "generic.reset_off_delay_ms" = "1"
After confirmation , we did not use GPP_D15 . We will remove it .
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 206: 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_WAKE_LEVEL_LOW(GPP_A23_IRQ)" : register "wake" = "GPE0_DW0_23" : device spi 1 on end : end # FPMCU : end # GSPI #1
We don't use GSPI1, remove it. ie: […]
Done
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 13:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: Google LLC
Add pegatron as well?
Done.
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: 2019
coreboot is switching to SPDX-style headers. you can grep the source to see what it looks like. […]
I can only found SPDX-style header in gpio.h of certain project . Could i use the same description on gpio.c ? "SPDX-License-Identifier: GPL-2.0-or-later"
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 13:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: 2019
I can only found SPDX-style header in gpio.h of certain project . […]
Yes, you can use that SPDX header and leave out this very verbose style.
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#14).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 565 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/14
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 4: 2019
Yes, you can use that SPDX header and leave out this very verbose style.
Done
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14: Code-Review+2
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14: Code-Review+1
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14: -Code-Review
It looks like the Kconfig is missing. Are you plan to submit another patch for the src/mainboard/google/hatch/Kconfig, src/mainboard/google/hatch/Kconfig.name?
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14:
Patch Set 14: -Code-Review
It looks like the Kconfig is missing. Are you plan to submit another patch for the src/mainboard/google/hatch/Kconfig, src/mainboard/google/hatch/Kconfig.name?
CL for Palkia Kconfig creation is on the way . https://review.coreboot.org/c/coreboot/+/39096
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14: Code-Review+1
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 8: PchSerialIoIndexI2C2 Add I2C3 and mark it disabled?
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 82: 3.2 Should this be in a ACPI_PLD_GROUP with its USB2 pair?
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 110: ELAN Touchscreen This looks like it is the USI interface, can you add that to the name?
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 119: stop_gpio is there any issue having both devices declare the same stop GPIO?
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 181: device pci 1e.3 off missing "end" here
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 188: HDA I2S
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 14: Code-Review+1
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#15).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 566 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/15
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#16).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 567 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/16
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 16: Code-Review+1
Hello Zhuohao Lee, Zhuohao Lee, Paul Fagerburg, Tim Wawrzynczak, Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#17).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:none BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 567 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/17
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 17:
(6 comments)
Patch Set 14:
(6 comments)
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 8: PchSerialIoIndexI2C2
Add I2C3 and mark it disabled?
Done
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 82: 3.2
Should this be in a ACPI_PLD_GROUP with its USB2 pair?
If "type" define to be "UPC_TYPE_INTERNAL" , it should not need to define "ACPI_PLD_GROUP"
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 110: ELAN Touchscreen
This looks like it is the USI interface, can you add that to the name?
Done
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 119: stop_gpio
is there any issue having both devices declare the same stop GPIO?
According to our original design , it have 4 control pins for power on/off sequence . 1 for reset , 1 for IRQ , 2 for enable pins . Because we can not define enable_2 or enable2 here . So we pick up stop_gpio to be the 2nd enable pin here .
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 181: device pci 1e.3 off
missing "end" here
Done
https://review.coreboot.org/c/coreboot/+/38860/14/src/mainboard/google/hatch... PS14, Line 188: HDA
I2S
Done
Shelley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 17:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/17//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38860/17//COMMIT_MSG@11 PS17, Line 11: b:none Please use a bug #. If you don't have one, please create a bug and use it here so that we can track it more easily.
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 17: Code-Review+1
Ken Lu has uploaded a new patch set (#18) to the change originally created by Kane Chen. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:15024194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 567 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/18
Ken Lu has uploaded a new patch set (#19) to the change originally created by Kane Chen. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 567 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/19
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 19:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/17//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38860/17//COMMIT_MSG@11 PS17, Line 11: b:none
Please use a bug #. […]
Done
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 19:
Is it possible to include the Kconfig into this patch?
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#20).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 576 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/20
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 20: Code-Review+1
Zhuohao Lee has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 20: Code-Review+1
Could anyone please +2? or any other suggestion?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 20: Code-Review+1
(15 comments)
Patch Set 20: Code-Review+1
Could anyone please +2? or any other suggestion?
Remember that, once the suggestions in the comments have been done, they need to be marked as resolved. I have done that for you 😊
Other than one last comment, I would say this looks good.
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/38860/6/src/mainboard/google/hatch/... PS6, Line 22: ramstage-y += ramstage.c
This should be removed too if the ramstage.c is removed. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/gpio.c:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 26: /* A11 : GSPI1_CS1# ==> NC */ : PAD_NC(GPP_A11, NONE), : /* A12 : ISH_GP6 ==> NC */ : PAD_NC(GPP_A12, NONE),
Remove this. This should be inherited from baseboard gpio. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 39: PAD_NC(GPP_A23, NONE), : /* B19 : GSPI1_CS0# ==> NC */
Add a newline when changing the GPIO group. ie: […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 52: /* C6 : GPP_C6 ==> NC */ : PAD_NC(GPP_C6, NONE),
Remove this. This should be inherited from baseboard gpio. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 58: /* D5 : ISH_I2C0_SDA ==> NC */ : PAD_NC(GPP_D5, NONE), : /* D6 : ISH_I2C0_SCL ==> NC */ : PAD_NC(GPP_D6, NONE), : /* D7 : ISH_I2C1_SDA ==> NC */ : PAD_NC(GPP_D7, NONE), : /* D8 : ISH_I2C1_SCL ==> NC */ : PAD_NC(GPP_D8, NONE), : /* D10 : ISH_SPI_CLK ==> NC */ : PAD_NC(GPP_D10, NONE),
Remove this. This should be inherited from baseboard gpio. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 70: /* D21 : SPI1_IO2 ==> NC */ : PAD_NC(GPP_D21, NONE),
Remove this. This should be inherited from baseboard gpio. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 72: /* F0 : GPP_F0 ==> NC */
Remove this.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 73: /* E12 : USB_A_OC_OD USB_OC3 */ : PAD_CFG_NF(GPP_E12, NONE, DEEP, NF1),
Remove this. This should be inherited from baseboard gpio. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 163: /* : * Default GPIO settings before entering non-S5 sleep states. : * Configure A12: FPMCU_RST_ODL as GPO before entering sleep. : * This guarantees that A12's native3 function is disabled. : * See https://review.coreboot.org/c/coreboot/+/32111 . : */ : static const struct pad_config default_sleep_gpio_table[] = { : PAD_CFG_GPO(GPP_A12, 1, DEEP), /* FPMCU_RST_ODL */ : }; :
Remove this, we don't use GPP_A12.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 173: /* : * GPIO settings before entering S5, which are same as : * default_sleep_gpio_table but also, turn off FPMCU. : */ : static const struct pad_config s5_sleep_gpio_table[] = { : PAD_CFG_GPO(GPP_A12, 0, DEEP), /* FPMCU_RST_ODL */ : PAD_CFG_GPO(GPP_C11, 0, DEEP), /* PCH_FP_PWR_EN */ : }; :
Remove this. We don't use GPP_A12 and GPP_C11. […]
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 182: const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num) : { : if (slp_typ == ACPI_S5) { : *num = ARRAY_SIZE(s5_sleep_gpio_table); : return s5_sleep_gpio_table; : } : *num = ARRAY_SIZE(default_sleep_gpio_table); : return default_sleep_gpio_table; : }
Remove this if the sleep_gpio_table is removed.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 103: TSR0
Could you please double check this value?
Done
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... PS20, Line 95: TSR0 TSR3
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/palkia/ramstage.c:
PS2:
Remove this file, i don't think we need this.
Done
https://review.coreboot.org/c/coreboot/+/38860/2/src/mainboard/google/hatch/... PS2, Line 29: gpio_output(GPP_C11, 1); : mdelay(1); : gpio_output(GPP_A12, 1);
Remove this. We don't need this.
Done
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 20:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... PS20, Line 95: TSR0
TSR3
I will CR+2 as soon as this comment is properly resolved.
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#21).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 576 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/21
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 21: Code-Review+1
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 21:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/20/src/mainboard/google/hatch... PS20, Line 95: TSR0
I will CR+2 as soon as this comment is properly resolved.
Done.
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 21: Code-Review-1
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/21/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/21/src/mainboard/google/hatch... PS21, Line 85: f This extra character is causing the build to fail.
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#22).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 576 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/22
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 22: Code-Review+1
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 22:
(1 comment)
Patch Set 21: Code-Review-1
(1 comment)
https://review.coreboot.org/c/coreboot/+/38860/21/src/mainboard/google/hatch... File src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl:
https://review.coreboot.org/c/coreboot/+/38860/21/src/mainboard/google/hatch... PS21, Line 85: f
This extra character is causing the build to fail.
done
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 22: Code-Review+2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 22:
There's a merge conflict, so this would need to be rebased before it can be submitted.
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#23).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 589 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/23
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#24).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- D src/mainboard/google/hatch/Kconfig D src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 567 insertions(+), 195 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/24
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#25).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 7 files changed, 567 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/25
Hello Shelley Chen, build bot (Jenkins), Patrick Georgi, Martin Roth, Tim Wawrzynczak, Paul Fagerburg, Angel Pons, Zhuohao Lee, Zhuohao Lee,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38860
to look at the new patch set (#26).
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 576 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/38860/26
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 26: Code-Review+1
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 26:
Patch Set 22:
There's a merge conflict, so this would need to be rebased before it can be submitted.
Kane Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 26:
Patch Set 22:
There's a merge conflict, so this would need to be rebased before it can be submitted.
done
Ken Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 26:
We need code review +2 again , please help .
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
Patch Set 26: Code-Review+2
Patch Set 26:
We need code review +2 again , please help .
Done 😄
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/38860 )
Change subject: mb/google/hatch: Create palkia variant ......................................................................
mb/google/hatch: Create palkia variant
Add Palkia as a variant of Hatch.
BUG=b:150254194 BRANCH=none TEST=none
Signed-off-by: Kane Chen kane_chen@pegatron.corp-partner.google.com Change-Id: I6a303d9fc2be9ea358ad66cd648738187c974193 Reviewed-on: https://review.coreboot.org/c/coreboot/+/38860 Reviewed-by: Angel Pons th3fanbus@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/hatch/Kconfig M src/mainboard/google/hatch/Kconfig.name A src/mainboard/google/hatch/variants/palkia/Makefile.inc A src/mainboard/google/hatch/variants/palkia/gpio.c A src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl A src/mainboard/google/hatch/variants/palkia/include/variant/ec.h A src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h A src/mainboard/google/hatch/variants/palkia/memory.c A src/mainboard/google/hatch/variants/palkia/overridetree.cb 9 files changed, 576 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved Kane Chen: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig index 512d310..2bb8784 100644 --- a/src/mainboard/google/hatch/Kconfig +++ b/src/mainboard/google/hatch/Kconfig @@ -99,6 +99,7 @@ default "Kindred" if BOARD_GOOGLE_KINDRED default "Kohaku" if BOARD_GOOGLE_KOHAKU default "Mushu" if BOARD_GOOGLE_MUSHU + default "Palkia" if BOARD_GOOGLE_PALKIA default "Nightfury" if BOARD_GOOGLE_NIGHTFURY default "Puff" if BOARD_GOOGLE_PUFF default "Stryke" if BOARD_GOOGLE_STRYKE @@ -123,6 +124,7 @@ default "kindred" if BOARD_GOOGLE_KINDRED default "kohaku" if BOARD_GOOGLE_KOHAKU default "mushu" if BOARD_GOOGLE_MUSHU + default "palkia" if BOARD_GOOGLE_PALKIA default "nightfury" if BOARD_GOOGLE_NIGHTFURY default "puff" if BOARD_GOOGLE_PUFF default "stryke" if BOARD_GOOGLE_STRYKE diff --git a/src/mainboard/google/hatch/Kconfig.name b/src/mainboard/google/hatch/Kconfig.name index 785e2c8..207ba2a 100644 --- a/src/mainboard/google/hatch/Kconfig.name +++ b/src/mainboard/google/hatch/Kconfig.name @@ -44,6 +44,13 @@ select BOARD_GOOGLE_BASEBOARD_HATCH select BOARD_ROMSIZE_KB_16384
+config BOARD_GOOGLE_PALKIA + bool "-> Palkia" + select BOARD_GOOGLE_BASEBOARD_HATCH + select BOARD_ROMSIZE_KB_16384 + select CHROMEOS_DSM_CALIB + select DRIVERS_I2C_RT1011 + config BOARD_GOOGLE_NIGHTFURY bool "-> Nightfury" select BOARD_GOOGLE_BASEBOARD_HATCH diff --git a/src/mainboard/google/hatch/variants/palkia/Makefile.inc b/src/mainboard/google/hatch/variants/palkia/Makefile.inc new file mode 100644 index 0000000..b0a69da --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/Makefile.inc @@ -0,0 +1,15 @@ +## +## This file is part of the coreboot project. +## +## Copyright 2020 The coreboot project Palkia. +## +## SPDX-License-Identifier: GPL-2.0-or-later +## + +SPD_SOURCES = LP_8G_2133 # 0b0000 +SPD_SOURCES += LP_16G_2133 # 0b0001 + +romstage-y += memory.c +bootblock-y += gpio.c + +ramstage-y += gpio.c diff --git a/src/mainboard/google/hatch/variants/palkia/gpio.c b/src/mainboard/google/hatch/variants/palkia/gpio.c new file mode 100644 index 0000000..73868f7 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/gpio.c @@ -0,0 +1,141 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2020 The coreboot project Palkia. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include <arch/acpi.h> +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <commonlib/helpers.h> + +static const struct pad_config gpio_table[] = { + /* A8 : PEN_GARAGE_DET_L (wake) */ + PAD_CFG_GPI_SCI(GPP_A8, NONE, DEEP, EDGE_SINGLE, NONE), + /* A10 : FPMCU_PCH_BOOT1 */ + PAD_CFG_GPO(GPP_A10, 0, DEEP), + /* A18 : ISH_GP0 ==> NC */ + PAD_NC(GPP_A18, NONE), + /* A19 : ISH_GP1 ==> NC */ + PAD_NC(GPP_A19, NONE), + /* A20 : ISH_GP2 ==> NC */ + PAD_NC(GPP_A20, NONE), + /* A22 : ISH_GP4 ==> NC */ + PAD_NC(GPP_A22, NONE), + /* A23 : ISH_GP5 ==> NC */ + PAD_NC(GPP_A23, NONE), + + /* B19 : GSPI1_CS0# ==> NC */ + PAD_NC(GPP_B19, NONE), + /* B20 : GSPI1_CLK ==> NC */ + PAD_NC(GPP_B20, NONE), + /* B21 : GSPI1_MISO ==> NC */ + PAD_NC(GPP_B21, NONE), + /* B22 : GSPI1_MOSI ==> NC */ + PAD_NC(GPP_B22, NONE), + + /* C1 : SMBDATA ==> NC */ + PAD_NC(GPP_C1, NONE), + /* C4 : TOUCHSCREEN_DIS_L */ + PAD_CFG_GPO(GPP_C4, 0, DEEP), + /* C7 : GPP_C7 ==> Touchscreen_INT_L */ + PAD_CFG_GPI_APIC(GPP_C7, NONE, PLTRST, LEVEL, INVERT), + /* C11 : UART0_CTS# ==> NC */ + PAD_NC(GPP_C11, NONE), + /* C23 : UART2_CTS# ==> NC */ + PAD_NC(GPP_C23, NONE), + + /* D16 : USI_INT_L */ + PAD_CFG_GPI_APIC(GPP_D16, NONE, PLTRST, LEVEL, INVERT), + + /* F0 : GPP_F0 ==> NC */ + PAD_NC(GPP_F0, NONE), + /* F1 : GPP_F1 ==> NC */ + PAD_NC(GPP_F1, NONE), + /* F3 : GPP_F3 ==> MEM_STRAP_3 */ + PAD_CFG_GPI(GPP_F3, NONE, PLTRST), + /* F10 : GPP_F10 ==> MEM_STRAP_2 */ + PAD_CFG_GPI(GPP_F10, NONE, PLTRST), + /* F11 : EMMC_CMD ==> NC */ + PAD_NC(GPP_F11, NONE), + /* F20 : EMMC_RCLK ==> NC */ + PAD_NC(GPP_F20, NONE), + /* F21 : EMMC_CLK ==> NC */ + PAD_NC(GPP_F21, NONE), + /* F22 : EMMC_RESET# ==> NC */ + PAD_NC(GPP_F22, NONE), + + /* G0 : GPP_G0 ==> NC */ + PAD_NC(GPP_G0, NONE), + /* G1 : GPP_G1 ==> NC */ + PAD_NC(GPP_G1, NONE), + /* G2 : GPP_G2 ==> NC */ + PAD_NC(GPP_G2, NONE), + /* G3 : GPP_G3 ==> NC */ + PAD_NC(GPP_G3, NONE), + /* G4 : GPP_G4 ==> NC */ + PAD_NC(GPP_G4, NONE), + /* G5 : GPP_G5 ==> NC */ + PAD_NC(GPP_G5, NONE), + /* G6 : GPP_G6 ==> NC */ + PAD_NC(GPP_G6, NONE), + + /* H3 : SPKR_PA_EN */ + PAD_CFG_GPO(GPP_H3, 1, DEEP), + /* H4 : Touchscreen I2C2_SDA */ + PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1), + /* H5 : Touchscreen I2C2_SCL */ + PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1), + /* H13 : M2_SKT2_CFG1 ==> SPKR_RST_L */ + PAD_CFG_GPO(GPP_H13, 1, DEEP), + /* H14 : M2_SKT2_CFG2 ==> TOUCHSCREEN_STOP_L */ + PAD_CFG_GPO(GPP_H14, 1, PLTRST), + /* H19 : TIMESYNC[0] ==> 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[] = { + /* 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), + /* 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), +}; + +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/palkia/include/variant/acpi/dptf.asl b/src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl new file mode 100644 index 0000000..c9b4fb3 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/include/variant/acpi/dptf.asl @@ -0,0 +1,121 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2020 The coreboot project Palkia. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#define DPTF_CPU_PASSIVE 0 +#define DPTF_CPU_CRITICAL 105 + +#define DPTF_TSR0_SENSOR_ID 0 +#define DPTF_TSR0_SENSOR_NAME "Battery Charger" +#define DPTF_TSR0_PASSIVE 59 +#define DPTF_TSR0_CRITICAL 80 + +#define DPTF_TSR1_SENSOR_ID 1 +#define DPTF_TSR1_SENSOR_NAME "5V Regulator" +#define DPTF_TSR1_PASSIVE 0 +#define DPTF_TSR1_CRITICAL 70 +#define DPTF_TSR1_ACTIVE_AC0 42 +#define DPTF_TSR1_ACTIVE_AC1 41 +#define DPTF_TSR1_ACTIVE_AC2 39 + +#define DPTF_TSR2_SENSOR_ID 2 +#define DPTF_TSR2_SENSOR_NAME "Ambient" +#define DPTF_TSR2_PASSIVE 0 +#define DPTF_TSR2_CRITICAL 65 + +#define DPTF_TSR3_SENSOR_ID 3 +#define DPTF_TSR3_SENSOR_NAME "CPU" +#define DPTF_TSR3_PASSIVE 44 +#define DPTF_TSR3_CRITICAL 90 + +#define DPTF_ENABLE_CHARGER +#define DPTF_ENABLE_FAN_CONTROL + +/* Charger performance states, board-specific values from charger and EC */ +Name (CHPS, Package () { + Package () { 0, 0, 0, 0, 255, 0x6a4, "mA", 0 }, /* 1.7A (MAX) */ + Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 }, /* 1.5A */ + Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 }, /* 1.0A */ +}) + +/* DFPS: Fan Performance States */ +Name (DFPS, Package () { + 0, // Revision + /* + * TODO : Need to update this Table after characterization. + * These are initial reference values. + */ + /* Control, Trip Point, Speed, NoiseLevel, Power */ + Package () {90, 0xFFFFFFFF, 6700, 220, 2200}, + Package () {80, 0xFFFFFFFF, 5800, 180, 1800}, + Package () {70, 0xFFFFFFFF, 5000, 145, 1450}, + Package () {60, 0xFFFFFFFF, 4900, 115, 1150}, + Package () {50, 0xFFFFFFFF, 3838, 90, 900}, + Package () {40, 0xFFFFFFFF, 2904, 55, 550}, + Package () {30, 0xFFFFFFFF, 2337, 30, 300}, + Package () {20, 0xFFFFFFFF, 1608, 15, 150}, + Package () {10, 0xFFFFFFFF, 800, 10, 100}, + Package () {0, 0xFFFFFFFF, 0, 0, 50} +}) + +Name (DART, Package () { + /* Fan effect on CPU */ + 0, // Revision + Package () { + /* + * Source, Target, Weight, AC0, AC1, AC2, AC3, AC4, AC5, AC6, + * AC7, AC8, AC9 + */ + _SB.DPTF.TFN1, _SB.PCI0.TCPU, 100, 90, 70, 50, 50, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR0, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR1, 100, 90, 70, 50, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR2, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + }, + Package () { + _SB.DPTF.TFN1, _SB.DPTF.TSR3, 100, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 + } +}) + +Name (DTRT, Package () { + /* CPU Throttle Effect on TSR3 */ + Package () { _SB.PCI0.TCPU, _SB.DPTF.TSR3, 100, 60, 0, 0, 0, 0 }, + + /* Charger Throttle Effect on TSR0 */ + Package () { _SB.DPTF.TCHG, _SB.DPTF.TSR0, 100, 60, 0, 0, 0, 0 }, +}) + +Name (MPPC, Package () +{ + 0x2, /* Revision */ + Package () { /* Power Limit 1 */ + 0, /* PowerLimitIndex, 0 for Power Limit 1 */ + 10000, /* PowerLimitMinimum */ + 15000, /* PowerLimitMaximum */ + 28000, /* TimeWindowMinimum */ + 28000, /* TimeWindowMaximum */ + 200 /* StepSize */ + }, + Package () { /* Power Limit 2 */ + 1, /* PowerLimitIndex, 1 for Power Limit 2 */ + 64000, /* PowerLimitMinimum */ + 64000, /* PowerLimitMaximum */ + 28000, /* TimeWindowMinimum */ + 28000, /* TimeWindowMaximum */ + 1000 /* StepSize */ + } +}) diff --git a/src/mainboard/google/hatch/variants/palkia/include/variant/ec.h b/src/mainboard/google/hatch/variants/palkia/include/variant/ec.h new file mode 100644 index 0000000..454c8d0 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/include/variant/ec.h @@ -0,0 +1,14 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2020 The coreboot project Palkia. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef VARIANT_EC_H +#define VARIANT_EC_H + +#include <baseboard/ec.h> + +#endif diff --git a/src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h b/src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h new file mode 100644 index 0000000..aaf6f4d --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/include/variant/gpio.h @@ -0,0 +1,20 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2020 The coreboot project Palkia. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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/palkia/memory.c b/src/mainboard/google/hatch/variants/palkia/memory.c new file mode 100644 index 0000000..1a4bf38 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/memory.c @@ -0,0 +1,64 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2020 The coreboot project Palkia. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include <baseboard/variants.h> +#include <baseboard/gpio.h> +#include <boardid.h> +#include <gpio.h> +#include <soc/cnl_memcfg_init.h> +#include <string.h> +#include <variant/gpio.h> + +static const struct cnl_mb_cfg baseboard_memcfg = { + /* + * The dqs_map arrays map the SoC pins to the lpddr3 pins + * for both channels. + * + * "The index of the array is CPU byte number, the values are DRAM byte + * numbers." - doc #573387 + * + * the index = pin number on SoC + * the value = pin number on lpddr3 part + */ + .dqs_map[DDR_CH0] = {4, 7, 5, 6, 0, 3, 2, 1}, + .dqs_map[DDR_CH1] = {0, 3, 2, 1, 4, 7, 6, 5}, + + .dq_map[DDR_CH0] = { + {0xf0, 0xf}, + {0x0, 0xf}, + {0xf0, 0xf}, + {0xf0, 0x0}, + {0xff, 0x0}, + {0xff, 0x0} + }, + .dq_map[DDR_CH1] = { + {0xf, 0xf0}, + {0x0, 0xf0}, + {0xf, 0xf0}, + {0xf, 0x0}, + {0xff, 0x0}, + {0xff, 0x0} + }, + + /* Palkia uses 200, 80.6 and 162 rcomp resistors */ + .rcomp_resistor = {200, 81, 162}, + + /* Palkia Rcomp target values */ + .rcomp_targets = {100, 40, 40, 23, 40}, + + /* Set CaVref config to 0 for LPDDR3 */ + .vref_ca_config = 0, + + /* Disable Early Command Training */ + .ect = 0, +}; + +void variant_memory_params(struct cnl_mb_cfg *bcfg) +{ + memcpy(bcfg, &baseboard_memcfg, sizeof(baseboard_memcfg)); +} diff --git a/src/mainboard/google/hatch/variants/palkia/overridetree.cb b/src/mainboard/google/hatch/variants/palkia/overridetree.cb new file mode 100644 index 0000000..0792b96 --- /dev/null +++ b/src/mainboard/google/hatch/variants/palkia/overridetree.cb @@ -0,0 +1,192 @@ +chip soc/intel/cannonlake + register "tdp_pl1_override" = "15" + register "tdp_pl2_override" = "64" + + register "SerialIoDevMode" = "{ + [PchSerialIoIndexI2C0] = PchSerialIoPci, + [PchSerialIoIndexI2C1] = PchSerialIoPci, + [PchSerialIoIndexI2C2] = PchSerialIoPci, + [PchSerialIoIndexI2C3] = PchSerialIoDisabled, + [PchSerialIoIndexI2C4] = PchSerialIoPci, + [PchSerialIoIndexSPI0] = PchSerialIoPci, + [PchSerialIoIndexSPI2] = PchSerialIoDisabled, + [PchSerialIoIndexUART0] = PchSerialIoSkipInit, + [PchSerialIoIndexUART1] = PchSerialIoDisabled, + [PchSerialIoIndexUART2] = PchSerialIoDisabled, + }" + + register "usb2_ports[2]" = "USB2_PORT_LONG(OC_SKIP)" # SD CARD + register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD CARD + + # No PCIe WiFi + register "PcieRpEnable[13]" = "0" + + # Intel Common SoC Config + #+-------------------+---------------------------+ + #| Field | Value | + #+-------------------+---------------------------+ + #| I2C0 | Trackpad | + #| I2C1 | Touchscreen | + #| I2C2 | 2nd Touchscreen | + #| I2C4 | Audio | + #+-------------------+---------------------------+ + register "common_soc_config" = "{ + .i2c[0] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 50, + .fall_time_ns = 15, + .data_hold_time_ns = 330, + }, + .i2c[1] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 60, + .fall_time_ns = 25, + }, + .i2c[2] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 60, + .fall_time_ns = 25, + }, + .i2c[4] = { + .speed = I2C_SPEED_FAST, + .rise_time_ns = 120, + .fall_time_ns = 120, + }, + }" + + device domain 0 on + device pci 14.0 on + chip drivers/usb/acpi + device usb 0.0 on + chip drivers/usb/acpi + register "desc" = ""Micro SD Card"" + register "type" = "UPC_TYPE_INTERNAL" + device usb 2.2 on end + end + chip drivers/usb/acpi + register "desc" = ""Left Type-A Port"" + register "type" = "UPC_TYPE_A" + register "group" = "ACPI_PLD_GROUP(1, 2)" + device usb 2.3 on end + end + chip drivers/usb/acpi + # No WWAN + device usb 2.5 off end + end + chip drivers/usb/acpi + # No Right Tpype-C port + device usb 3.1 off end + end + chip drivers/usb/acpi + register "desc" = ""Micro SD card"" + register "type" = "UPC_TYPE_INTERNAL" + device usb 3.2 on end + end + chip drivers/usb/acpi + register "desc" = ""Left Type-A Port 1"" + register "type" = "UPC_TYPE_A" + register "group" = "ACPI_PLD_GROUP(1, 2)" + device usb 3.3 on end + end + end + end + end + + # Native SD Card interface unused + device pci 14.5 off end + + device pci 15.0 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_A21_IRQ)" + register "wake" = "GPE0_DW0_21" + device i2c 15 on end + end + end + + device pci 15.1 on + chip drivers/i2c/hid + register "generic.hid" = ""ELAN9008"" + register "generic.desc" = ""ELAN Touchscreen USI"" + register "generic.irq" = + "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.enable_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "12" + register "generic.enable_off_delay_ms" = "10" + register "generic.has_power_resource" = "1" + register "generic.stop_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "15" + register "generic.stop_off_delay_ms" = "5" + register "hid_desc_reg_offset" = "0x01" + device i2c 10 on end + end + end # I2C 1 + + device pci 15.2 on + chip drivers/i2c/hid + register "generic.hid" = ""ELAN9009"" + register "generic.desc" = ""ELAN Touchscreen USI"" + register "generic.irq" = + "ACPI_IRQ_EDGE_LOW(GPP_C7_IRQ)" + register "generic.probed" = "1" + register "generic.enable_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "12" + register "generic.enable_off_delay_ms" = "10" + register "generic.has_power_resource" = "1" + register "generic.stop_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "15" + register "generic.stop_off_delay_ms" = "5" + register "hid_desc_reg_offset" = "0x01" + device i2c 10 on end + end + end #I2C 2 + + # I2C #3 unused + device pci 15.3 off end + + 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 + chip drivers/i2c/generic + register "hid" = ""10EC1011"" + register "desc" = ""RT1011 Tweeter Left Speaker Amp"" + register "uid" = "0" + register "name" = ""TL"" + device i2c 38 on end + end + chip drivers/i2c/generic + register "hid" = ""10EC1011"" + register "desc" = ""RT1011 Tweeter Right Speaker Amp"" + register "uid" = "1" + register "name" = ""TR"" + device i2c 39 on end + end + end #I2C #4 + # GSPI #1 unused + device pci 1e.3 off end + + device pci 1f.3 on + chip drivers/generic/max98357a + register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" + register "sdmode_delay" = "5" + device generic 0 on end + end + end # Intel I2S + end +end