blob: 1014d5d114d0c2c8c72312759ca745d1078aa3b7 [file] [log] [blame]
Tero Kristo9d233b42019-10-24 15:00:46 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Texas Instruments' K3 Adaptive Voltage Scaling driver
4 *
Nishanth Menona94a4072023-11-01 15:56:03 -05005 * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
Tero Kristo9d233b42019-10-24 15:00:46 +05306 * Tero Kristo <t-kristo@ti.com>
7 *
8 */
9
10#ifndef _K3_AVS0_
11#define _K3_AVS0_
12
13#define AM6_VDD_WKUP 0
14#define AM6_VDD_MCU 1
15#define AM6_VDD_CORE 2
16#define AM6_VDD_MPU0 3
17#define AM6_VDD_MPU1 4
18
Keerthy9a03e502019-10-24 15:00:49 +053019#define J721E_VDD_MPU 2
20
Tero Kristo9d233b42019-10-24 15:00:46 +053021#define NUM_OPPS 4
22
23#define AM6_OPP_NOM 1
24#define AM6_OPP_OD 2
25#define AM6_OPP_TURBO 3
26
27int k3_avs_set_opp(struct udevice *dev, int vdd_id, int opp_id);
28int k3_avs_notify_freq(int dev_id, int clk_id, u32 freq);
29
30#endif