summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNrithya Kanakasabapathy <nrithya@google.com>2021-02-10 16:35:09 -0800
committerNrithya Kanakasabapathy <nrithya@google.com>2021-02-10 16:35:09 -0800
commit6f3279996872e9de64980928ba08df4e0cc6c7d0 (patch)
tree987307c5a335e67e9dc8db9f6bc757a8e0a8f553
parent8733f3bacd6a79009516f060eb05ad03abc74105 (diff)
downloadedgetpu-6f3279996872e9de64980928ba08df4e0cc6c7d0.tar.gz
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
-rw-r--r--drivers/edgetpu/Makefile16
-rw-r--r--drivers/edgetpu/abrolhos-iommu.c2
-rw-r--r--drivers/edgetpu/edgetpu-usage-stats.c8
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");