Lines Matching refs:clk_phase
125 u32 clk_phase[2]; in socfpga_clk_prepare() local
127 if (socfpgaclk->clk_phase[0] || socfpgaclk->clk_phase[1]) { in socfpga_clk_prepare()
135 switch (socfpgaclk->clk_phase[i]) { in socfpga_clk_prepare()
137 clk_phase[i] = 0; in socfpga_clk_prepare()
140 clk_phase[i] = 1; in socfpga_clk_prepare()
143 clk_phase[i] = 2; in socfpga_clk_prepare()
146 clk_phase[i] = 3; in socfpga_clk_prepare()
149 clk_phase[i] = 4; in socfpga_clk_prepare()
152 clk_phase[i] = 5; in socfpga_clk_prepare()
155 clk_phase[i] = 6; in socfpga_clk_prepare()
158 clk_phase[i] = 7; in socfpga_clk_prepare()
161 clk_phase[i] = 0; in socfpga_clk_prepare()
165 hs_timing = SYSMGR_SDMMC_CTRL_SET(clk_phase[0], clk_phase[1]); in socfpga_clk_prepare()
184 u32 clk_phase[2]; in __socfpga_gate_init() local
224 rc = of_property_read_u32_array(node, "clk-phase", clk_phase, 2); in __socfpga_gate_init()
226 socfpga_clk->clk_phase[0] = clk_phase[0]; in __socfpga_gate_init()
227 socfpga_clk->clk_phase[1] = clk_phase[1]; in __socfpga_gate_init()