From 6f3279996872e9de64980928ba08df4e0cc6c7d0 Mon Sep 17 00:00:00 2001 From: Nrithya Kanakasabapathy Date: Wed, 10 Feb 2021 16:35:09 -0800 Subject: Merge branch 'whitechapel' into android-gs-pixel-mainline * darwinn-2.0: edgetpu: abrolhos: add missing new lines edgetpu: update objects in Makefile Change-Id: Iea670eb8445642c6eba45664545ad2ea6d2f0e52 --- drivers/edgetpu/Makefile | 16 +++++++++++----- drivers/edgetpu/abrolhos-iommu.c | 2 +- drivers/edgetpu/edgetpu-usage-stats.c | 8 ++++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/edgetpu/Makefile b/drivers/edgetpu/Makefile index fd195b6..6af7f73 100644 --- a/drivers/edgetpu/Makefile +++ b/drivers/edgetpu/Makefile @@ -13,12 +13,18 @@ else ccflags-y += -DGIT_REPO_TAG=\"Not\ a\ git\ repository\" endif -edgetpu-fw-objs := edgetpu-firmware-util.o edgetpu-shared-fw.o edgetpu-firmware.o -edgetpu-objs := edgetpu-core.o edgetpu-mailbox.o edgetpu-kci.o edgetpu-device-group.o edgetpu-telemetry.o edgetpu-mapping.o edgetpu-dmabuf.o edgetpu-async.o edgetpu-iremap-pool.o edgetpu-sw-watchdog.o $(edgetpu-fw-objs) +edgetpu-fw-objs := edgetpu-firmware-util.o edgetpu-firmware.o edgetpu-shared-fw.o +edgetpu-objs := edgetpu-async.o edgetpu-dmabuf.o edgetpu-iremap-pool.o \ + edgetpu-kci.o edgetpu-mailbox.o edgetpu-mapping.o \ + edgetpu-sw-watchdog.o edgetpu-telemetry.o \ + $(edgetpu-fw-objs) -edgetpu-mobile-objs := edgetpu-google-iommu.o $(edgetpu-objs) - -abrolhos-objs := abrolhos-device.o abrolhos-firmware.o edgetpu-fs.o abrolhos-platform.o abrolhos-thermal.o abrolhos-pm.o abrolhos-debug-dump.o abrolhos-usage-stats.o $(edgetpu-mobile-objs) +abrolhos-objs := abrolhos-core.o abrolhos-debug-dump.o \ + abrolhos-device-group.o abrolhos-device.o \ + abrolhos-firmware.o abrolhos-fs.o abrolhos-iommu.o \ + abrolhos-platform.o abrolhos-pm.o abrolhos-thermal.o \ + abrolhos-usage-stats.o \ + $(edgetpu-objs) KBUILD_OPTIONS += CONFIG_ABROLHOS=m diff --git a/drivers/edgetpu/abrolhos-iommu.c b/drivers/edgetpu/abrolhos-iommu.c index 56a9f6d..52ce973 100644 --- a/drivers/edgetpu/abrolhos-iommu.c +++ b/drivers/edgetpu/abrolhos-iommu.c @@ -1,2 +1,2 @@ // SPDX-License-Identifier: GPL-2.0 -#include "edgetpu-google-iommu.c" \ No newline at end of file +#include "edgetpu-google-iommu.c" diff --git a/drivers/edgetpu/edgetpu-usage-stats.c b/drivers/edgetpu/edgetpu-usage-stats.c index 576274b..56bbfa6 100644 --- a/drivers/edgetpu/edgetpu-usage-stats.c +++ b/drivers/edgetpu/edgetpu-usage-stats.c @@ -13,7 +13,7 @@ #include "edgetpu-usage-stats.h" #if IS_ENABLED(CONFIG_ABROLHOS) - +//TODO(b/179343138): Implement for Janeiro #include "abrolhos-pm.h" static enum tpu_pwr_state tpu_states_arr[] = { @@ -184,10 +184,10 @@ static ssize_t tpu_usage_show(struct device *dev, for (i = 0; i < NUM_TPU_STATES; i++) ret += scnprintf(buf + ret, PAGE_SIZE - ret, " %d", -#if IS_ENABLED(CONFIG_HERMOSA) - tpu_states_display[i]); -#else +#if IS_ENABLED(CONFIG_ABROLHOS) tpu_states_arr[i]); +#else + tpu_states_display[i]); #endif ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n"); -- cgit v1.2.3