Loading drivers/clk/qcom/clock-rpm.c +23 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2015, 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 Loading Loading @@ -299,6 +299,28 @@ int enable_rpm_scaling(void) return 0; } int vote_bimc(struct rpm_clk *r, uint32_t value) { int rc; struct msm_rpm_kvp kvp = { .key = r->rpm_key, .data = (void *)&value, .length = sizeof(value), }; rc = msm_rpm_send_message_noirq(MSM_RPM_CTX_ACTIVE_SET, r->rpm_res_type, r->rpmrs_data->ctx_active_id, &kvp, 1); if (rc < 0) { if (rc != -EPROBE_DEFER) WARN(1, "BIMC vote not sent!\n"); return rc; } return rc; } struct clk_ops clk_ops_rpm = { .prepare = rpm_clk_prepare, .unprepare = rpm_clk_unprepare, Loading include/soc/qcom/clock-rpm.h +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2015, 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 Loading Loading @@ -54,6 +54,8 @@ static inline struct rpm_clk *to_rpm_clk(struct clk *clk) */ int enable_rpm_scaling(void); int vote_bimc(struct rpm_clk *r, uint32_t value); extern struct clk_rpmrs_data clk_rpmrs_data_smd; #define __DEFINE_CLK_RPM(name, active, type, r_id, stat_id, dep, key, \ Loading Loading
drivers/clk/qcom/clock-rpm.c +23 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2015, 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 Loading Loading @@ -299,6 +299,28 @@ int enable_rpm_scaling(void) return 0; } int vote_bimc(struct rpm_clk *r, uint32_t value) { int rc; struct msm_rpm_kvp kvp = { .key = r->rpm_key, .data = (void *)&value, .length = sizeof(value), }; rc = msm_rpm_send_message_noirq(MSM_RPM_CTX_ACTIVE_SET, r->rpm_res_type, r->rpmrs_data->ctx_active_id, &kvp, 1); if (rc < 0) { if (rc != -EPROBE_DEFER) WARN(1, "BIMC vote not sent!\n"); return rc; } return rc; } struct clk_ops clk_ops_rpm = { .prepare = rpm_clk_prepare, .unprepare = rpm_clk_unprepare, Loading
include/soc/qcom/clock-rpm.h +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2015, 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 Loading Loading @@ -54,6 +54,8 @@ static inline struct rpm_clk *to_rpm_clk(struct clk *clk) */ int enable_rpm_scaling(void); int vote_bimc(struct rpm_clk *r, uint32_t value); extern struct clk_rpmrs_data clk_rpmrs_data_smd; #define __DEFINE_CLK_RPM(name, active, type, r_id, stat_id, dep, key, \ Loading