2022-09-07 20:30:23 +08:00
|
|
|
# SMBus configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2022 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig SMBUS
|
2023-03-27 20:55:23 +08:00
|
|
|
bool "System Management Bus (SMBus) drivers"
|
2022-09-07 20:30:23 +08:00
|
|
|
help
|
|
|
|
Enable SMBus Driver Configuration
|
|
|
|
|
|
|
|
if SMBUS
|
|
|
|
|
2022-09-07 21:36:24 +08:00
|
|
|
config SMBUS_SHELL
|
|
|
|
bool "SMBus Shell"
|
|
|
|
depends on SHELL
|
|
|
|
help
|
|
|
|
Enable SMBus Shell.
|
|
|
|
|
2022-09-07 20:30:23 +08:00
|
|
|
config SMBUS_STATS
|
|
|
|
bool "SMBus device Stats"
|
|
|
|
depends on STATS
|
|
|
|
help
|
|
|
|
Enable SMBus Stats.
|
|
|
|
|
|
|
|
config SMBUS_INIT_PRIORITY
|
|
|
|
int "Init priority"
|
2023-04-20 20:30:43 +08:00
|
|
|
default KERNEL_INIT_PRIORITY_DEFAULT
|
2022-09-07 20:30:23 +08:00
|
|
|
help
|
|
|
|
SMBus device driver initialization priority.
|
|
|
|
|
|
|
|
|
|
|
|
module = SMBUS
|
|
|
|
module-str = smbus
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2022-09-08 21:51:10 +08:00
|
|
|
config SMBUS_INTEL_PCH
|
|
|
|
bool "SMBus Intel PCH driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_INTEL_PCH_SMBUS_ENABLED
|
2023-05-12 23:30:47 +08:00
|
|
|
select PCIE
|
|
|
|
select DYNAMIC_INTERRUPTS
|
2022-09-08 21:51:10 +08:00
|
|
|
help
|
|
|
|
Enable Intel Platform Controller Hub (PCH) SMBus driver.
|
|
|
|
|
|
|
|
if SMBUS_INTEL_PCH
|
|
|
|
|
|
|
|
choice SMBUS_INTEL_PCH_ACCESS
|
|
|
|
bool "SMBus register access mode"
|
|
|
|
default SMBUS_INTEL_PCH_ACCESS_IO
|
|
|
|
help
|
|
|
|
Default PCH register access mode. Set default access IO so
|
|
|
|
that both Qemu Q35 and Intel hardware are supported.
|
|
|
|
|
|
|
|
config SMBUS_INTEL_PCH_ACCESS_IO
|
|
|
|
bool "I/O PCH SMBus Register Access Mode"
|
|
|
|
help
|
|
|
|
Access PCH SMBus registers through I/O space.
|
|
|
|
|
|
|
|
config SMBUS_INTEL_PCH_ACCESS_MMIO
|
|
|
|
bool "MMIO PCH SMBus Register Access Mode"
|
|
|
|
help
|
|
|
|
Access PCH SMBus registers though MMIO space.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2022-10-05 21:34:20 +08:00
|
|
|
config SMBUS_INTEL_PCH_HOST_NOTIFY
|
|
|
|
bool "SMBus Intel PCH Host Notify support"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Support Host Notify from peripheral devices.
|
|
|
|
|
|
|
|
config SMBUS_INTEL_PCH_SMBALERT
|
|
|
|
bool "SMBus Intel PCH SMBALERT signal support"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Support SMBALERT signal from peripheral devices.
|
|
|
|
|
2022-09-08 21:51:10 +08:00
|
|
|
endif # SMBUS_INTEL_PCH
|
|
|
|
|
2022-09-07 20:30:23 +08:00
|
|
|
endif # SMBUS
|