hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
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
26
27
28
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Arche Platform driver to enable Unipro link.
 *
 * Copyright 2015-2016 Google Inc.
 * Copyright 2015-2016 Linaro Ltd.
 */
 
#ifndef __ARCHE_PLATFORM_H
#define __ARCHE_PLATFORM_H
 
enum arche_platform_state {
   ARCHE_PLATFORM_STATE_OFF,
   ARCHE_PLATFORM_STATE_ACTIVE,
   ARCHE_PLATFORM_STATE_STANDBY,
   ARCHE_PLATFORM_STATE_FW_FLASHING,
};
 
int __init arche_apb_init(void);
void __exit arche_apb_exit(void);
 
/* Operational states for the APB device */
int apb_ctrl_coldboot(struct device *dev);
int apb_ctrl_fw_flashing(struct device *dev);
int apb_ctrl_standby_boot(struct device *dev);
void apb_ctrl_poweroff(struct device *dev);
 
#endif    /* __ARCHE_PLATFORM_H */