Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235242
b: refs/heads/master
c: f151961
h: refs/heads/master
v: v3
  • Loading branch information
Colin Cross committed Feb 21, 2011
1 parent 8f230ab commit c3ed3ac
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 144 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ec349fbf1e88e84d4dffc54b6cb32129a32b7b0
refs/heads/master: f151961173bf28047d01b410969f05e485f56d7e
85 changes: 44 additions & 41 deletions trunk/arch/arm/mach-tegra/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct clk_mux_sel {
u32 value;
};

struct clk_pll_table {
struct clk_pll_freq_table {
unsigned long input_rate;
unsigned long output_rate;
u16 n;
Expand All @@ -74,51 +74,54 @@ enum clk_state {

struct clk {
/* node for master clocks list */
struct list_head node;
struct list_head children; /* list of children */
struct list_head sibling; /* node for children */
#ifdef CONFIG_DEBUG_FS
struct dentry *dent;
struct dentry *parent_dent;
#endif
struct clk_ops *ops;
struct clk *parent;
struct clk_lookup lookup;
unsigned long rate;
unsigned long max_rate;
u32 flags;
u32 refcnt;
const char *name;
u32 reg;
u32 reg_shift;
unsigned int clk_num;
enum clk_state state;
struct list_head node; /* node for list of all clocks */
struct list_head children; /* list of children */
struct list_head sibling; /* node for children */
struct clk_lookup lookup;

#ifdef CONFIG_DEBUG_FS
bool set;
struct dentry *dent;
bool set;
#endif
struct clk_ops *ops;
unsigned long rate;
unsigned long max_rate;
u32 flags;
const char *name;

u32 refcnt;
enum clk_state state;
struct clk *parent;
u32 div;
u32 mul;

/* PLL */
unsigned long input_min;
unsigned long input_max;
unsigned long cf_min;
unsigned long cf_max;
unsigned long vco_min;
unsigned long vco_max;
const struct clk_pll_table *pll_table;
int pll_lock_delay;

/* DIV */
u32 div;
u32 mul;

/* MUX */
const struct clk_mux_sel *inputs;
u32 sel;
u32 reg_mask;
u32 reg;
u32 reg_shift;

/* Virtual cpu clock */
struct clk *main;
struct clk *backup;
union {
struct {
unsigned int clk_num;
} periph;
struct {
unsigned long input_min;
unsigned long input_max;
unsigned long cf_min;
unsigned long cf_max;
unsigned long vco_min;
unsigned long vco_max;
const struct clk_pll_freq_table *freq_table;
int lock_delay;
} pll;
struct {
u32 sel;
u32 reg_mask;
} mux;
struct {
struct clk *main;
struct clk *backup;
} cpu;
} u;
};


Expand Down
Loading

0 comments on commit c3ed3ac

Please sign in to comment.