MCPcopy Create free account
hub / github.com/F-Stack/f-stack / soc_power_ctrl_get

Function soc_power_ctrl_get

freebsd/arm/mv/mv_common.c:638–650  ·  view source on GitHub ↗

* Get the power status of device. This feature is only supported on * Kirkwood and Discovery SoCs. */

Source from the content-addressed store, hash-verified

636 * Kirkwood and Discovery SoCs.
637 */
638uint32_t
639soc_power_ctrl_get(uint32_t mask)
640{
641
642#if SOC_MV_POWER_STAT_SUPPORTED
643 if (mask != CPU_PM_CTRL_NONE)
644 mask &= read_cpu_ctrl(CPU_PM_CTRL);
645
646 return (mask);
647#else
648 return (mask);
649#endif
650}
651
652/*
653 * Set the power status of device. This feature is only supported on

Callers 2

pm_is_disabledFunction · 0.85
pm_disable_deviceFunction · 0.85

Calls 1

read_cpu_ctrlFunction · 0.85

Tested by

no test coverage detected