165e0e4d6SMike Tipton /* SPDX-License-Identifier: GPL-2.0-only */ 265e0e4d6SMike Tipton /* 365e0e4d6SMike Tipton * Copyright (c) 2020, The Linux Foundation. All rights reserved. 465e0e4d6SMike Tipton */ 565e0e4d6SMike Tipton 665e0e4d6SMike Tipton #ifndef __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H 765e0e4d6SMike Tipton #define __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H 865e0e4d6SMike Tipton 965e0e4d6SMike Tipton /* 1065e0e4d6SMike Tipton * The AMC bucket denotes constraints that are applied to hardware when 1165e0e4d6SMike Tipton * icc_set_bw() completes, whereas the WAKE and SLEEP constraints are applied 1265e0e4d6SMike Tipton * when the execution environment transitions between active and low power mode. 1365e0e4d6SMike Tipton */ 1465e0e4d6SMike Tipton #define QCOM_ICC_BUCKET_AMC 0 1565e0e4d6SMike Tipton #define QCOM_ICC_BUCKET_WAKE 1 1665e0e4d6SMike Tipton #define QCOM_ICC_BUCKET_SLEEP 2 1765e0e4d6SMike Tipton #define QCOM_ICC_NUM_BUCKETS 3 1865e0e4d6SMike Tipton 1965e0e4d6SMike Tipton #define QCOM_ICC_TAG_AMC (1 << QCOM_ICC_BUCKET_AMC) 2065e0e4d6SMike Tipton #define QCOM_ICC_TAG_WAKE (1 << QCOM_ICC_BUCKET_WAKE) 2165e0e4d6SMike Tipton #define QCOM_ICC_TAG_SLEEP (1 << QCOM_ICC_BUCKET_SLEEP) 2265e0e4d6SMike Tipton #define QCOM_ICC_TAG_ACTIVE_ONLY (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE) 2365e0e4d6SMike Tipton #define QCOM_ICC_TAG_ALWAYS (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE |\ 2465e0e4d6SMike Tipton QCOM_ICC_TAG_SLEEP) 2565e0e4d6SMike Tipton 2665e0e4d6SMike Tipton #endif 27