mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 11:24:42 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
48 lines
777 B
C
48 lines
777 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* (C) Copyright 2022 - Analog Devices, Inc.
|
|
*
|
|
* Written and/or maintained by Timesys Corporation
|
|
*
|
|
* Author: Greg Malysa <greg.malysa@timesys.com>
|
|
*/
|
|
|
|
#include "clk.h"
|
|
|
|
static ulong adi_get_rate(struct clk *clk)
|
|
{
|
|
struct clk *c;
|
|
int ret;
|
|
|
|
ret = clk_get_by_id(clk->id, &c);
|
|
if (ret)
|
|
return ret;
|
|
|
|
return clk_get_rate(c);
|
|
}
|
|
|
|
static ulong adi_set_rate(struct clk *clk, ulong rate)
|
|
{
|
|
//Not yet implemented
|
|
return 0;
|
|
}
|
|
|
|
static int adi_enable(struct clk *clk)
|
|
{
|
|
//Not yet implemented
|
|
return 0;
|
|
}
|
|
|
|
static int adi_disable(struct clk *clk)
|
|
{
|
|
//Not yet implemented
|
|
return 0;
|
|
}
|
|
|
|
const struct clk_ops adi_clk_ops = {
|
|
.set_rate = adi_set_rate,
|
|
.get_rate = adi_get_rate,
|
|
.enable = adi_enable,
|
|
.disable = adi_disable,
|
|
};
|
|
|