From 91ecb1518676e515c6ebbb3d87a8a99b44ffc07d Mon Sep 17 00:00:00 2001 From: Ananth Raghavan Subramanian Date: Wed, 1 May 2019 13:50:53 -0700 Subject: [PATCH] power: Add config and makefiles Added product and board makefiles. Moved powerhint XMLs to this project. Change-Id: I3d36f29f69f09166f84d2e42a6480cb590b04d2d --- config/kona/powerhint.xml | 54 +++++++ config/msmnile/powerhint.xml | 274 +++++++++++++++++++++++++++++++++++ power-vendor-board.mk | 1 + power-vendor-product.mk | 10 ++ 4 files changed, 339 insertions(+) create mode 100644 config/kona/powerhint.xml create mode 100644 config/msmnile/powerhint.xml create mode 100644 power-vendor-board.mk create mode 100644 power-vendor-product.mk diff --git a/config/kona/powerhint.xml b/config/kona/powerhint.xml new file mode 100644 index 0000000..fa338f5 --- /dev/null +++ b/config/kona/powerhint.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + diff --git a/config/msmnile/powerhint.xml b/config/msmnile/powerhint.xml new file mode 100644 index 0000000..71e9db1 --- /dev/null +++ b/config/msmnile/powerhint.xml @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-board.mk b/power-vendor-board.mk new file mode 100644 index 0000000..23d97aa --- /dev/null +++ b/power-vendor-board.mk @@ -0,0 +1 @@ +TARGET_USES_NON_LEGACY_POWERHAL := true diff --git a/power-vendor-product.mk b/power-vendor-product.mk new file mode 100644 index 0000000..c0dfbc5 --- /dev/null +++ b/power-vendor-product.mk @@ -0,0 +1,10 @@ +#Power product definitions +PRODUCT_PACKAGES += android.hardware.power@1.2-impl +PRODUCT_PACKAGES += android.hardware.power@1.2-service + +#Powerhint File +ifeq ($(TARGET_BOARD_PLATFORM),msmnile) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/msmnile/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +else ifeq ($(TARGET_BOARD_PLATFORM),kona) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kona/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +endif