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	default y
16	depends on SHELL
17	help
18	  Enable SMBus Shell.
19
20config SMBUS_STATS
21	bool "SMBus device Stats"
22	depends on STATS
23	help
24	  Enable SMBus Stats.
25
26config SMBUS_INIT_PRIORITY
27	int "Init priority"
28	default KERNEL_INIT_PRIORITY_DEFAULT
29	help
30	  SMBus device driver initialization priority.
31
32
33module = SMBUS
34module-str = smbus
35source "subsys/logging/Kconfig.template.log_config"
36
37config SMBUS_INTEL_PCH
38	bool "SMBus Intel PCH driver"
39	default y
40	depends on DT_HAS_INTEL_PCH_SMBUS_ENABLED
41	select PCIE
42	select DYNAMIC_INTERRUPTS
43	help
44	  Enable Intel Platform Controller Hub (PCH) SMBus driver.
45
46if SMBUS_INTEL_PCH
47
48choice SMBUS_INTEL_PCH_ACCESS
49	bool "SMBus register access mode"
50	default SMBUS_INTEL_PCH_ACCESS_IO
51	help
52	  Default PCH register access mode. Set default access IO so
53	  that both Qemu Q35 and Intel hardware are supported.
54
55config SMBUS_INTEL_PCH_ACCESS_IO
56	bool "I/O PCH SMBus Register Access Mode"
57	help
58	  Access PCH SMBus registers through I/O space.
59
60config SMBUS_INTEL_PCH_ACCESS_MMIO
61	bool "MMIO PCH SMBus Register Access Mode"
62	help
63	  Access PCH SMBus registers though MMIO space.
64
65endchoice
66
67config SMBUS_INTEL_PCH_HOST_NOTIFY
68	bool "SMBus Intel PCH Host Notify support"
69	default y
70	help
71	  Support Host Notify from peripheral devices.
72
73config SMBUS_INTEL_PCH_SMBALERT
74	bool "SMBus Intel PCH SMBALERT signal support"
75	default y
76	help
77	  Support SMBALERT signal from peripheral devices.
78
79endif # SMBUS_INTEL_PCH
80
81endif # SMBUS
82