Add enum dpll_feature_state for control over features. Add dpll device level attribute: DPLL_A_PHASE_OFFSET_MONITOR - to allow control over a phase offset monitor feature. Attribute is present and shall return current state of a feature (enum dpll_feature_state), if the device driver provides such capability, otherwie attribute shall not be present.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -192,6 +192,17 @@ enum dpll_pin_capabilities { · 191 unmodified lines | ||
| 192 | 192 | |
| 193 | 193 | #define DPLL_PHASE_OFFSET_DIVIDER 1000 |
| 194 | 194 | |
| 195 | +/** | |
| 196 | + * enum dpll_feature_state - Allow control (enable/disable) and status checking | |
| 197 | + * over features. | |
| 198 | + * @DPLL_FEATURE_STATE_DISABLE: feature shall be disabled | |
| 199 | + * @DPLL_FEATURE_STATE_ENABLE: feature shall be enabled | |
| 200 | + */ | |
| 201 | +enum dpll_feature_state { | |
| 202 | + DPLL_FEATURE_STATE_DISABLE, | |
| 203 | + DPLL_FEATURE_STATE_ENABLE, | |
| 204 | +}; | |
| 205 | + | |
| 195 | 206 | enum dpll_a { |
| 196 | 207 | DPLL_A_ID = 1, |
| 197 | 208 | DPLL_A_MODULE_NAME, |
| @@ -204,6 +215,7 @@ enum dpll_a { · 6 unmodified lines | ||
| 204 | 215 | DPLL_A_TYPE, |
| 205 | 216 | DPLL_A_LOCK_STATUS_ERROR, |
| 206 | 217 | DPLL_A_CLOCK_QUALITY_LEVEL, |
| 218 | + DPLL_A_PHASE_OFFSET_MONITOR, | |
| 207 | 219 | |
| 208 | 220 | __DPLL_A_MAX, |
| 209 | 221 | DPLL_A_MAX = (__DPLL_A_MAX - 1) |