mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
clk: fixed-rate: Export driver parts for OF_PLATDATA_INST
We need to allow SoCs to create their own drivers for this so that they can use their own of-platdata structs. To minimise code duplication, export the driver operations and the ofdata_to_plat() setup function. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
cc7ffd3adc
commit
4ddc91b32f
2 changed files with 15 additions and 4 deletions
|
@ -192,6 +192,8 @@ struct clk_fixed_factor {
|
|||
unsigned int div;
|
||||
};
|
||||
|
||||
extern const struct clk_ops clk_fixed_rate_ops;
|
||||
|
||||
#define to_clk_fixed_factor(_clk) container_of(_clk, struct clk_fixed_factor,\
|
||||
clk)
|
||||
|
||||
|
@ -202,6 +204,9 @@ struct clk_fixed_rate {
|
|||
|
||||
#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_plat(dev))
|
||||
|
||||
void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev,
|
||||
struct clk_fixed_rate *plat);
|
||||
|
||||
struct clk_composite {
|
||||
struct clk clk;
|
||||
struct clk_ops ops;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue