OMAP2420: clock: add sdrc_ick
Add sdrc_ick to the OMAP2420 clock data so the clock code can control the CM_AUTOIDLE bit associated with this clock. Signed-off-by: Paul Walmsley <paul@pwsan.com> Tested-by: Rajendra Nayak <rnayak@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
parent
530e544fda
commit
a56d9ea865
|
@ -1608,6 +1608,21 @@ static struct clk sdma_ick = {
|
|||
.recalc = &followparent_recalc,
|
||||
};
|
||||
|
||||
/*
|
||||
* The enable_reg/enable_bit in this clock is only used for CM_AUTOIDLE
|
||||
* accesses derived from this data.
|
||||
*/
|
||||
static struct clk sdrc_ick = {
|
||||
.name = "sdrc_ick",
|
||||
.ops = &clkops_omap2_iclk_idle_only,
|
||||
.parent = &core_l3_ck,
|
||||
.flags = ENABLE_ON_INIT,
|
||||
.clkdm_name = "core_l3_clkdm",
|
||||
.enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_ICLKEN3),
|
||||
.enable_bit = OMAP24XX_AUTO_SDRC_SHIFT,
|
||||
.recalc = &followparent_recalc,
|
||||
};
|
||||
|
||||
static struct clk vlynq_ick = {
|
||||
.name = "vlynq_ick",
|
||||
.ops = &clkops_omap2_dflt_wait,
|
||||
|
@ -1869,6 +1884,7 @@ static struct omap_clk omap2420_clks[] = {
|
|||
CLK(NULL, "gpmc_fck", &gpmc_fck, CK_242X),
|
||||
CLK(NULL, "sdma_fck", &sdma_fck, CK_242X),
|
||||
CLK(NULL, "sdma_ick", &sdma_ick, CK_242X),
|
||||
CLK(NULL, "sdrc_ick", &sdrc_ick, CK_242X),
|
||||
CLK(NULL, "vlynq_ick", &vlynq_ick, CK_242X),
|
||||
CLK(NULL, "vlynq_fck", &vlynq_fck, CK_242X),
|
||||
CLK(NULL, "des_ick", &des_ick, CK_242X),
|
||||
|
|
|
@ -210,6 +210,7 @@
|
|||
#define OMAP24XX_AUTO_USB_MASK (1 << 0)
|
||||
|
||||
/* CM_AUTOIDLE3_CORE */
|
||||
#define OMAP24XX_AUTO_SDRC_SHIFT 2
|
||||
#define OMAP24XX_AUTO_SDRC_MASK (1 << 2)
|
||||
#define OMAP24XX_AUTO_GPMC_MASK (1 << 1)
|
||||
#define OMAP24XX_AUTO_SDMA_MASK (1 << 0)
|
||||
|
|
Loading…
Reference in New Issue