* Get the power status of device. This feature is only supported on * Kirkwood and Discovery SoCs. */
| 636 | * Kirkwood and Discovery SoCs. |
| 637 | */ |
| 638 | uint32_t |
| 639 | soc_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 |
no test coverage detected