Lines Matching refs:p_scu
1120 static void ast2600_init_mac_pll(struct ast2600_scu *p_scu, in ast2600_init_mac_pll() argument
1135 ast2600_configure_pll(p_scu, &pll.cfg, p_cfg->src); in ast2600_init_mac_pll()
1138 static void ast2600_init_rgmii_clk(struct ast2600_scu *p_scu, in ast2600_init_rgmii_clk() argument
1141 u32 reg_304 = readl(&p_scu->clk_sel2); in ast2600_init_rgmii_clk()
1142 u32 reg_340 = readl(&p_scu->mac12_clk_delay); in ast2600_init_rgmii_clk()
1143 u32 reg_350 = readl(&p_scu->mac34_clk_delay); in ast2600_init_rgmii_clk()
1154 if (p_cfg->fin != ast2600_get_pll_rate(p_scu, p_cfg->src)) in ast2600_init_rgmii_clk()
1155 ast2600_init_mac_pll(p_scu, p_cfg); in ast2600_init_rgmii_clk()
1172 writel(reg_304, &p_scu->clk_sel2); in ast2600_init_rgmii_clk()
1173 writel(reg_340, &p_scu->mac12_clk_delay); in ast2600_init_rgmii_clk()
1174 writel(reg_350, &p_scu->mac34_clk_delay); in ast2600_init_rgmii_clk()
1184 static void ast2600_init_rmii_clk(struct ast2600_scu *p_scu, in ast2600_init_rmii_clk() argument
1195 if (p_cfg->fin != ast2600_get_pll_rate(p_scu, p_cfg->src)) in ast2600_init_rmii_clk()
1196 ast2600_init_mac_pll(p_scu, p_cfg); in ast2600_init_rmii_clk()
1199 reg_304 = readl(&p_scu->clk_sel2); in ast2600_init_rmii_clk()
1200 reg_310 = readl(&p_scu->clk_sel4); in ast2600_init_rmii_clk()
1215 writel(reg_304, &p_scu->clk_sel2); in ast2600_init_rmii_clk()
1216 writel(reg_310, &p_scu->clk_sel4); in ast2600_init_rmii_clk()