mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 03:51:31 +00:00
clk: fixed_rate: export clk_fixed_rate
Export the structure for others to use. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
fe69b030de
commit
4f305bf1b6
2 changed files with 8 additions and 7 deletions
|
@ -6,13 +6,7 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <clk-uclass.h>
|
#include <clk-uclass.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
|
#include <linux/clk-provider.h>
|
||||||
struct clk_fixed_rate {
|
|
||||||
struct clk clk;
|
|
||||||
unsigned long fixed_rate;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev))
|
|
||||||
|
|
||||||
static ulong clk_fixed_rate_get_rate(struct clk *clk)
|
static ulong clk_fixed_rate_get_rate(struct clk *clk)
|
||||||
{
|
{
|
||||||
|
|
|
@ -129,6 +129,13 @@ struct clk_fixed_factor {
|
||||||
#define to_clk_fixed_factor(_clk) container_of(_clk, struct clk_fixed_factor,\
|
#define to_clk_fixed_factor(_clk) container_of(_clk, struct clk_fixed_factor,\
|
||||||
clk)
|
clk)
|
||||||
|
|
||||||
|
struct clk_fixed_rate {
|
||||||
|
struct clk clk;
|
||||||
|
unsigned long fixed_rate;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev))
|
||||||
|
|
||||||
int clk_register(struct clk *clk, const char *drv_name, const char *name,
|
int clk_register(struct clk *clk, const char *drv_name, const char *name,
|
||||||
const char *parent_name);
|
const char *parent_name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue