Lines Matching refs:peri_sc

146 struct peri_sc_periph_regs *peri_sc =  variable
191 hi6220_clk_enable(PERI_CLK0_USBOTG, &peri_sc->clk0_en); in board_usb_init()
196 &peri_sc->rst0_dis); in board_usb_init()
198 data = readl(&peri_sc->rst0_stat); in board_usb_init()
204 data = readl(&peri_sc->ctrl5); in board_usb_init()
208 writel(data, &peri_sc->ctrl5); in board_usb_init()
213 data = readl(&peri_sc->ctrl4); in board_usb_init()
219 writel(data, &peri_sc->ctrl4); in board_usb_init()
221 writel(EYE_PATTERN, &peri_sc->ctrl8); in board_usb_init()
255 writel(1 << 11 | 1 << 27, &peri_sc->clk0_sel); in mmc1_init_pll()
257 data = readl(&peri_sc->clk0_sel); in mmc1_init_pll()
261 writel(1 << 30, &peri_sc->clk0_sel); in mmc1_init_pll()
263 data = readl(&peri_sc->clk0_sel); in mmc1_init_pll()
266 hi6220_clk_enable(PERI_CLK0_MMC1, &peri_sc->clk0_en); in mmc1_init_pll()
268 hi6220_clk_enable(PERI_CLK12_MMC1_SRC, &peri_sc->clk12_en); in mmc1_init_pll()
272 writel(0x31 | (1 << 7), &peri_sc->clkcfg8bit2); in mmc1_init_pll()
273 data = readl(&peri_sc->clkcfg8bit2); in mmc1_init_pll()
282 hi6220_clk_disable(PERI_CLK0_MMC1, &peri_sc->clk0_dis); in mmc1_reset_clk()
285 hi6220_clk_enable(PERI_CLK0_MMC1, &peri_sc->clk0_en); in mmc1_reset_clk()
288 writel(PERI_RST0_MMC1, &peri_sc->rst0_en); in mmc1_reset_clk()
291 data = readl(&peri_sc->ctrl2); in mmc1_reset_clk()
293 writel(data, &peri_sc->ctrl2); in mmc1_reset_clk()
296 data = readl(&peri_sc->ctrl13); in mmc1_reset_clk()
298 writel(data, &peri_sc->ctrl13); in mmc1_reset_clk()
300 data = readl(&peri_sc->rst0_stat); in mmc1_reset_clk()
304 writel(PERI_RST0_MMC1, &peri_sc->rst0_dis); in mmc1_reset_clk()
306 data = readl(&peri_sc->rst0_stat); in mmc1_reset_clk()
315 hi6220_clk_disable(PERI_CLK0_MMC0, &peri_sc->clk0_dis); in mmc0_reset_clk()
318 hi6220_clk_enable(PERI_CLK0_MMC0, &peri_sc->clk0_en); in mmc0_reset_clk()
321 writel(PERI_RST0_MMC0, &peri_sc->rst0_en); in mmc0_reset_clk()
324 data = readl(&peri_sc->ctrl2); in mmc0_reset_clk()
326 writel(data, &peri_sc->ctrl2); in mmc0_reset_clk()
329 data = readl(&peri_sc->ctrl13); in mmc0_reset_clk()
331 writel(data, &peri_sc->ctrl13); in mmc0_reset_clk()
333 data = readl(&peri_sc->rst0_stat); in mmc0_reset_clk()
337 writel(PERI_RST0_MMC0, &peri_sc->rst0_dis); in mmc0_reset_clk()
339 data = readl(&peri_sc->rst0_stat); in mmc0_reset_clk()