aboutsummaryrefslogtreecommitdiff
path: root/include/pwrseq.h
blob: fbf6376d24c3d322527770c5ae9e9a8aead76910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2013 Google, Inc
 */

#ifndef __pwrseq_h
#define __pwrseq_h

struct pwrseq_ops {
	int (*set_power)(struct udevice *dev, bool enable);
};

#define pwrseq_get_ops(dev)	((struct pwrseq_ops *)(dev)->driver->ops)

int pwrseq_set_power(struct udevice *dev, bool enable);

#endif