Lines Matching refs:cmalwon
133 const struct cm_alwon *cmalwon = (struct cm_alwon *)CM_ALWON_BASE; variable
300 writel(PRCM_MOD_EN, &cmalwon->l3slowclkstctrl); in peripheral_enable()
312 writel(PRCM_MOD_EN, &cmalwon->timer1clkctrl); in peripheral_enable()
317 while (((readl(&cmalwon->l3slowclkstctrl) in peripheral_enable()
321 while (((readl(&cmalwon->timer1clkctrl) & 0x30000)>>16) != 0) in peripheral_enable()
336 writel(PRCM_MOD_EN, &cmalwon->gpio0clkctrl); in peripheral_enable()
337 while (readl(&cmalwon->gpio0clkctrl) != PRCM_MOD_EN) in peripheral_enable()
339 writel((BIT(1) | BIT(8)), &cmalwon->gpio0clkctrl); in peripheral_enable()
342 writel(PRCM_MOD_EN, &cmalwon->gpio1clkctrl); in peripheral_enable()
343 while (readl(&cmalwon->gpio1clkctrl) != PRCM_MOD_EN) in peripheral_enable()
345 writel((BIT(1) | BIT(8)), &cmalwon->gpio1clkctrl); in peripheral_enable()
348 writel(PRCM_MOD_EN, &cmalwon->spiclkctrl); in peripheral_enable()
349 while (readl(&cmalwon->spiclkctrl) != PRCM_MOD_EN) in peripheral_enable()
353 writel(PRCM_MOD_EN, &cmalwon->i2c0clkctrl); in peripheral_enable()
354 while (readl(&cmalwon->i2c0clkctrl) != PRCM_MOD_EN) in peripheral_enable()
358 writel(PRCM_MOD_EN, &cmalwon->ethclkstctrl); in peripheral_enable()
359 writel(PRCM_MOD_EN, &cmalwon->ethernet0clkctrl); in peripheral_enable()
360 writel(PRCM_MOD_EN, &cmalwon->ethernet1clkctrl); in peripheral_enable()
363 writel(PRCM_MOD_EN, &cmalwon->sdioclkctrl); in peripheral_enable()
364 while (readl(&cmalwon->sdioclkctrl) != PRCM_MOD_EN) in peripheral_enable()
376 writel(PRCM_MOD_EN, &cmalwon->uart0clkctrl); in setup_clocks_for_console()
377 while (readl(&cmalwon->uart0clkctrl) != PRCM_MOD_EN) in setup_clocks_for_console()
379 writel(PRCM_MOD_EN, &cmalwon->uart1clkctrl); in setup_clocks_for_console()
380 while (readl(&cmalwon->uart1clkctrl) != PRCM_MOD_EN) in setup_clocks_for_console()
382 writel(PRCM_MOD_EN, &cmalwon->uart2clkctrl); in setup_clocks_for_console()
383 while (readl(&cmalwon->uart2clkctrl) != PRCM_MOD_EN) in setup_clocks_for_console()
385 while ((readl(&cmalwon->l3slowclkstctrl) & 0x2100) != 0x2100) in setup_clocks_for_console()
397 writel(PRCM_MOD_EN, &cmalwon->controlclkctrl); in prcm_init()