xref: /openbmc/u-boot/include/pwrseq.h (revision 2290fe06)
1 /*
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 
10 struct 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 
16 int pwrseq_set_power(struct udevice *dev, bool enable);
17 
18 #endif
19