ls1043ardb: PPA: add PPA validation in case of secure boot
[oweals/u-boot.git] / include / clk.h
index 2f31cf70e3de8dbf1cf3a5ee471911dede1b2ea1..dc18b0310a4eea139095449901f3c8fe3faac05d 100644 (file)
@@ -60,6 +60,10 @@ struct clk {
 };
 
 #if CONFIG_IS_ENABLED(OF_CONTROL)
+struct phandle_2_cell;
+int clk_get_by_index_platdata(struct udevice *dev, int index,
+                             struct phandle_2_cell *cells, struct clk *clk);
+
 /**
  * clock_get_by_index - Get/request a clock by integer index.
  *
@@ -100,7 +104,7 @@ static inline int clk_get_by_index(struct udevice *dev, int index,
        return -ENOSYS;
 }
 
-static int clk_get_by_name(struct udevice *dev, const char *name,
+static inline int clk_get_by_name(struct udevice *dev, const char *name,
                           struct clk *clk)
 {
        return -ENOSYS;