Greg Kroah-Hartman | 1e5dd1f | 2015-12-30 13:38:33 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Arche Platform driver to enable Unipro link. |
| 3 | * |
| 4 | * Copyright 2015-2016 Google Inc. |
| 5 | * Copyright 2015-2016 Linaro Ltd. |
| 6 | * |
| 7 | * Released under the GPLv2 only. |
| 8 | */ |
| 9 | |
| 10 | #ifndef __ARCHE_PLATFORM_H |
| 11 | #define __ARCHE_PLATFORM_H |
| 12 | |
Vaibhav Hiremath | a821adb | 2016-02-13 02:04:02 +0530 | [diff] [blame] | 13 | enum arche_platform_state { |
| 14 | ARCHE_PLATFORM_STATE_OFF, |
| 15 | ARCHE_PLATFORM_STATE_ACTIVE, |
| 16 | ARCHE_PLATFORM_STATE_STANDBY, |
Vaibhav Hiremath | 7691fed | 2016-02-13 02:04:08 +0530 | [diff] [blame] | 17 | ARCHE_PLATFORM_STATE_FW_FLASHING, |
Vaibhav Hiremath | a821adb | 2016-02-13 02:04:02 +0530 | [diff] [blame] | 18 | }; |
| 19 | |
Vaibhav Hiremath | 65fd5a5 | 2016-02-13 02:04:16 +0530 | [diff] [blame] | 20 | |
Greg Kroah-Hartman | 1e5dd1f | 2015-12-30 13:38:33 -0800 | [diff] [blame] | 21 | int arche_apb_ctrl_probe(struct platform_device *pdev); |
| 22 | int arche_apb_ctrl_remove(struct platform_device *pdev); |
Vaibhav Hiremath | 65fd5a5 | 2016-02-13 02:04:16 +0530 | [diff] [blame] | 23 | |
| 24 | /* Operational states for the APB device */ |
| 25 | int apb_ctrl_coldboot(struct device *dev); |
| 26 | int apb_ctrl_fw_flashing(struct device *dev); |
| 27 | int apb_ctrl_standby_boot(struct device *dev); |
| 28 | void apb_ctrl_poweroff(struct device *dev); |
| 29 | |
| 30 | |
Greg Kroah-Hartman | 1e5dd1f | 2015-12-30 13:38:33 -0800 | [diff] [blame] | 31 | extern const struct dev_pm_ops arche_apb_ctrl_pm_ops; |
| 32 | |
| 33 | #endif /* __ARCHE_PLATFORM_H */ |