]>
Commit | Line | Data |
---|---|---|
9d233b4e TK |
1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | |
3 | * Texas Instruments' K3 Adaptive Voltage Scaling driver | |
4 | * | |
5 | * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ | |
6 | * Tero Kristo <[email protected]> | |
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 | ||
9a03e50c K |
19 | #define J721E_VDD_MPU 2 |
20 | ||
9d233b4e TK |
21 | #define NUM_OPPS 4 |
22 | ||
23 | #define AM6_OPP_NOM 1 | |
24 | #define AM6_OPP_OD 2 | |
25 | #define AM6_OPP_TURBO 3 | |
26 | ||
27 | int k3_avs_set_opp(struct udevice *dev, int vdd_id, int opp_id); | |
28 | int k3_avs_notify_freq(int dev_id, int clk_id, u32 freq); | |
29 | ||
30 | #endif |