]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/pwrseq.h
Convert CONFIG_BOOTCOUNT_ENV to Kconfig
[people/ms/u-boot.git] / include / pwrseq.h
CommitLineData
5fd6badb
SG
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
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