|
@@ -417,7 +417,7 @@ extern const struct clk_ops tegra_clk_periph_ops;
|
|
|
struct clk *tegra_clk_register_periph(const char *name,
|
|
|
const char **parent_names, int num_parents,
|
|
|
struct tegra_clk_periph *periph, void __iomem *clk_base,
|
|
|
- u32 offset);
|
|
|
+ u32 offset, unsigned long flags);
|
|
|
struct clk *tegra_clk_register_periph_nodiv(const char *name,
|
|
|
const char **parent_names, int num_parents,
|
|
|
struct tegra_clk_periph *periph, void __iomem *clk_base,
|
|
@@ -460,12 +460,14 @@ struct tegra_periph_init_data {
|
|
|
u32 offset;
|
|
|
const char *con_id;
|
|
|
const char *dev_id;
|
|
|
+ unsigned long flags;
|
|
|
};
|
|
|
|
|
|
#define TEGRA_INIT_DATA_TABLE(_name, _con_id, _dev_id, _parent_names, _offset,\
|
|
|
_mux_shift, _mux_mask, _mux_flags, _div_shift, \
|
|
|
_div_width, _div_frac_width, _div_flags, _regs, \
|
|
|
- _clk_num, _enb_refcnt, _gate_flags, _clk_id, _table) \
|
|
|
+ _clk_num, _enb_refcnt, _gate_flags, _clk_id, _table,\
|
|
|
+ _flags) \
|
|
|
{ \
|
|
|
.name = _name, \
|
|
|
.clk_id = _clk_id, \
|
|
@@ -480,6 +482,7 @@ struct tegra_periph_init_data {
|
|
|
.offset = _offset, \
|
|
|
.con_id = _con_id, \
|
|
|
.dev_id = _dev_id, \
|
|
|
+ .flags = _flags \
|
|
|
}
|
|
|
|
|
|
#define TEGRA_INIT_DATA(_name, _con_id, _dev_id, _parent_names, _offset,\
|
|
@@ -490,7 +493,7 @@ struct tegra_periph_init_data {
|
|
|
_mux_shift, BIT(_mux_width) - 1, _mux_flags, \
|
|
|
_div_shift, _div_width, _div_frac_width, _div_flags, \
|
|
|
_regs, _clk_num, _enb_refcnt, _gate_flags, _clk_id,\
|
|
|
- NULL)
|
|
|
+ NULL, 0)
|
|
|
|
|
|
/**
|
|
|
* struct clk_super_mux - super clock
|