Migrate comet to P24 zumapro codebase
Bug: 287173316 Change-Id: Id03e526ff8ca67d8d9ee83a9d3bacfb1473e9a25
This commit is contained in:
parent
a6b4f6f575
commit
e5d2a88616
9 changed files with 26 additions and 28 deletions
|
@ -14,12 +14,12 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
TARGET_LINUX_KERNEL_VERSION := 5.15
|
TARGET_LINUX_KERNEL_VERSION := 6.1
|
||||||
|
|
||||||
USE_SWIFTSHADER := true
|
USE_SWIFTSHADER := true
|
||||||
BOARD_USES_SWIFTSHADER := true
|
BOARD_USES_SWIFTSHADER := true
|
||||||
|
|
||||||
$(call inherit-product, device/google/zuma/aosp_common.mk)
|
$(call inherit-product, device/google/zumapro/aosp_common.mk)
|
||||||
$(call inherit-product, device/google/comet/device-comet.mk)
|
$(call inherit-product, device/google/comet/device-comet.mk)
|
||||||
|
|
||||||
PRODUCT_NAME := aosp_comet
|
PRODUCT_NAME := aosp_comet
|
||||||
|
|
|
@ -19,7 +19,7 @@ TARGET_SCREEN_DENSITY := 420
|
||||||
BOARD_USES_GENERIC_AUDIO := true
|
BOARD_USES_GENERIC_AUDIO := true
|
||||||
USES_DEVICE_GOOGLE_COMET := true
|
USES_DEVICE_GOOGLE_COMET := true
|
||||||
|
|
||||||
include device/google/zuma/BoardConfig-common.mk
|
include device/google/zumapro/BoardConfig-common.mk
|
||||||
-include vendor/google_devices/zuma/prebuilts/BoardConfigVendor.mk
|
-include vendor/google_devices/zumapro/prebuilts/BoardConfigVendor.mk
|
||||||
include device/google/comet-sepolicy/comet-sepolicy.mk
|
include device/google/comet-sepolicy/comet-sepolicy.mk
|
||||||
include device/google/comet/wifi/BoardConfig-wifi.mk
|
include device/google/comet/wifi/BoardConfig-wifi.mk
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Comet specific init.rc
|
# Comet specific init.rc
|
||||||
import /vendor/etc/init/hw/init.zuma.rc
|
import /vendor/etc/init/hw/init.zumapro.rc
|
||||||
|
|
||||||
on init && property:ro.vendor.factory=1
|
on init && property:ro.vendor.factory=1
|
||||||
import /vendor/etc/init/hw/init.factory.rc
|
import /vendor/etc/init/hw/init.factory.rc
|
||||||
|
|
|
@ -19,12 +19,12 @@ TARGET_BOARD_KERNEL_HEADERS := device/google/comet-kernel/kernel-headers
|
||||||
TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT
|
TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT
|
||||||
|
|
||||||
$(call inherit-product-if-exists, vendor/google_devices/comet/prebuilts/device-vendor-comet.mk)
|
$(call inherit-product-if-exists, vendor/google_devices/comet/prebuilts/device-vendor-comet.mk)
|
||||||
$(call inherit-product-if-exists, vendor/google_devices/zuma/prebuilts/device-vendor.mk)
|
$(call inherit-product-if-exists, vendor/google_devices/zumapro/prebuilts/device-vendor.mk)
|
||||||
$(call inherit-product-if-exists, vendor/google_devices/zuma/proprietary/device-vendor.mk)
|
$(call inherit-product-if-exists, vendor/google_devices/zumapro/proprietary/device-vendor.mk)
|
||||||
$(call inherit-product-if-exists, vendor/google_devices/comet/proprietary/comet/device-vendor-comet.mk)
|
$(call inherit-product-if-exists, vendor/google_devices/comet/proprietary/comet/device-vendor-comet.mk)
|
||||||
$(call inherit-product-if-exists, vendor/qorvo/uwb/qm35-hal/Device.mk)
|
$(call inherit-product-if-exists, vendor/qorvo/uwb/qm35-hal/Device.mk)
|
||||||
|
|
||||||
include device/google/zuma/device-shipping-common.mk
|
include device/google/zumapro/device-shipping-common.mk
|
||||||
include device/google/comet/audio/comet/audio-tables.mk
|
include device/google/comet/audio/comet/audio-tables.mk
|
||||||
include hardware/google/pixel/vibrator/cs40l26/device.mk
|
include hardware/google/pixel/vibrator/cs40l26/device.mk
|
||||||
include device/google/gs-common/bcmbt/bluetooth.mk
|
include device/google/gs-common/bcmbt/bluetooth.mk
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<compatibility-matrix version="1.0" type="framework" level="8">
|
<compatibility-matrix version="1.0" type="framework" level="7">
|
||||||
<hal format="hidl">
|
<hal format="hidl">
|
||||||
<name>vendor.samsung.hardware.gnss</name>
|
<name>vendor.samsung.hardware.gnss</name>
|
||||||
<transport>hwbinder</transport>
|
<transport>hwbinder</transport>
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
TARGET_LINUX_KERNEL_VERSION := 5.15
|
TARGET_LINUX_KERNEL_VERSION := 6.1
|
||||||
|
|
||||||
$(call inherit-product, device/google/zuma/factory_common.mk)
|
$(call inherit-product, device/google/zumapro/factory_common.mk)
|
||||||
$(call inherit-product, device/google/comet/device-comet.mk)
|
$(call inherit-product, device/google/comet/device-comet.mk)
|
||||||
include device/google/comet/audio/comet/factory-audio-tables.mk
|
include device/google/comet/audio/comet/factory-audio-tables.mk
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<manifest version="1.0" type="device" target-level="8">
|
<manifest version="1.0" type="device" target-level="7">
|
||||||
<hal format="hidl">
|
<hal format="hidl">
|
||||||
<name>vendor.samsung.hardware.gnss</name>
|
<name>vendor.samsung.hardware.gnss</name>
|
||||||
<transport>hwbinder</transport>
|
<transport>hwbinder</transport>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
soong_namespace {
|
soong_namespace {
|
||||||
imports: [
|
imports: [
|
||||||
"hardware/google/pixel",
|
"hardware/google/pixel",
|
||||||
"device/google/zuma/powerstats",
|
"device/google/zumapro/powerstats",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,6 @@ cc_binary {
|
||||||
],
|
],
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"android.hardware.power.stats-impl.zuma",
|
"android.hardware.power.stats-impl.zumapro",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <dataproviders/DisplayStateResidencyDataProvider.h>
|
#include <dataproviders/DisplayStateResidencyDataProvider.h>
|
||||||
#include <dataproviders/PowerStatsEnergyConsumer.h>
|
#include <dataproviders/PowerStatsEnergyConsumer.h>
|
||||||
#include <ZumaCommonDataProviders.h>
|
#include <ZumaProCommonDataProviders.h>
|
||||||
#include <PowerStatsAidl.h>
|
#include <PowerStatsAidl.h>
|
||||||
|
|
||||||
#include <android-base/logging.h>
|
#include <android-base/logging.h>
|
||||||
|
@ -35,11 +35,11 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
// Add display residency stats
|
// Add display residency stats
|
||||||
std::vector<std::string> states = {
|
std::vector<std::string> states = {
|
||||||
"Off",
|
"Off",
|
||||||
"LP: 1080x2340@30",
|
"LP: 1440x3120@30",
|
||||||
"On: 1080x2340@60",
|
"On: 1440x3120@60",
|
||||||
"On: 1080x2340@90",
|
"On: 1440x3120@90",
|
||||||
"HBM: 1080x2340@60",
|
"HBM: 1440x3120@60",
|
||||||
"HBM: 1080x2340@90"};
|
"HBM: 1440x3120@90"};
|
||||||
|
|
||||||
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
||||||
"Display",
|
"Display",
|
||||||
|
@ -47,13 +47,11 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
states));
|
states));
|
||||||
|
|
||||||
// Add display energy consumer
|
// Add display energy consumer
|
||||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(
|
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer(
|
||||||
p, EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
p,
|
||||||
{{"LP: 1080x2340@30", 1},
|
EnergyConsumerType::DISPLAY,
|
||||||
{"On: 1080x2340@60", 2},
|
"Display",
|
||||||
{"On: 1080x2340@90", 3},
|
{"VSYS_PWR_DISPLAY"}));
|
||||||
{"HBM: 1080x2340@60", 4},
|
|
||||||
{"HBM: 1080x2340@90", 5}}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -64,7 +62,7 @@ int main() {
|
||||||
|
|
||||||
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
addZumaCommonDataProviders(p);
|
addZumaProCommonDataProviders(p);
|
||||||
addDisplay(p);
|
addDisplay(p);
|
||||||
|
|
||||||
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue