mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
25 lines
397 B
C
25 lines
397 B
C
![]() |
/*
|
||
|
* Copyright (c) 2015 Google, Inc
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
|
#include <dm.h>
|
||
|
#include <pwrseq.h>
|
||
|
|
||
|
int pwrseq_set_power(struct udevice *dev, bool enable)
|
||
|
{
|
||
|
struct pwrseq_ops *ops = pwrseq_get_ops(dev);
|
||
|
|
||
|
if (!ops->set_power)
|
||
|
return -ENOSYS;
|
||
|
|
||
|
return ops->set_power(dev, enable);
|
||
|
}
|
||
|
|
||
|
UCLASS_DRIVER(pwrseq) = {
|
||
|
.id = UCLASS_PWRSEQ,
|
||
|
.name = "pwrseq",
|
||
|
};
|