Simon Glass | b84d4d0 | 2019-12-06 21:42:52 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright 2019 Google LLC |
| 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_LPSS_H |
| 7 | #define __ASM_LPSS_H |
| 8 | |
| 9 | struct udevice; |
| 10 | |
| 11 | /* D0 and D3 enable config */ |
| 12 | enum lpss_pwr_state { |
| 13 | STATE_D0 = 0, |
| 14 | STATE_D3 = 3 |
| 15 | }; |
| 16 | |
| 17 | /** |
| 18 | * lpss_reset_release() - Release device from reset |
| 19 | * |
| 20 | * This is used for devices which have LPSS support. |
| 21 | * |
| 22 | * @regs: Pointer to device registers |
| 23 | */ |
| 24 | void lpss_reset_release(void *regs); |
| 25 | |
| 26 | /** |
| 27 | * lpss_set_power_state() - Change power state of a device |
| 28 | * |
| 29 | * This is used for devices which have LPSS support. |
| 30 | * |
| 31 | * @dev: Device to update |
| 32 | * @state: New power state to set |
| 33 | */ |
| 34 | void lpss_set_power_state(struct udevice *dev, enum lpss_pwr_state state); |
| 35 | |
| 36 | #endif |