diff options
Diffstat (limited to 'roms/u-boot/include/pwrseq.h')
-rw-r--r-- | roms/u-boot/include/pwrseq.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roms/u-boot/include/pwrseq.h b/roms/u-boot/include/pwrseq.h new file mode 100644 index 000000000..fbf6376d2 --- /dev/null +++ b/roms/u-boot/include/pwrseq.h @@ -0,0 +1,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 |