Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
0004  */
0005 
0006 #ifndef __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H
0007 #define __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H
0008 
0009 /*
0010  * The AMC bucket denotes constraints that are applied to hardware when
0011  * icc_set_bw() completes, whereas the WAKE and SLEEP constraints are applied
0012  * when the execution environment transitions between active and low power mode.
0013  */
0014 #define QCOM_ICC_BUCKET_AMC     0
0015 #define QCOM_ICC_BUCKET_WAKE        1
0016 #define QCOM_ICC_BUCKET_SLEEP       2
0017 #define QCOM_ICC_NUM_BUCKETS        3
0018 
0019 #define QCOM_ICC_TAG_AMC        (1 << QCOM_ICC_BUCKET_AMC)
0020 #define QCOM_ICC_TAG_WAKE       (1 << QCOM_ICC_BUCKET_WAKE)
0021 #define QCOM_ICC_TAG_SLEEP      (1 << QCOM_ICC_BUCKET_SLEEP)
0022 #define QCOM_ICC_TAG_ACTIVE_ONLY    (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE)
0023 #define QCOM_ICC_TAG_ALWAYS     (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE |\
0024                      QCOM_ICC_TAG_SLEEP)
0025 
0026 #endif