diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2023-08-04 13:07:56 -0500 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-08-11 17:20:07 +0000 |
commit | abd561b7179bc566f8ca37952ee3d0ec2610458d (patch) | |
tree | 90d323a6aa394d277f51846ebaf1a63d383fc34b /src/mainboard/google/rambi/acpi/als_intersil.asl | |
parent | 9dcdec5c2fdcae936a896cf7e07dcaaaca7ea935 (diff) |
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>
Diffstat (limited to 'src/mainboard/google/rambi/acpi/als_intersil.asl')
-rw-r--r-- | src/mainboard/google/rambi/acpi/als_intersil.asl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mainboard/google/rambi/acpi/als_intersil.asl b/src/mainboard/google/rambi/acpi/als_intersil.asl new file mode 100644 index 0000000000..6e63bdbdc0 --- /dev/null +++ b/src/mainboard/google/rambi/acpi/als_intersil.asl @@ -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) + } + } + } +} |