i2c: designware: Combine the init functions

Providing a single function for controller initialisation.
The controller initialisation has the same steps for master
and slave modes, except the timing parameters are only
needed in master mode.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260120130729.1679560-3-heikki.krogerus@linux.intel.com
This commit is contained in:
Heikki Krogerus 2026-01-20 14:07:26 +01:00 • committed by Andi Shyti
commit 38fa29b01a
No known key found for this signature in database
GPG key ID: DA78056626D32D6E
5 changed files with 85 additions and 117 deletions