zephyr/drivers/espi
Mulin Chao 1f731c6c02 driver: soc: power: npcx: Add power managerment support.
This CL introduces power management driver that improves the efficiency
of ec operation by adjusting the chip’s power consumption to the level
of activity required by the application in npcx series.

The following list summarizes the main properties of the various chip
power states. Please refer the power.c file for more detail.

Main power states in npcx series include:
- Active: Core, RAM and modules operate at the clocks generated by PLL.
- Idle: Enter this state when the Core executes WFI or WFE instruction.
- Sleep: clock is stopped for most of modules but PLL is enabled.
- Deep Sleep: As Sleep mode but PLL is disabled.
- Standby: All power rails are turned off besides standby and battery
  power rails.

And this CL implements one power state, PM_STATE_SUSPEND_TO_IDLE, with
two sub-states for Zephyr power management system.
Sub-state 0 - "Deep Sleep" mode with “Instant” wake-up if residency
              time is greater or equal to 1 ms
Sub-state 1 - "Deep Sleep" mode with "Standard" wake-up if residency
              time is greater or equal to 201 ms

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2021-02-19 22:39:53 -05:00
..
CMakeLists.txt drivers: espi: Microchip eSPI add SAF support 2021-02-15 08:22:01 -05:00
Kconfig drivers: espi: config: Support for host-initiated eSPI traffic 2021-02-14 18:22:47 -05:00
Kconfig.espi_emul emul: espi: Add support for eSPI emulators 2021-01-20 17:49:19 -05:00
Kconfig.npcx driver: espi: add notification and opcodes for ec host command support. 2020-12-20 13:05:50 -05:00
Kconfig.xec drivers: espi: Microchip eSPI add SAF support 2021-02-15 08:22:01 -05:00
espi_emul.c emul: espi: Add support for eSPI emulators 2021-01-20 17:49:19 -05:00
espi_handlers.c drivers: eSPI: fixed build error in eSPI socketpair test suite. 2020-10-02 11:33:15 +02:00
espi_mchp_xec.c samples: drivers: espi: Showcase OOB Rx asynchronous handling 2021-02-14 18:22:47 -05:00
espi_npcx.c driver: espi: add acpi and customized op codes for lpc r/w request func. 2020-12-20 13:05:50 -05:00
espi_saf_mchp_xec.c drivers: espi: Microchip eSPI add SAF support 2021-02-15 08:22:01 -05:00
espi_utils.h drivers: eSPI: fixed build error in eSPI socketpair test suite. 2020-10-02 11:33:15 +02:00
host_subs_npcx.c driver: soc: power: npcx: Add power managerment support. 2021-02-19 22:39:53 -05:00