mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
clk: qcom: define vdd_levels enum and vdd_corner[] map
Define a vdd_levels enum and vdd_corner[] mapping table which can be used by clock controller drivers to configure the vdd_class associated with their clocks. Change-Id: Ic32aa8ed63bc756cdc10e8d5a5591011a84c4ede Signed-off-by: Taniya Das <tdas@codeaurora.org>
This commit is contained in:
parent
28f1b2a9ba
commit
94fa48cfd1
1 changed files with 31 additions and 0 deletions
31
drivers/clk/qcom/vdd-level-sdxnightjar.h
Normal file
31
drivers/clk/qcom/vdd-level-sdxnightjar.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXNIGHTJAR_H
|
||||
#define __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXNIGHTJAR_H
|
||||
|
||||
#include <dt-bindings/regulator/qcom,rpm-smd-regulator.h>
|
||||
|
||||
enum vdd_dig_levels {
|
||||
VDD_NONE,
|
||||
VDD_MIN, /* MIN SVS */
|
||||
VDD_LOWER, /* SVS2 */
|
||||
VDD_LOW, /* SVS */
|
||||
VDD_NOMINAL, /* NOM */
|
||||
VDD_HIGH, /* TURBO */
|
||||
VDD_NUM
|
||||
};
|
||||
|
||||
static int vdd_corner[] = {
|
||||
RPM_SMD_REGULATOR_LEVEL_NONE, /* VDD_DIG_NONE */
|
||||
RPM_SMD_REGULATOR_LEVEL_MIN_SVS, /* VDD_DIG_MIN */
|
||||
RPM_SMD_REGULATOR_LEVEL_LOW_SVS, /* VDD_DIG_LOWER */
|
||||
RPM_SMD_REGULATOR_LEVEL_SVS, /* VDD_DIG_LOW */
|
||||
RPM_SMD_REGULATOR_LEVEL_NOM, /* VDD_DIG_NOMINAL */
|
||||
RPM_SMD_REGULATOR_LEVEL_TURBO, /* VDD_DIG_HIGH */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in a new issue