summaryrefslogtreecommitdiff
path: root/drivers/edgetpu/mobile-pm.h
blob: b9b86b41aae6b00d4b519f4c0d45bbb0da6c2f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Power management header for mobile chipsets.
 *
 * Copyright (C) 2021 Google, Inc.
 */

#ifndef __MOBILE_PM_H__
#define __MOBILE_PM_H__

#include "edgetpu-internal.h"

/*
 * Initialize a power management interface for an edgetpu device on mobile
 * chipsets.
 * Needs to be called after the devices's platform_pwr struct has been initialized.
 */
int edgetpu_mobile_pm_create(struct edgetpu_dev *etdev);

/*
 * Destroy power management interface for an edgetpu device on mobile chipsets.
 */
void edgetpu_mobile_pm_destroy(struct edgetpu_dev *etdev);

#endif /* __MOBILE_PM_H__ */