zephyr/drivers/smbus/Kconfig
Henrik Brix Andersen c0c8952739 shell: do not enable subsystem/driver shell modules by default
Do not enable subsystem/driver shell modules by default and stop abusing
CONFIG_SHELL_MINIMAL, which is internal to the shell subsystem, to decide
when to enable a driver shell.

The list of shell modules has grown considerably through the
years. Enabling CONFIG_SHELL for doing e.g. an interactive debug session
leads to a large number of shell modules also being enabled unless
explicitly disabled, which again leads to non-negligible increases in
RAM/ROM usage.

This commit attempts to establish a policy of subsystem/driver shell
modules being disabled by default, requiring the user/application to
explicitly enable only those needed.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-11-20 09:21:40 +01:00

81 lines
1.7 KiB
Plaintext

# SMBus configuration options
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menuconfig SMBUS
bool "System Management Bus (SMBus) drivers"
help
Enable SMBus Driver Configuration
if SMBUS
config SMBUS_SHELL
bool "SMBus Shell"
depends on SHELL
help
Enable SMBus Shell.
config SMBUS_STATS
bool "SMBus device Stats"
depends on STATS
help
Enable SMBus Stats.
config SMBUS_INIT_PRIORITY
int "Init priority"
default KERNEL_INIT_PRIORITY_DEFAULT
help
SMBus device driver initialization priority.
module = SMBUS
module-str = smbus
source "subsys/logging/Kconfig.template.log_config"
config SMBUS_INTEL_PCH
bool "SMBus Intel PCH driver"
default y
depends on DT_HAS_INTEL_PCH_SMBUS_ENABLED
select PCIE
select DYNAMIC_INTERRUPTS
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
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.
endif # SMBUS_INTEL_PCH
endif # SMBUS