Message ID | 20190601104534.25790-1-grygorii.strashko@ti.com |
---|---|
Headers | show |
Series | net: ethernet: ti: netcp: update and enable cpts support | expand |
On Sat, Jun 01, 2019 at 01:45:24PM +0300, Grygorii Strashko wrote: > The Keystone 2 66AK2HK/E/L 1G Ethernet Switch Subsystems contains The > Common Platform Time Sync (CPTS) module which is in general compatible with > CPTS module found on TI AM3/4/5 SoCs. So, the basic support for > Keystone 2 CPTS is available by default, but not documented and has never been > enabled inconfig files. > > The Keystone 2 CPTS module supports also some additional features like time > sync reference (RFTCLK) clock selection through CPTS_RFTCLK_SEL register > (offset: x08) in CPTS module, which can modelled as multiplexer clock > (this was discussed some time ago [1]). > > This series adds missed binding documentation for Keystone 2 66AK2HK/E/L > CPTS module and enables CPTS for TI Keystone 2 66AK2HK/E/L SoCs with possiblity > to select CPTS reference clock. For the series: Acked-by: Richard Cochran <richardcochran@gmail.com>
From: Grygorii Strashko <grygorii.strashko@ti.com> Date: Sat, 1 Jun 2019 13:45:28 +0300 > +static int cpts_of_mux_clk_setup(struct cpts *cpts, struct device_node *node) > +{ > + unsigned int num_parents; > + const char **parent_names; > + struct device_node *refclk_np; > + struct clk_hw *clk_hw; > + u32 *mux_table; > + int ret = -EINVAL; Reverse christmas tree please. Thank you.