Skip to content

Commit

Permalink
clk: st: Add quadfs reset handling
Browse files Browse the repository at this point in the history
This patch adds the support of quadfs reset handling.

Signed-off-by: Olivier Bideau <olivier.bideau@st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Gabriel FERNANDEZ authored and Mike Turquette committed Jul 29, 2014
1 parent 8f26df8 commit fc755c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/clk/st/clkgen-fsyn.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ struct clkgen_quadfs_data {
bool powerup_polarity;
bool standby_polarity;
bool nsdiv_present;
bool nrst_present;
struct clkgen_field ndiv;
struct clkgen_field ref_bw;
struct clkgen_field nreset;
struct clkgen_field npda;
struct clkgen_field lock_status;

struct clkgen_field nrst[QUADFS_MAX_CHAN];
struct clkgen_field nsb[QUADFS_MAX_CHAN];
struct clkgen_field en[QUADFS_MAX_CHAN];
struct clkgen_field mdiv[QUADFS_MAX_CHAN];
Expand Down Expand Up @@ -615,6 +617,9 @@ static int quadfs_fsynth_enable(struct clk_hw *hw)

CLKGEN_WRITE(fs, nsb[fs->chan], !fs->data->standby_polarity);

if (fs->data->nrst_present)
CLKGEN_WRITE(fs, nrst[fs->chan], 0);

if (fs->lock)
spin_unlock_irqrestore(fs->lock, flags);

Expand Down

0 comments on commit fc755c8

Please sign in to comment.