Loading drivers/clk/qcom/gcc-sdxprairie.c +3 −3 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ #include "clk-branch.h" #include "reset.h" #include "clk-alpha-pll.h" #include "vdd-level.h" #include "vdd-level-sdxprairie.h" #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } Loading Loading @@ -1366,7 +1366,7 @@ static struct clk_branch gcc_gp3_clk = { static struct clk_branch gcc_pcie_0_clkref_clk = { .halt_reg = 0x88004, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x88004, .enable_mask = BIT(0), Loading Loading @@ -1696,7 +1696,7 @@ static struct clk_branch gcc_usb3_phy_pipe_clk = { static struct clk_branch gcc_usb3_prim_clkref_clk = { .halt_reg = 0x88000, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x88000, .enable_mask = BIT(0), Loading drivers/clk/qcom/vdd-level-sdxprairie.h 0 → 100644 +41 −0 Original line number Diff line number Diff line /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXPRAIRIE_H #define __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXPRAIRIE_H #include <linux/regulator/consumer.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> enum vdd_levels { VDD_NONE, VDD_MIN, /* MIN SVS */ VDD_LOWER, /* SVS2 */ VDD_LOW, /* SVS */ VDD_LOW_L1, /* SVSL1 */ VDD_NOMINAL, /* NOM */ VDD_HIGH, /* TURBO */ VDD_NUM, }; static int vdd_corner[] = { RPMH_REGULATOR_LEVEL_OFF, /* VDD_NONE */ RPMH_REGULATOR_LEVEL_MIN_SVS, /* VDD_MIN */ RPMH_REGULATOR_LEVEL_LOW_SVS, /* VDD_LOWER */ RPMH_REGULATOR_LEVEL_SVS, /* VDD_LOW */ RPMH_REGULATOR_LEVEL_SVS_L1, /* VDD_LOW_L1 */ RPMH_REGULATOR_LEVEL_NOM, /* VDD_NOMINAL */ RPMH_REGULATOR_LEVEL_TURBO, /* VDD_HIGH */ }; #endif Loading
drivers/clk/qcom/gcc-sdxprairie.c +3 −3 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ #include "clk-branch.h" #include "reset.h" #include "clk-alpha-pll.h" #include "vdd-level.h" #include "vdd-level-sdxprairie.h" #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } Loading Loading @@ -1366,7 +1366,7 @@ static struct clk_branch gcc_gp3_clk = { static struct clk_branch gcc_pcie_0_clkref_clk = { .halt_reg = 0x88004, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x88004, .enable_mask = BIT(0), Loading Loading @@ -1696,7 +1696,7 @@ static struct clk_branch gcc_usb3_phy_pipe_clk = { static struct clk_branch gcc_usb3_prim_clkref_clk = { .halt_reg = 0x88000, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0x88000, .enable_mask = BIT(0), Loading
drivers/clk/qcom/vdd-level-sdxprairie.h 0 → 100644 +41 −0 Original line number Diff line number Diff line /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXPRAIRIE_H #define __DRIVERS_CLK_QCOM_VDD_LEVEL_SDXPRAIRIE_H #include <linux/regulator/consumer.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> enum vdd_levels { VDD_NONE, VDD_MIN, /* MIN SVS */ VDD_LOWER, /* SVS2 */ VDD_LOW, /* SVS */ VDD_LOW_L1, /* SVSL1 */ VDD_NOMINAL, /* NOM */ VDD_HIGH, /* TURBO */ VDD_NUM, }; static int vdd_corner[] = { RPMH_REGULATOR_LEVEL_OFF, /* VDD_NONE */ RPMH_REGULATOR_LEVEL_MIN_SVS, /* VDD_MIN */ RPMH_REGULATOR_LEVEL_LOW_SVS, /* VDD_LOWER */ RPMH_REGULATOR_LEVEL_SVS, /* VDD_LOW */ RPMH_REGULATOR_LEVEL_SVS_L1, /* VDD_LOW_L1 */ RPMH_REGULATOR_LEVEL_NOM, /* VDD_NOMINAL */ RPMH_REGULATOR_LEVEL_TURBO, /* VDD_HIGH */ }; #endif