1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * 4 * (C) COPYRIGHT 2018-2021 ARM Limited. All rights reserved. 5 * 6 * This program is free software and is provided to you under the terms of the 7 * GNU General Public License version 2 as published by the Free Software 8 * Foundation, and any use by you of this program is subject to the terms 9 * of such GNU license. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, you can access it online at 18 * http://www.gnu.org/licenses/gpl-2.0.html. 19 * 20 */ 21 22 /* 23 * Backend-specific Power Manager level 2 cache state definitions. 24 * The function-like macro KBASEP_L2_STATE() must be defined before including 25 * this header file. This header file can be included multiple times in the 26 * same compilation unit with different definitions of KBASEP_L2_STATE(). 27 * 28 * @OFF: The L2 cache and tiler are off 29 * @PEND_ON: The L2 cache and tiler are powering on 30 * @RESTORE_CLOCKS: The GPU clock is restored. Conditionally used. 31 * @ON_HWCNT_ENABLE: The L2 cache and tiler are on, and hwcnt is being enabled 32 * @ON: The L2 cache and tiler are on, and hwcnt is enabled 33 * @ON_HWCNT_DISABLE: The L2 cache and tiler are on, and hwcnt is being disabled 34 * @SLOW_DOWN_CLOCKS: The GPU clock is set to appropriate or lowest clock. 35 * Conditionally used. 36 * @POWER_DOWN: The L2 cache and tiler are about to be powered off 37 * @PEND_OFF: The L2 cache and tiler are powering off 38 * @RESET_WAIT: The GPU is resetting, L2 cache and tiler power state are 39 * unknown 40 */ 41 KBASEP_L2_STATE(OFF) 42 KBASEP_L2_STATE(PEND_ON) 43 KBASEP_L2_STATE(RESTORE_CLOCKS) 44 KBASEP_L2_STATE(ON_HWCNT_ENABLE) 45 KBASEP_L2_STATE(ON) 46 KBASEP_L2_STATE(ON_HWCNT_DISABLE) 47 KBASEP_L2_STATE(SLOW_DOWN_CLOCKS) 48 KBASEP_L2_STATE(POWER_DOWN) 49 KBASEP_L2_STATE(PEND_OFF) 50 KBASEP_L2_STATE(RESET_WAIT) 51