How intel/ecfw-zephyr works
This is Intel EC firmware for prototyping and evaluation. Its boot path checks and initializes board hardware and eSPI, configures straps, then starts cooperative firmware tasks. Those tasks implement host-facing management, power-state sequencing, keyboard and peripheral control, and optional thermal and diagnostic services, using board-specific configuration and hardware-interface drivers. The README provides no detailed capability map; subsystem coverage also uses the source index. Several connections among unsampled modules are therefore omitted rather than inferred.
Main entry points: smchost.c SMC host service · pwrplane.c Power sequencing · task_handler.c Task scheduler · periphmgmt.c Peripheral management
Components 25
Startup and board
- Firmware entry
app/app.c - Board setup
boards/board.c - Board configuration
boards/board_config.h - Task scheduler
misc/task_handler.c
Power control
- Power sequencing
app/power_sequencing/pwrplane.c - Sleep mode handling
app/power_sequencing/deepsx.c - Power sequence helpers
app/power_sequencing/pwrseq_utils.h
Host services
- SMC host service
app/smchost/smchost.c - ACPI SMC interface
app/smchost/smc.c - SCI events
app/smchost/sci.h - Keyboard host service
app/kbchost/kbchost.c - Peripheral management
app/peripheral_management/periphmgmt.c - Power button management
app/peripheral_management/pwrbtnmgmt.c
Platform features
- Thermal management
app/thermal_management/thermalmgmt.c - Thermal tuning
app/dtt/dtt_thermals.c - Serial flash support
app/saf/saf_flash_config.c - Download and execute
app/dnx/dnx.c - Postcode diagnostics
app/debug/postcodemgmt.c - SoC debug awareness
app/soc_debug_awareness/soc_debug.c
Hardware interfaces
- eSPI hub
drivers/espi_hub.c - EC GPIO
drivers/gpio_ec.h - Keyboard matrix
drivers/kbs_matrix.c - PECI hub
drivers/peci_hub.c - eSPI OOB manager
drivers/espioob_mngr.c
Other components
- Host / BIOS
Connections 38
- Firmware entry → Board setup: checks and initializes
app/app.c - Firmware entry → eSPI hub: initializes
app/app.c - Firmware entry → Task scheduler: starts tasks
app/app.c - Board setup → Board configuration: uses platform config
boards/board.c - Task scheduler → Power sequencing: starts task
misc/task_handler.c - Task scheduler → SMC host service: starts task
misc/task_handler.c - Task scheduler → Keyboard host service: starts task
misc/task_handler.c - Task scheduler → Peripheral management: starts task
misc/task_handler.c - Task scheduler → Thermal management: starts optional task
misc/task_handler.c - Task scheduler → Postcode diagnostics: starts optional task
misc/task_handler.c - Power sequencing → eSPI hub: uses eSPI signals
app/power_sequencing/pwrplane.c - Power sequencing → Sleep mode handling: uses sleep modes
app/power_sequencing/pwrplane.c - Power sequencing → Power sequence helpers: uses helpers
app/power_sequencing/pwrplane.c - Power sequencing → EC GPIO: reads and drives
app/power_sequencing/pwrplane.c - Power sequencing → Serial flash support: uses flash configuration
app/power_sequencing/pwrplane.c - SMC host service → ACPI SMC interface: dispatches host commands
app/smchost/smchost.c - SMC host service → eSPI hub: uses host bus
app/smchost/smchost.c - SMC host service → Peripheral management: calls management
app/smchost/smchost.c - SMC host service → Power sequencing: uses power state
app/smchost/smchost.c - SMC host service → PECI hub: uses PECI
app/smchost/smchost.c - ACPI SMC interface → SCI events: uses SCI interface
app/smchost/smc.c - Keyboard host service → Keyboard matrix: uses matrix
app/kbchost/kbchost.c - Keyboard host service → eSPI hub: uses host bus
app/kbchost/kbchost.c - Peripheral management → Power button management: uses button management
app/peripheral_management/periphmgmt.c - Peripheral management → SMC host service: uses host interface
app/peripheral_management/periphmgmt.c - Peripheral management → EC GPIO: uses GPIO
app/peripheral_management/periphmgmt.c - Thermal management → SMC host service: updates host state
app/thermal_management/thermalmgmt.c - Thermal management → Power sequencing: requests shutdown
- Thermal management → PECI hub: uses temperature data
app/thermal_management/thermalmgmt.c - Thermal management → eSPI OOB manager: uses OOB manager
app/thermal_management/thermalmgmt.c - Download and execute → eSPI hub: uses eSPI
app/dnx/dnx.c - Download and execute → EC GPIO: uses GPIO
app/dnx/dnx.c - Postcode diagnostics → eSPI hub: registers postcode handler
app/debug/postcodemgmt.c - Postcode diagnostics → Host / BIOS: reports postcodes
app/debug/postcodemgmt.c - Host / BIOS → SMC host service: sends management requests
- Host / BIOS → Keyboard host service: uses keyboard interface
app/kbchost/kbchost.c - SoC debug awareness → Peripheral management: uses peripheral state
app/soc_debug_awareness/soc_debug.c - SoC debug awareness → Keyboard matrix: uses keyboard matrix
app/soc_debug_awareness/soc_debug.c