Searched refs:mmc_clock (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/clk/rockchip/
H A Dclk-mmc-phase.c52 struct rockchip_mmc_clock *mmc_clock = to_mmc_clock(hw); rockchip_mmc_get_phase() local
58 raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift); rockchip_mmc_get_phase()
77 struct rockchip_mmc_clock *mmc_clock = to_mmc_clock(hw); rockchip_mmc_set_phase() local
105 writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift), mmc_clock->reg); rockchip_mmc_set_phase()
109 mmc_clock->reg, raw_value>>(mmc_clock->shift), rockchip_mmc_set_phase()
127 struct rockchip_mmc_clock *mmc_clock; rockchip_clk_register_mmc() local
130 mmc_clock = kmalloc(sizeof(*mmc_clock), GFP_KERNEL); rockchip_clk_register_mmc()
131 if (!mmc_clock) rockchip_clk_register_mmc()
138 mmc_clock->hw.init = &init; rockchip_clk_register_mmc()
139 mmc_clock->reg = reg; rockchip_clk_register_mmc()
140 mmc_clock->shift = shift; rockchip_clk_register_mmc()
145 clk = clk_register(NULL, &mmc_clock->hw); rockchip_clk_register_mmc()
152 kfree(mmc_clock); rockchip_clk_register_mmc()

Completed in 84 milliseconds