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