mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
5ea428595c
The Adaptive Supply Voltage (ASV) driver adjusts CPU cluster operating points depending on exact revision of an SoC retrieved from the CHIPID block or the OTP memory. This allows for some power saving as for some CPU clock frequencies we can lower CPU cluster's supply voltage comparing to safe values common to all the SoC revisions. This patch adds support for Exynos5422/5800 SoC, it is partially based on code from https://github.com/hardkernel/linux repository, branch odroidxu4-4.14.y, files: arch/arm/mach-exynos/exynos5422-asv.[ch]. Tested on Odroid XU3, XU4, XU3 Lite. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
32 lines
625 B
C
32 lines
625 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com/
|
|
*
|
|
* Samsung Exynos 5422 SoC Adaptive Supply Voltage support
|
|
*/
|
|
|
|
#ifndef __LINUX_SOC_EXYNOS5422_ASV_H
|
|
#define __LINUX_SOC_EXYNOS5422_ASV_H
|
|
|
|
#include <linux/errno.h>
|
|
|
|
enum {
|
|
EXYNOS_ASV_SUBSYS_ID_ARM,
|
|
EXYNOS_ASV_SUBSYS_ID_KFC,
|
|
EXYNOS_ASV_SUBSYS_ID_MAX
|
|
};
|
|
|
|
struct exynos_asv;
|
|
|
|
#ifdef CONFIG_EXYNOS_ASV_ARM
|
|
int exynos5422_asv_init(struct exynos_asv *asv);
|
|
#else
|
|
static inline int exynos5422_asv_init(struct exynos_asv *asv)
|
|
{
|
|
return -ENOTSUPP;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LINUX_SOC_EXYNOS5422_ASV_H */
|