• Home
  • Raw
  • Download

Lines Matching +full:s3c6400 +full:- +full:uart

1 // SPDX-License-Identifier: GPL-2.0
23 #include "wakeup-mask.h"
25 #include "regs-gpio.h"
26 #include "regs-clock.h"
27 #include "gpio-samsung.h"
29 #include "regs-gpio-memport-s3c64xx.h"
30 #include "regs-modem-s3c64xx.h"
31 #include "regs-sys-s3c64xx.h"
32 #include "regs-syscon-power-s3c64xx.h"
49 val &= ~(pd->ena); in s3c64xx_pd_off()
64 val |= pd->ena; in s3c64xx_pd_on()
68 if (pd->pwr_stat) { in s3c64xx_pd_on()
71 if (__raw_readl(S3C64XX_BLK_PWR_STAT) & pd->pwr_stat) in s3c64xx_pd_on()
73 } while (retry--); in s3c64xx_pd_on()
76 pr_err("Failed to start domain %s\n", pd->name); in s3c64xx_pd_on()
77 return -EBUSY; in s3c64xx_pd_on()
240 /* since both s3c6400 and s3c6410 share the same sleep pm calls, we
241 * put the per-cpu code in here until any new cpu comes along and changes
265 * issue a write-buffer drain just in case */ in s3c64xx_cpu_suspend()
322 sav_clk = save->ucon & S3C6400_UCON_CLKMASK; in s3c_pm_arch_update_uart()
324 /* S3C64XX UART blocks only support level interrupts, so ensure that in s3c_pm_arch_update_uart()
325 * when we restore unused UART blocks we force the level interrupt in s3c_pm_arch_update_uart()
327 save->ucon |= S3C2410_UCON_TXILEVEL | S3C2410_UCON_RXILEVEL; in s3c_pm_arch_update_uart()
329 /* We have a constraint on changing the clock type of the UART in s3c_pm_arch_update_uart()
335 new_ucon = save->ucon; in s3c_pm_arch_update_uart()
339 * either UCLK can be tested for by a bit-test in s3c_pm_arch_update_uart()
347 * PCLK2 => PCLK or vice-versa */ in s3c_pm_arch_update_uart()
352 ucon, new_ucon, save->ucon); in s3c_pm_arch_update_uart()
353 save->ucon = new_ucon; in s3c_pm_arch_update_uart()
365 pm_genpd_init(&s3c64xx_always_on_pm_domains[i]->pd, in s3c64xx_pm_init()
369 pm_genpd_init(&s3c64xx_pm_domains[i]->pd, NULL, false); in s3c64xx_pm_init()