mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
After years of developing the ADI ADSP platform, Timesys was purchased by another company and is no longer contracted to maintain the platform. Signed-off-by: Philip Molloy <philip.molloy@analog.com> Reviewed-by: Greg Malysa <malysagreg@gmail.com>
49 lines
759 B
C
49 lines
759 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* (C) Copyright 2022 - Analog Devices, Inc.
|
|
*
|
|
* Written 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,
|
|
};
|
|
|