Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/clk/ti_clk_dpll.c
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | struct ti_dpll_clknode_sc { | ||||
uint32_t ti_idlest_offset; | uint32_t ti_idlest_offset; | ||||
uint32_t ti_clksel_offset; /* mult-div1 */ | uint32_t ti_clksel_offset; /* mult-div1 */ | ||||
struct ti_clk_factor n; /* ti_clksel_mult */ | struct ti_clk_factor n; /* ti_clksel_mult */ | ||||
struct ti_clk_factor p; /* ti_clksel_div */ | struct ti_clk_factor p; /* ti_clksel_div */ | ||||
uint32_t ti_autoidle_offset; | uint32_t ti_autoidle_offset; | ||||
uint32_t ti_ssc_deltam_offset; | |||||
uint32_t ti_ssc_modfreq_offset; | |||||
}; | }; | ||||
#define WRITE4(_clk, off, val) \ | #define WRITE4(_clk, off, val) \ | ||||
CLKDEV_WRITE_4(clknode_get_device(_clk), off, val) | CLKDEV_WRITE_4(clknode_get_device(_clk), off, val) | ||||
#define READ4(_clk, off, val) \ | #define READ4(_clk, off, val) \ | ||||
CLKDEV_READ_4(clknode_get_device(_clk), off, val) | CLKDEV_READ_4(clknode_get_device(_clk), off, val) | ||||
#define DEVICE_LOCK(_clk) \ | #define DEVICE_LOCK(_clk) \ | ||||
CLKDEV_DEVICE_LOCK(clknode_get_device(_clk)) | CLKDEV_DEVICE_LOCK(clknode_get_device(_clk)) | ||||
▲ Show 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | ti_clknode_dpll_register(struct clkdom *clkdom, struct ti_clk_dpll_def *clkdef) | ||||
sc->p.mask = clkdef->ti_clksel_div.mask; | sc->p.mask = clkdef->ti_clksel_div.mask; | ||||
sc->p.width = clkdef->ti_clksel_div.width; | sc->p.width = clkdef->ti_clksel_div.width; | ||||
sc->p.value = clkdef->ti_clksel_div.value; | sc->p.value = clkdef->ti_clksel_div.value; | ||||
sc->p.min_value = clkdef->ti_clksel_div.min_value; | sc->p.min_value = clkdef->ti_clksel_div.min_value; | ||||
sc->p.max_value = clkdef->ti_clksel_div.max_value; | sc->p.max_value = clkdef->ti_clksel_div.max_value; | ||||
sc->p.flags = clkdef->ti_clksel_div.flags; | sc->p.flags = clkdef->ti_clksel_div.flags; | ||||
sc->ti_autoidle_offset = clkdef->ti_autoidle_offset; | sc->ti_autoidle_offset = clkdef->ti_autoidle_offset; | ||||
sc->ti_ssc_deltam_offset = clkdef->ti_ssc_deltam_offset; | |||||
sc->ti_ssc_modfreq_offset = clkdef->ti_ssc_modfreq_offset; | |||||
clknode_register(clkdom, clk); | clknode_register(clkdom, clk); | ||||
return (0); | return (0); | ||||
} | } |