Benedikt Schmidt
fc86d0c3bc
drivers: smbus: extract handler function for SMB alert
...
Extract a helper function for handling an SMB alert, as every
SMBus implementation will have to loop through the peripheral
address which might have triggered the alert.
Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2023-12-12 10:57:41 +01:00
Andrei Emeltchenko
d7fd3db32e
drivers: smbus: pch: Simplify IRQ flags
...
Use COND_CODE_1() macro instead of macro trampoline.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-09-27 20:35:06 +03:00
Andrei Emeltchenko
cd2fe8c186
doc: smbus: Correct syntax in sources and headers
...
Correct syntax in SMBus sources and headers used to generate the SMBus
documentation.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-06-01 18:04:58 -04:00
Andrei Emeltchenko
1679faaa0e
smbus: Move smbus_utils.h from includes to driver area
...
Move smbus_utils.h header from generic includes to the driver's area
in order to have in include/zephyr/drivers only smbus.h header.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-30 09:45:02 +00:00
Andrei Emeltchenko
e829b72ad5
drivers: smbus: pch: Wrap respective code with ifdefs
...
Wrap code for SMBALERT and HOST_NOTIFY with configuration ifdefs.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00
Andrei Emeltchenko
a42ab2729f
smbus: Convert to use runtime BDF lookup
...
Convert PCH SMBus driver, tests and samples to use new dynamic BDF
lookup.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00
Andrei Emeltchenko
14923f4131
smbus: Refactor callbacks API
...
The callbacks API was similar to gpio / espi callbacks API. Refactor
it to use more intuitive names for set / remove callbacks.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00
Andrei Emeltchenko
fe46408ff2
drivers: smbus: Implement Host Notify and SMBALERT for PCH
...
Implement SMBus Host Notify and SMBALERT for Intel PCH driver.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00
Andrei Emeltchenko
2de1936acc
drivers: smbus: pch: Add Block Process Call operation
...
Add SMBus Block Process Call implementation for Intel PCH SMBus
driver.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00
Andrei Emeltchenko
4099bc2e63
drivers: smbus: Add Intel ICH / PCH SMbus driver
...
Add driver supporting Intel I/O Controller Hub (ICH), later renamed
to Intel Platform Controller Hub (PCH).
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-03-22 08:16:23 -04:00