blob: b934f29facb77b4f4b7e2a9e4ded8cb79f19defc [file] [log] [blame]
Simon Glassc9795172016-01-21 19:43:31 -07001/*
2 * Copyright (c) 2013 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __pwrseq_h
8#define __pwrseq_h
9
10struct pwrseq_ops {
11 int (*set_power)(struct udevice *dev, bool enable);
12};
13
14#define pwrseq_get_ops(dev) ((struct pwrseq_ops *)(dev)->driver->ops)
15
16int pwrseq_set_power(struct udevice *dev, bool enable);
17
18#endif