diff options
author | Jan Samek <jan.samek@siemens.com> | 2022-11-11 15:59:05 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-18 16:03:53 +0000 |
commit | 15606481974b6c8cd266b4cfe0e473e18592f611 (patch) | |
tree | 1ffcfe21b76b3fe9140b614c2a5c12de9dffaa8d /src/drivers/i2c/rv3028c7/chip.h | |
parent | b1bcd5bb8c67c362cd0528689d309cd7c7864393 (diff) |
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>
Diffstat (limited to 'src/drivers/i2c/rv3028c7/chip.h')
-rw-r--r-- | src/drivers/i2c/rv3028c7/chip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/i2c/rv3028c7/chip.h b/src/drivers/i2c/rv3028c7/chip.h index 0ac400531b..0ed86ffeff 100644 --- a/src/drivers/i2c/rv3028c7/chip.h +++ b/src/drivers/i2c/rv3028c7/chip.h @@ -35,6 +35,7 @@ enum charge_mode { }; struct drivers_i2c_rv3028c7_config { + unsigned int bus_speed; /* Bus clock in Hz */ unsigned char user_weekday; /* User day of the week to set */ unsigned char user_day; /* User day to set */ unsigned char user_month; /* User month to set */ |