Path: blob/main/sys/arm/qualcomm/qcom_cpu_kpssv2_reg.h
39536 views
/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2021 Adrian Chadd <[email protected]>4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8* 1. Redistributions of source code must retain the above copyright9* notice, this list of conditions and the following disclaimer.10* 2. Redistributions in binary form must reproduce the above copyright11* notice, this list of conditions and the following disclaimer in the12* documentation and/or other materials provided with the distribution.13*14* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND15* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE18* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL19* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS20* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)21* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT22* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY23* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF24* SUCH DAMAGE.25*/2627#ifndef __QCOM_CPU_KPSSV2_REG_H__28#define __QCOM_CPU_KPSSV2_REG_H__293031/*32* APCS CPU core regulator registers.33*/34#define QCOM_APCS_CPU_PWR_CTL 0x0435#define QCOM_APCS_CPU_PWR_CTL_PLL_CLAMP (1U << 8)36#define QCOM_APCS_CPU_PWR_CTL_CORE_PWRD_UP (1U << 7)37#define QCOM_APCS_CPU_PWR_CTL_COREPOR_RST (1U << 5)38#define QCOM_APCS_CPU_PWR_CTL_CORE_RST (1U << 4)39#define QCOM_APCS_CPU_PWR_CTL_L2DT_SLP (1U << 3)40#define QCOM_APCS_CPU_PWR_CTL_CLAMP (1U << 0)4142#define QCOM_APC_PWR_GATE_CTL 0x1443#define QCOM_APC_PWR_GATE_CTL_BHS_CNT_SHIFT 2444#define QCOM_APC_PWR_GATE_CTL_LDO_PWR_DWN_SHIFT 1645#define QCOM_APC_PWR_GATE_CTL_LDO_BYP_SHIFT 846#define QCOM_APC_PWR_GATE_CTL_BHS_SEG_SHIFT 147#define QCOM_APC_PWR_GATE_CTL_BHS_EN (1U << 0)484950/*51* L2 cache regulator registers.52*/53#define QCOM_APCS_SAW2_2_VCTL 0x1c5455#endif /* __QCOM_CPU_KPSSV2_REG_H__ */565758