sh: clock-sh7366: add CLKDEV_ICK_ID for cleanup
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
074fcdfff6
commit
ee0c2eff4f
|
@ -194,6 +194,7 @@ static struct clk mstp_clks[MSTP_NR] = {
|
||||||
|
|
||||||
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
|
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
|
||||||
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
|
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
|
||||||
|
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
|
||||||
|
|
||||||
static struct clk_lookup lookups[] = {
|
static struct clk_lookup lookups[] = {
|
||||||
/* main clocks */
|
/* main clocks */
|
||||||
|
@ -232,22 +233,11 @@ static struct clk_lookup lookups[] = {
|
||||||
CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]),
|
CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]),
|
||||||
CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]),
|
CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]),
|
||||||
CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]),
|
CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]),
|
||||||
{
|
|
||||||
/* SCIF0 */
|
CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP007]),
|
||||||
.dev_id = "sh-sci.0",
|
CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP006]),
|
||||||
.con_id = "sci_fck",
|
CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP005]),
|
||||||
.clk = &mstp_clks[MSTP007],
|
|
||||||
}, {
|
|
||||||
/* SCIF1 */
|
|
||||||
.dev_id = "sh-sci.1",
|
|
||||||
.con_id = "sci_fck",
|
|
||||||
.clk = &mstp_clks[MSTP006],
|
|
||||||
}, {
|
|
||||||
/* SCIF2 */
|
|
||||||
.dev_id = "sh-sci.2",
|
|
||||||
.con_id = "sci_fck",
|
|
||||||
.clk = &mstp_clks[MSTP005],
|
|
||||||
},
|
|
||||||
CLKDEV_CON_ID("msiof0", &mstp_clks[MSTP002]),
|
CLKDEV_CON_ID("msiof0", &mstp_clks[MSTP002]),
|
||||||
CLKDEV_CON_ID("sbr0", &mstp_clks[MSTP001]),
|
CLKDEV_CON_ID("sbr0", &mstp_clks[MSTP001]),
|
||||||
CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]),
|
CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]),
|
||||||
|
|
Loading…
Reference in New Issue