mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -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: Ia0c2ed35f7c87cc3dc9947844625a463745e2ac5 Signed-off-by: David Collins <collinsd@codeaurora.org>
This commit is contained in:
parent
e3688042c0
commit
4f67668b53
1 changed files with 31 additions and 0 deletions
31
drivers/clk/qcom/vdd-level.h
Normal file
31
drivers/clk/qcom/vdd-level.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2019, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#ifndef __DRIVERS_CLK_QCOM_VDD_LEVEL_H
|
||||
#define __DRIVERS_CLK_QCOM_VDD_LEVEL_H
|
||||
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
|
||||
|
||||
enum vdd_levels {
|
||||
VDD_NONE,
|
||||
VDD_MIN, /* MIN_SVS */
|
||||
VDD_LOWER, /* LOW_SVS / SVS2 */
|
||||
VDD_LOW, /* SVS */
|
||||
VDD_LOW_L1, /* SVS_L1 */
|
||||
VDD_NOMINAL, /* NOM */
|
||||
VDD_HIGH, /* TURBO */
|
||||
VDD_NUM,
|
||||
};
|
||||
|
||||
static int vdd_corner[] = {
|
||||
[VDD_NONE] = 0,
|
||||
[VDD_MIN] = RPMH_REGULATOR_LEVEL_MIN_SVS,
|
||||
[VDD_LOWER] = RPMH_REGULATOR_LEVEL_LOW_SVS,
|
||||
[VDD_LOW] = RPMH_REGULATOR_LEVEL_SVS,
|
||||
[VDD_LOW_L1] = RPMH_REGULATOR_LEVEL_SVS_L1,
|
||||
[VDD_NOMINAL] = RPMH_REGULATOR_LEVEL_NOM,
|
||||
[VDD_HIGH] = RPMH_REGULATOR_LEVEL_TURBO,
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue