From aeccd17ca3672fa7068a3af26733c556c1665b02 Mon Sep 17 00:00:00 2001 From: sreenivasulu velpula Date: Fri, 30 Mar 2018 22:37:26 +0530 Subject: cpufreq: Add support for Guest VM with this changes, guest VM will be able to set/get the CPU frequencies of the CPUs guest owns. Guest cpufreq driver will interface with the cpufreq server which is part of bpmp server. ESLC-1617 Change-Id: I3a4d14ec444a106a8136d3ef271f54c2b5cc5aff Signed-off-by: sreenivasulu velpula Reviewed-on: https://git-master.nvidia.com/r/1685271 Reviewed-by: Bo Yan Reviewed-by: svc-mobile-coverity Reviewed-by: Nitin Sehgal GVS: Gerrit_Virtual_Submit Reviewed-by: Vipin Kumar Reviewed-by: Sandeep Trasi Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra-cpufreq.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/tegra-cpufreq.h b/include/linux/tegra-cpufreq.h index 3a2a2fb9a..4563da02d 100644 --- a/include/linux/tegra-cpufreq.h +++ b/include/linux/tegra-cpufreq.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -20,12 +20,15 @@ enum tegra_cpufreq_msg_ids { TEGRA_CPU_FREQ_THROTTLE, TEGRA_CPU_FREQ_SET_RATE, + TEGRA_CPU_FREQ_GET_RATE, MAX_IVC_MSG_ID, }; -int tegra_cpufreq_tx_ivc_msg(uint32_t id, uint32_t len, void *msg_buf); int parse_hv_dt_data(struct device_node *dn); +int parse_t194_cpufreq_hv_dt(struct device_node *dn); bool hv_is_set_speed_supported(void); void tegra_update_cpu_speed_hv(uint32_t rate, uint8_t cpu); +uint32_t t194_get_cpu_speed_hv(uint32_t cpu); +void t194_update_cpu_speed_hv(uint32_t rate, uint32_t cpu); #endif -- cgit v1.2.2