mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 18:53:06 +00:00
b953ec2bca
Define LOG_CATEGORY for all uclass to allow filtering with log command. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
25 lines
430 B
C
25 lines
430 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2015 Google, Inc
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_PWRSEQ
|
|
|
|
#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",
|
|
};
|