1# SMBus configuration options
2
3# Copyright (c) 2022 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig SMBUS
7	bool "System Management Bus (SMBus) drivers"
8	help
9	  Enable SMBus Driver Configuration
10
11if SMBUS
12
13config SMBUS_SHELL
14	bool "SMBus Shell"
15	depends on SHELL
16	help
17	  Enable SMBus Shell.
18
19config SMBUS_STATS
20	bool "SMBus device Stats"
21	depends on STATS
22	help
23	  Enable SMBus Stats.
24
25config SMBUS_INIT_PRIORITY
26	int "Init priority"
27	default KERNEL_INIT_PRIORITY_DEFAULT
28	help
29	  SMBus device driver initialization priority.
30
31
32module = SMBUS
33module-str = smbus
34source "subsys/logging/Kconfig.template.log_config"
35
36config SMBUS_INTEL_PCH
37	bool "SMBus Intel PCH driver"
38	default y
39	depends on DT_HAS_INTEL_PCH_SMBUS_ENABLED
40	select PCIE
41	select DYNAMIC_INTERRUPTS
42	help
43	  Enable Intel Platform Controller Hub (PCH) SMBus driver.
44
45if SMBUS_INTEL_PCH
46
47choice SMBUS_INTEL_PCH_ACCESS
48	bool "SMBus register access mode"
49	default SMBUS_INTEL_PCH_ACCESS_IO
50	help
51	  Default PCH register access mode. Set default access IO so
52	  that both Qemu Q35 and Intel hardware are supported.
53
54config SMBUS_INTEL_PCH_ACCESS_IO
55	bool "I/O PCH SMBus Register Access Mode"
56	help
57	  Access PCH SMBus registers through I/O space.
58
59config SMBUS_INTEL_PCH_ACCESS_MMIO
60	bool "MMIO PCH SMBus Register Access Mode"
61	help
62	  Access PCH SMBus registers though MMIO space.
63
64endchoice
65
66config SMBUS_INTEL_PCH_HOST_NOTIFY
67	bool "SMBus Intel PCH Host Notify support"
68	default y
69	help
70	  Support Host Notify from peripheral devices.
71
72config SMBUS_INTEL_PCH_SMBALERT
73	bool "SMBus Intel PCH SMBALERT signal support"
74	default y
75	help
76	  Support SMBALERT signal from peripheral devices.
77
78endif # SMBUS_INTEL_PCH
79
80config SMBUS_STM32
81	bool "STM32 SMBus driver"
82	default y
83	depends on DT_HAS_ST_STM32_SMBUS_ENABLED
84	depends on I2C_STM32
85	help
86	  Enable STM32 SMBus driver.
87
88if SMBUS_STM32
89
90config SMBUS_STM32_SMBALERT
91	bool "SMBus STM32 SMBALERT signal support"
92	default y
93	help
94	  Support SMBALERT signal from peripheral devices.
95
96endif # SMBUS_STM32
97
98endif # SMBUS
99