18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2020, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H 78c2ecf20Sopenharmony_ci#define __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* 108c2ecf20Sopenharmony_ci * The AMC bucket denotes constraints that are applied to hardware when 118c2ecf20Sopenharmony_ci * icc_set_bw() completes, whereas the WAKE and SLEEP constraints are applied 128c2ecf20Sopenharmony_ci * when the execution environment transitions between active and low power mode. 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_ci#define QCOM_ICC_BUCKET_AMC 0 158c2ecf20Sopenharmony_ci#define QCOM_ICC_BUCKET_WAKE 1 168c2ecf20Sopenharmony_ci#define QCOM_ICC_BUCKET_SLEEP 2 178c2ecf20Sopenharmony_ci#define QCOM_ICC_NUM_BUCKETS 3 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define QCOM_ICC_TAG_AMC (1 << QCOM_ICC_BUCKET_AMC) 208c2ecf20Sopenharmony_ci#define QCOM_ICC_TAG_WAKE (1 << QCOM_ICC_BUCKET_WAKE) 218c2ecf20Sopenharmony_ci#define QCOM_ICC_TAG_SLEEP (1 << QCOM_ICC_BUCKET_SLEEP) 228c2ecf20Sopenharmony_ci#define QCOM_ICC_TAG_ACTIVE_ONLY (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE) 238c2ecf20Sopenharmony_ci#define QCOM_ICC_TAG_ALWAYS (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE |\ 248c2ecf20Sopenharmony_ci QCOM_ICC_TAG_SLEEP) 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif 27