mb/google/rambi: add expresso variant
This variant was inadvertently missed when upstreaming other rambi variants, so add it here for completeness. Add ACPI for the light sensor to common code to match all other i2c devices. Sourced from downstream Google branch firmware-expresso-5216.223.B, commit 6f4073c0e8c8 ("baytrail: implement baytrail technical advisory 556192"). Change-Id: Ia507f95f6af85344e1ab8452f7b3c2cc61526699 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76950 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
9dcdec5c2f
commit
abd561b717
|
@ -32,6 +32,11 @@ config BOARD_GOOGLE_ENGUARDE
|
|||
select INTEL_GMA_HAVE_VBT
|
||||
select SYSTEM_TYPE_LAPTOP
|
||||
|
||||
config BOARD_GOOGLE_EXPRESSO
|
||||
select BOARD_GOOGLE_BASEBOARD_RAMBI
|
||||
select INTEL_GMA_HAVE_VBT
|
||||
select SYSTEM_TYPE_LAPTOP
|
||||
|
||||
config BOARD_GOOGLE_GLIMMER
|
||||
select BOARD_GOOGLE_BASEBOARD_RAMBI
|
||||
select INTEL_GMA_HAVE_VBT
|
||||
|
@ -99,6 +104,7 @@ config VARIANT_DIR
|
|||
default "candy" if BOARD_GOOGLE_CANDY
|
||||
default "clapper" if BOARD_GOOGLE_CLAPPER
|
||||
default "enguarde" if BOARD_GOOGLE_ENGUARDE
|
||||
default "expresso" if BOARD_GOOGLE_EXPRESSO
|
||||
default "glimmer" if BOARD_GOOGLE_GLIMMER
|
||||
default "gnawty" if BOARD_GOOGLE_GNAWTY
|
||||
default "heli" if BOARD_GOOGLE_HELI
|
||||
|
@ -117,6 +123,7 @@ config MAINBOARD_PART_NUMBER
|
|||
default "Candy" if BOARD_GOOGLE_CANDY
|
||||
default "Clapper" if BOARD_GOOGLE_CLAPPER
|
||||
default "Enguarde" if BOARD_GOOGLE_ENGUARDE
|
||||
default "Expresso" if BOARD_GOOGLE_EXPRESSO
|
||||
default "Glimmer" if BOARD_GOOGLE_GLIMMER
|
||||
default "Gnawty" if BOARD_GOOGLE_GNAWTY
|
||||
default "Heli" if BOARD_GOOGLE_HELI
|
||||
|
|
|
@ -12,6 +12,9 @@ config BOARD_GOOGLE_CLAPPER
|
|||
config BOARD_GOOGLE_ENGUARDE
|
||||
bool "-> Enguarde"
|
||||
|
||||
config BOARD_GOOGLE_EXPRESSO
|
||||
bool "-> Expresso"
|
||||
|
||||
config BOARD_GOOGLE_GLIMMER
|
||||
bool "-> Glimmer (Lenovo ThinkPad 11e Chromebook)"
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <variant/onboard.h>
|
||||
|
||||
Scope (\_SB.PCI0.I2C5)
|
||||
{
|
||||
Device (ALSI)
|
||||
{
|
||||
Name (_HID, EisaId ("LSD2918"))
|
||||
Name (_DDN, "Intersil 29018 Ambient Light Sensor")
|
||||
Name (_UID, 1)
|
||||
Name (_CRS, ResourceTemplate()
|
||||
{
|
||||
I2cSerialBus (
|
||||
0x44, // SlaveAddress
|
||||
ControllerInitiated, // SlaveMode
|
||||
400000, // ConnectionSpeed
|
||||
AddressingMode7Bit, // AddressingMode
|
||||
"\\_SB.I2C5", // ResourceSource
|
||||
)
|
||||
Interrupt (ResourceConsumer, Edge, ActiveLow)
|
||||
{
|
||||
BOARD_ALS_IRQ
|
||||
}
|
||||
})
|
||||
Method (_STA)
|
||||
{
|
||||
If (\S5EN == 1) {
|
||||
Return (0xF)
|
||||
} Else {
|
||||
Return (0x0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Order matters for SPD sources. The following indicies
|
||||
# define the SPD data to use.
|
||||
# 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
|
||||
# 0b001 - 4GiB total - 2 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz
|
||||
# 0b010 - 2GiB total - 2 x 1GiB Micron MT41K128M16JT-125:K 1600MHz
|
||||
# 0b011 - 2GiB total - 2 x 1GiB Hynix H5TC2G63FFR-PBA 1600MHz
|
||||
# 0b100 - 2GiB total - 1 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
|
||||
# 0b101 - 2GiB total - 1 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz
|
||||
SPD_SOURCES = micron_2GiB_dimm_MT41K256M16HA-125
|
||||
SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
|
||||
SPD_SOURCES += micron_1GiB_dimm_MT41K128M16JT-125
|
||||
SPD_SOURCES += hynix_1GiB_dimm_H5TC2G63FFR-PBA
|
||||
SPD_SOURCES += micron_2GiB_dimm_MT41K256M16HA-125
|
||||
SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
|
Binary file not shown.
|
@ -0,0 +1,216 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <soc/gpio.h>
|
||||
#include <mainboard/google/rambi/irqroute.h>
|
||||
|
||||
/* NCORE GPIOs */
|
||||
static const struct soc_gpio_map gpncore_gpio_map[] = {
|
||||
GPIO_FUNC2, /* S0_NC00 - INT_HDMI_HPD - INT */
|
||||
GPIO_FUNC2, /* S0_NC01 - HDMI_DDCDATA_SW */
|
||||
GPIO_FUNC2, /* S0_NC02 - HDMI_DDCCLK_SW */
|
||||
GPIO_NC, /* S0_NC03 - NC */
|
||||
GPIO_NC, /* S0_NC04 - NC */
|
||||
GPIO_NC, /* S0_NC05 - NC */
|
||||
GPIO_FUNC2, /* S0_NC06 - EDP_HPD_L */
|
||||
GPIO_INPUT, /* S0_NC07 - DDI1_DDCDATA - STRAP */
|
||||
GPIO_NC, /* S0_NC08 - NC */
|
||||
GPIO_OUT_HIGH, /* S0_NC09 - SOC_DISP_ON_C */
|
||||
GPIO_FUNC2, /* S0_NC10 - SOC_EDP_BLON_C */
|
||||
GPIO_FUNC2, /* S0_NC11 - SOC_DPST_PWM_C */
|
||||
GPIO_NC, /* S0_NC12 - NC */
|
||||
GPIO_INPUT, /* S0_NC13 - GPIO_NC13 - STRAP */
|
||||
GPIO_NC, /* S0_NC14 - NC */
|
||||
GPIO_DEFAULT, /* S0_NC15 - XDP_GPIO_S0_NC15 */
|
||||
GPIO_DEFAULT, /* S0_NC16 - XDP_GPIO_S0_NC16 */
|
||||
GPIO_DEFAULT, /* S0_NC17 - XDP_GPIO_S0_NC17 */
|
||||
GPIO_DEFAULT, /* S0_NC18 - XDP_GPIO_S0_NC18 */
|
||||
GPIO_DEFAULT, /* S0_NC19 - XDP_GPIO_S0_NC19 */
|
||||
GPIO_DEFAULT, /* S0_NC20 - XDP_GPIO_S0_NC20 */
|
||||
GPIO_DEFAULT, /* S0_NC21 - XDP_GPIO_S0_NC21 */
|
||||
GPIO_DEFAULT, /* S0_NC22 - XDP_GPIO_S0_NC22 */
|
||||
GPIO_DEFAULT, /* S0_NC23 - XDP_GPIO_S0_NC23 */
|
||||
GPIO_NC, /* S0_NC24 - NC */
|
||||
GPIO_NC, /* S0_NC25 - NC */
|
||||
GPIO_NC, /* S0_NC26 - NC */
|
||||
GPIO_END
|
||||
};
|
||||
|
||||
/* SCORE GPIOs */
|
||||
static const struct soc_gpio_map gpscore_gpio_map[] = {
|
||||
GPIO_ACPI_SCI, /* S0_SC000 - SOC_KBC_SCI - INT */
|
||||
GPIO_FUNC2, /* S0_SC001 - SATA_DEVSLP_C */
|
||||
GPIO_NC, /* S0-SC002 - SATA_LED_R_N (NC/PU) */
|
||||
GPIO_FUNC1, /* S0-SC003 - PCIE_CLKREQ_IMAGE# */
|
||||
GPIO_FUNC1, /* S0-SC004 - PCIE_CLKREQ_WLAN# */
|
||||
GPIO_NC, /* S0-SC005 - PCIE_CLKREQ_LAN# (NC) */
|
||||
GPIO_NC, /* S0-SC006 - PCIE_CLKREQ3# (NC) */
|
||||
GPIO_FUNC(2, PULL_DISABLE, 10K), /* S0-SC007 - SD3_WP external pull */
|
||||
GPIO_NC, /* S0-SC008 - ACZ_RST# (NC) */
|
||||
GPIO_NC, /* S0-SC009 - ACZ_SYNC (NC) */
|
||||
GPIO_NC, /* S0-SC010 - ACZ_BCLK (NC) */
|
||||
GPIO_NC, /* S0-SC011 - ACZ_STDOUT (NC) */
|
||||
GPIO_NC, /* S0-SC012 - PCH_AZ_CODEC_SDIN0 (NC) */
|
||||
GPIO_NC, /* S0-SC013 - NC */
|
||||
GPIO_INPUT, /* S0-SC014 - DET_TRIGGER - INT */
|
||||
GPIO_INPUT, /* S0-SC015 - AJACK_MICPRES_L - INT */
|
||||
GPIO_FUNC(3, PULL_DOWN, 20K), /* S0-SC016 - MMC1_45_CLK */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC017 - MMC1_45_D[0] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC018 - MMC1_45_D[1] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC019 - MMC1_45_D[2] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC020 - MMC1_45_D[3] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC021 - MMC1_45_D[4] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC022 - MMC1_45_D[5] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC023 - MMC1_45_D[6] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC024 - MMC1_45_D[7] */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC025 - MMC1_45_CMD */
|
||||
GPIO_FUNC(3, PULL_UP, 20K), /* S0-SC026 - MMC1_45_RST */
|
||||
GPIO_NC, /* S0-SC027 - NC */
|
||||
GPIO_NC, /* S0-SC028 - NC */
|
||||
GPIO_NC, /* S0-SC029 - NC */
|
||||
GPIO_NC, /* S0-SC030 - NC */
|
||||
GPIO_NC, /* S0-SC031 - NC */
|
||||
GPIO_NC, /* S0-SC032 - NC */
|
||||
GPIO_FUNC(1, PULL_DOWN, 20K), /* S0-SC033 - SD3_CLK */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC034 - SD3_D0 */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC035 - SD3_D1 */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC036 - SD3_D2 */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC037 - SD3_D3 */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC038 - SD3_CD# */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC039 - SD3_CMD */
|
||||
GPIO_NC, /* S0-SC040 - SDMMC3_1P8_EN - TP3 */
|
||||
GPIO_FUNC(1, PULL_UP, 20K), /* S0-SC041 - SDIO3_PWR_EN# */
|
||||
GPIO_FUNC1, /* S0-SC042 - LPC_LAD0 */
|
||||
GPIO_FUNC1, /* S0-SC043 - LPC-LAD1 */
|
||||
GPIO_FUNC1, /* S0-SC044 - LPC_LAD2 */
|
||||
GPIO_FUNC1, /* S0-SC045 - LPC_LAD3 */
|
||||
GPIO_FUNC1, /* S0-SC046 - LPC_LFRAME# */
|
||||
GPIO_FUNC1, /* S0-SC047 - PCLK_TPM */
|
||||
GPIO_FUNC1, /* S0-SC048 - CLK_PCI_EC */
|
||||
GPIO_FUNC1, /* S0-SC049 - LPC_CLKRUN_L */
|
||||
GPIO_NC, /* S0-SC050 - IRQ_SERIRQ */
|
||||
GPIO_NC, /* S0-SC051 - SMB_SOC_DATA (XDP) */
|
||||
GPIO_NC, /* S0-SC052 - SMB_SOC_CLK (XDP) */
|
||||
GPIO_NC, /* S0-SC053 - SMB_SOC_ALERTB (NC) */
|
||||
GPIO_DEFAULT, /* S0-SC054 - NC */
|
||||
GPIO_DIRQ, /* S0-SC055 - TRACKPAD_INT_DX */
|
||||
GPIO_INPUT, /* S0-SC056 - GPIO_S0_SC_56 - STRAP */
|
||||
GPIO_FUNC1, /* S0-SC057 - PCH_UART_TXD */
|
||||
GPIO_INPUT, /* S0-SC058 - SIM_DET_C */
|
||||
GPIO_INPUT_LEGACY, /* S0-SC059 - EC_IN_RW_C */
|
||||
GPIO_NC, /* S0-SC060 - NC */
|
||||
GPIO_FUNC1, /* S0-SC061 - SOC_UART_RX */
|
||||
GPIO_FUNC1, /* S0-SC062 - I2S_BCLK */
|
||||
GPIO_FUNC1, /* S0-SC063 - I2S_LRCLK */
|
||||
GPIO_FUNC1, /* S0-SC064 - I2S_DIN */
|
||||
GPIO_FUNC1, /* S0-SC065 - I2S_DOUT */
|
||||
GPIO_FUNC1, /* S0-SC066 - SIO_SPI_CS# */
|
||||
GPIO_FUNC1, /* S0-SC067 - SIO_SPI_MISO */
|
||||
GPIO_FUNC1, /* S0-SC068 - SIO_SPI_MOSI */
|
||||
GPIO_FUNC1, /* S0-SC069 - SIO_SPI_CLK */
|
||||
GPIO_DIRQ, /* S0-SC070 - ALS_INT_L - INT */
|
||||
GPIO_NC, /* S0-SC071 - NC */
|
||||
GPIO_DIRQ, /* S0-SC072 - TOUCH_INT_L_DX */
|
||||
GPIO_NC, /* S0-SC073 - NC */
|
||||
GPIO_NC, /* S0-SC074 - SIO_UART2_RXD (NC) */
|
||||
GPIO_NC, /* S0-SC075 - SIO_UART2_TXD (NC) */
|
||||
GPIO_INPUT, /* S0-SC076 - BIOS_STRAP - STRAP */
|
||||
GPIO_INPUT, /* S0-SC077 - SOC_OVERRIDE - STRAP */
|
||||
GPIO_FUNC1, /* S0-SC078 - I2C_0_SDA */
|
||||
GPIO_FUNC1, /* S0-SC079 - I2C_0_SCL */
|
||||
GPIO_FUNC1, /* S0-SC080 - I2C_1_SDA */
|
||||
GPIO_FUNC1, /* S0-SC081 - I2C_1_SCL */
|
||||
GPIO_NC, /* S0-SC082 - NC */
|
||||
GPIO_NC, /* S0-SC083 - NC */
|
||||
GPIO_NC, /* S0-SC084 - NC */
|
||||
GPIO_NC, /* S0-SC085 - NC */
|
||||
GPIO_FUNC1, /* S0-SC086 - I2C_4_SDA */
|
||||
GPIO_FUNC1, /* S0-SC087 - I2C_4_SCL */
|
||||
GPIO_FUNC1, /* S0-SC088 - I2C_5_SDA */
|
||||
GPIO_FUNC1, /* S0-SC089 - I2C_5_SCL */
|
||||
GPIO_NC, /* S0-SC090 - NC */
|
||||
GPIO_NC, /* S0-SC091 - NC */
|
||||
GPIO_NC, /* S0-SC092 - I2C_NGFF_SDA (NC/PU) */
|
||||
GPIO_NC, /* S0-SC093 - I2C_NGFF_SCL (NC/PU) */
|
||||
GPIO_NC, /* S0-SC094 - NC */
|
||||
GPIO_NC, /* S0-SC095 - SIO_PWM1 (NC) */
|
||||
GPIO_FUNC1, /* S0-SC096 - I2S_MCLK */
|
||||
GPIO_NC, /* S0-SC097 - NC */
|
||||
GPIO_NC, /* S0-SC098 - NC */
|
||||
GPIO_NC, /* S0-SC099 - NC */
|
||||
GPIO_NC, /* S0-SC100 - NC */
|
||||
GPIO_DIRQ, /* S0-SC101 - KBD_IRQ# */
|
||||
GPIO_END
|
||||
};
|
||||
|
||||
/* SSUS GPIOs */
|
||||
static const struct soc_gpio_map gpssus_gpio_map[] = {
|
||||
GPIO_ACPI_WAKE, /* S500 - PCH_WAKE# */
|
||||
GPIO_ACPI_WAKE, /* S501 - TRACKPAD_INT# - INT */
|
||||
GPIO_ACPI_WAKE, /* S502 - TOUCH_INT# - INT */
|
||||
GPIO_FUNC6, /* S503 - LTE_WAKE_L# - INT */
|
||||
GPIO_NC, /* S504 - SOC_JTAG2_TDO (NC/PU) */
|
||||
GPIO_FUNC1, /* S505 - SUS_CLK_WLAN (NC) */
|
||||
GPIO_INPUT_PU, /* S506 - PCH_SPI_WP */
|
||||
GPIO_ACPI_SMI, /* S507 - SOC_KBC_SMI - INT */
|
||||
GPIO_NC, /* S508 - NC */
|
||||
GPIO_DIRQ, /* S509 - MUX_AUD_INT1# */
|
||||
GPIO_OUT_HIGH, /* S510 - WIFI_DISABLE_L */
|
||||
GPIO_FUNC0, /* S511 - SUSPWRDNACK */
|
||||
GPIO_FUNC0, /* S512 - WIFI_SUSCLK */
|
||||
GPIO_FUNC0, /* S513 - SLP_SX */
|
||||
GPIO_NC, /* S514 - NC */
|
||||
GPIO_FUNC0, /* S515 - WLAN_WAKE_L - INT */
|
||||
GPIO_FUNC0, /* S516 - PCH_PWRBTN_L */
|
||||
GPIO_NC, /* S517 - NC */
|
||||
GPIO_FUNC0, /* S518 - SUS_STAT# */
|
||||
GPIO_FUNC0, /* S519 - USB_OC0# */
|
||||
GPIO_FUNC0, /* S520 - USB_OC1# */
|
||||
GPIO_NC, /* S521 - NC */
|
||||
GPIO_NC, /* S522 - XDP_GPIO_DFX0 */
|
||||
GPIO_NC, /* S523 - XDP_GPIO_DFX1 */
|
||||
GPIO_NC, /* S524 - XDP_GPIO_DFX2 */
|
||||
GPIO_NC, /* S525 - XDP_GPIO_DFX3 */
|
||||
GPIO_NC, /* S526 - XDP_GPIO_DFX4 */
|
||||
GPIO_NC, /* S527 - XDP_GPIO_DFX5 */
|
||||
GPIO_NC, /* S528 - XDP_GPIO_DFX6 */
|
||||
GPIO_NC, /* S529 - XDP_GPIO_DFX7 */
|
||||
GPIO_NC, /* S530 - XDP_GPIO_DFX8 */
|
||||
GPIO_NC, /* S531 - NC */
|
||||
GPIO_NC, /* S532 - NC */
|
||||
GPIO_NC, /* S533 - NC */
|
||||
GPIO_NC, /* S534 - NC */
|
||||
GPIO_OUT_HIGH, /* S535 - LTE_DISABLE_L */
|
||||
GPIO_NC, /* S536 - NC */
|
||||
GPIO_INPUT, /* S537 - RAM_ID0 */
|
||||
GPIO_INPUT, /* S538 - RAM_ID1 */
|
||||
GPIO_INPUT, /* S539 - RAM_ID2 */
|
||||
GPIO_NC, /* S540 - NC */
|
||||
GPIO_NC, /* S541 - NC */
|
||||
GPIO_NC, /* S542 - NC */
|
||||
GPIO_NC, /* S543 - NC */
|
||||
GPIO_END
|
||||
};
|
||||
|
||||
static const u8 core_dedicated_irq[GPIO_MAX_DIRQS] = {
|
||||
[TPAD_IRQ_OFFSET] = TPAD_IRQ_GPIO,
|
||||
[TOUCH_IRQ_OFFSET] = TOUCH_IRQ_GPIO,
|
||||
[I8042_IRQ_OFFSET] = I8042_IRQ_GPIO,
|
||||
[ALS_IRQ_OFFSET] = ALS_IRQ_GPIO,
|
||||
};
|
||||
|
||||
static const u8 sus_dedicated_irq[GPIO_MAX_DIRQS] = {
|
||||
[CODEC_IRQ_OFFSET] = CODEC_IRQ_GPIO,
|
||||
};
|
||||
|
||||
static struct soc_gpio_config gpio_config = {
|
||||
.ncore = gpncore_gpio_map,
|
||||
.score = gpscore_gpio_map,
|
||||
.ssus = gpssus_gpio_map,
|
||||
.core_dirq = &core_dedicated_irq,
|
||||
.sus_dirq = &sus_dedicated_irq,
|
||||
};
|
||||
|
||||
struct soc_gpio_config *mainboard_get_gpios(void)
|
||||
{
|
||||
return &gpio_config;
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#define DPTF_CPU_PASSIVE 80
|
||||
#define DPTF_CPU_CRITICAL 90
|
||||
|
||||
#define DPTF_TSR0_SENSOR_ID 1
|
||||
#define DPTF_TSR0_SENSOR_NAME "TMP432_Internal"
|
||||
#define DPTF_TSR0_PASSIVE 48
|
||||
#define DPTF_TSR0_CRITICAL 70
|
||||
|
||||
#define DPTF_TSR1_SENSOR_ID 2
|
||||
#define DPTF_TSR1_SENSOR_NAME "TMP432_Power_top"
|
||||
#define DPTF_TSR1_PASSIVE 60
|
||||
#define DPTF_TSR1_CRITICAL 70
|
||||
|
||||
#define DPTF_TSR2_SENSOR_ID 3
|
||||
#define DPTF_TSR2_SENSOR_NAME "TMP432_CPU_bottom"
|
||||
#define DPTF_TSR2_PASSIVE 55
|
||||
#define DPTF_TSR2_CRITICAL 70
|
||||
|
||||
#define DPTF_ENABLE_CHARGER
|
||||
|
||||
/* 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 */
|
||||
Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 }, /* 0.5A */
|
||||
Package () { 0, 0, 0, 0, 0, 0x080, "mA", 0 }, /* 0.128A */
|
||||
})
|
|
@ -0,0 +1,10 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
/* Atmel trackpad */
|
||||
#include <mainboard/google/rambi/acpi/trackpad_atmel.asl>
|
||||
|
||||
/* Atmel touchscreen */
|
||||
#include <mainboard/google/rambi/acpi/touchscreen_atmel.asl>
|
||||
|
||||
/* Intersil ALS */
|
||||
#include <mainboard/google/rambi/acpi/als_intersil.asl>
|
|
@ -0,0 +1,3 @@
|
|||
/* SPDX-License-Identifier: CC-PDDC */
|
||||
|
||||
/* Please update the license if adding licensable material. */
|
|
@ -0,0 +1,29 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef ONBOARD_H
|
||||
#define ONBOARD_H
|
||||
|
||||
#include <mainboard/google/rambi/irqroute.h>
|
||||
|
||||
/* PCH wake signal from EC. */
|
||||
#define BOARD_PCH_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(0)
|
||||
|
||||
#define BOARD_TRACKPAD_NAME "trackpad"
|
||||
#define BOARD_TRACKPAD_IRQ GPIO_S0_DED_IRQ(TPAD_IRQ_OFFSET)
|
||||
#define BOARD_TRACKPAD_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(1)
|
||||
#define BOARD_TRACKPAD_I2C_BUS 0
|
||||
#define BOARD_TRACKPAD_I2C_ADDR 0x4b
|
||||
|
||||
#define BOARD_TOUCHSCREEN_NAME "touchscreen"
|
||||
#define BOARD_TOUCHSCREEN_IRQ GPIO_S0_DED_IRQ(TOUCH_IRQ_OFFSET)
|
||||
#define BOARD_TOUCHSCREEN_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(2)
|
||||
#define BOARD_TOUCHSCREEN_I2C_BUS 5
|
||||
#define BOARD_TOUCHSCREEN_I2C_ADDR 0x4a
|
||||
|
||||
#define BOARD_I8042_IRQ GPIO_S0_DED_IRQ(I8042_IRQ_OFFSET)
|
||||
#define BOARD_CODEC_IRQ GPIO_S5_DED_IRQ(CODEC_IRQ_OFFSET)
|
||||
#define BOARD_ALS_IRQ GPIO_S0_DED_IRQ(ALS_IRQ_OFFSET)
|
||||
|
||||
#define SIO_EC_ENABLE_PS2K // Enable PS/2 Keyboard
|
||||
|
||||
#endif
|
|
@ -0,0 +1,26 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef VARIANT_H
|
||||
#define VARIANT_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/*
|
||||
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
|
||||
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
|
||||
* 0b001 - 4GiB total - 2 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz
|
||||
* 0b010 - 2GiB total - 2 x 1GiB Micron MT41K128M16JT-125:K 1600MHz
|
||||
* 0b011 - 2GiB total - 2 x 1GiB Hynix H5TC2G63FFR-PBA 1600MHz
|
||||
* 0b100 - 2GiB total - 1 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
|
||||
* 0b101 - 2GiB total - 1 x 2GiB Hynix H5TC4G63AFR-PBA 1600MHz
|
||||
*/
|
||||
|
||||
static const uint32_t dual_channel_config =
|
||||
(1 << 0) | (1 << 1) | (1 << 2) | (1 << 3);
|
||||
|
||||
#define SPD_SIZE 256
|
||||
#define GPIO_SSUS_37_PAD 57
|
||||
#define GPIO_SSUS_38_PAD 50
|
||||
#define GPIO_SSUS_39_PAD 58
|
||||
|
||||
#endif
|
|
@ -0,0 +1,11 @@
|
|||
chip soc/intel/baytrail
|
||||
|
||||
# Allow PCIe devices to wake system from suspend
|
||||
register "pcie_wake_enable" = "1"
|
||||
|
||||
device domain 0 on
|
||||
device pci 18.5 on end # I2C5
|
||||
device pci 18.6 on end # I2C6
|
||||
device pci 1c.1 on end # PCIE_PORT2
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue