drivers/i2c/rv3028c7: Add ACPI generation callbacks
commit15606481974b6c8cd266b4cfe0e473e18592f611
authorJan Samek <jan.samek@siemens.com>
Fri, 11 Nov 2022 14:59:05 +0000 (11 15:59 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 18 Nov 2022 16:03:53 +0000 (18 16:03 +0000)
tree1ffcfe21b76b3fe9140b614c2a5c12de9dffaa8d
parentb1bcd5bb8c67c362cd0528689d309cd7c7864393
drivers/i2c/rv3028c7: Add ACPI generation callbacks

Add ACPI generation callback to the driver after obtaining the
ACPI HID "MCRY3028" for this device from Microcrystal AG (VID: "MCRY").

Also add I2C bus speed field to the device config structure, which
is a required ACPI entry.

BUG=none
TEST=Disassemble the SSDT table and see whether the device entry
"MC28" is generated correctly. Also check whether the RV3028 driver
in Linux (drivers/rtc/rtc-rv-3028.c) is bound correctly after adding
an ACPI match table to it containing the HID. A proper kernel patch
is pending.

Change-Id: I3b8cf5c8dc551439755992ff05b6693e91cc3f21
Signed-off-by: Jan Samek <jan.samek@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69543
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
src/drivers/i2c/rv3028c7/chip.h
src/drivers/i2c/rv3028c7/rv3028c7.c
src/drivers/i2c/rv3028c7/rv3028c7.h