Commit d0bfc254 authored by Leifu Zhao's avatar Leifu Zhao Committed by Fabio Baltieri
Browse files

soc: ish: add pm service support for ish



This enables the power management for Intel ISH. It supports D0i1,
D0i2, D0i3 power saving modes for ISH.

Signed-off-by: default avatarLeifu Zhao <leifu.zhao@intel.com>
parent 96869ff3
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -13,6 +13,36 @@
	chosen {
	};

	power-states {
		d0i0: d0i0 {
			compatible = "zephyr,power-state";
			power-state-name = "runtime-idle";
			min-residency-us = <500>;
			substate-id = <1>;
		};

		d0i1: d0i1 {
			compatible = "zephyr,power-state";
			power-state-name = "suspend-to-idle";
			min-residency-us = <2000>;
			substate-id = <2>;
		};

		d0i2: d0i2 {
			compatible = "zephyr,power-state";
			power-state-name = "suspend-to-ram";
			min-residency-us = <4000>;
			substate-id = <3>;
		};

		d0i3: d0i3 {
			compatible = "zephyr,power-state";
			power-state-name = "suspend-to-disk";
			min-residency-us = <3000000>;
			substate-id = <4>;
		};
	};

	cpus {
		#address-cells = <1>;
		#size-cells = <0>;
@@ -21,6 +51,7 @@
			device_type = "cpu";
			compatible = "intel,ish";
			reg = <0>;
			cpu-power-states = <&d0i0 &d0i1 &d0i2 &d0i3>;
		};
	};

+1 −0
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ config SOC_FAMILY_INTEL_ISH
	select LOAPIC
	select CPU_HAS_FPU
	select INTEL_HAL
	select HAS_PM
+1 −0
Original line number Diff line number Diff line
@@ -6,5 +6,6 @@
zephyr_cc_option(-march=pentium -mtune=i486)

zephyr_sources(soc.c)
add_subdirectory_ifdef(CONFIG_PM pm)

include(../utils/build_ish_firmware.cmake)
+2 −0
Original line number Diff line number Diff line
@@ -16,3 +16,5 @@ config SOC
	default "intel_ish_5_8_0" if SOC_INTEL_ISH_5_8_0

endif # SOC_SERIES_INTEL_ISH5

rsource "pm/Kconfig.pm"
+5 −0
Original line number Diff line number Diff line
# Copyright (c) 2023 Intel Corporation.
#
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(power.c)
Loading