blob: 78148726881609d705acd12c08e66e484c966928 [file] [log] [blame]
Simon Glassb84d4d02019-12-06 21:42:52 -07001/* 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
9struct udevice;
10
11/* D0 and D3 enable config */
12enum 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 */
24void 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 */
34void lpss_set_power_state(struct udevice *dev, enum lpss_pwr_state state);
35
36#endif