drivers/i2c/tas5825m: Allow using I2C bus
commitca11545ca6d6bbc399cacc0c56b0212880fdeafb
authorTim Crawford <tcrawford@system76.com>
Thu, 7 Mar 2024 22:21:59 +0000 (7 15:21 -0700)
committerFelix Held <felix-coreboot@felixheld.de>
Sat, 23 Mar 2024 18:07:12 +0000 (23 18:07 +0000)
treea30d02e2ce2b1aac804a8033f2c7e89ee45afd26
parentcb92d28d7a22811f5399c589e5b231508ff42370
drivers/i2c/tas5825m: Allow using I2C bus

The latest Clevo boards connect the TAS5825M to one of the I2C
connections instead of the SMBus connection. The I2C ops are compatible
with SMBus, so always use them.

Tested on system76/oryp6 (uses SMBus) and in-development system76/oryp12
(uses I2C3). TAS5825M init is successful and speaker output works.

Change-Id: I2233d6977fd460b53e27260cdfabe42e30b98041
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81126
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jeremy Soller <jeremy@system76.com>
src/drivers/i2c/tas5825m/tas5825m.c