Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | 5fd6bad | 2016-01-21 19:43:31 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013 Google, Inc |
Simon Glass | 5fd6bad | 2016-01-21 19:43:31 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __pwrseq_h |
| 7 | #define __pwrseq_h |
| 8 | |
| 9 | struct 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 | |
| 15 | int pwrseq_set_power(struct udevice *dev, bool enable); |
| 16 | |
| 17 | #endif |