blob: 4d1094a65ad22cd7520b36323fd8385a863b22f2 [file] [log] [blame]
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +03001/*
2 * Copyright (C) 2017 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef ARO_H
8#define ARO_H
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +03009
10enum hws_freq {
11 CPU_FREQ_2000,
12 CPU_FREQ_1800,
13 CPU_FREQ_1600,
14 CPU_FREQ_1400,
15 CPU_FREQ_1300,
16 CPU_FREQ_1200,
17 CPU_FREQ_1000,
18 CPU_FREQ_600,
19 CPU_FREQ_800,
20 DDR_FREQ_LAST,
21 DDR_FREQ_SAR
22};
23
Grzegorz Jaszczyka5d06272018-12-20 17:13:19 +010024#include <mvebu_def.h>
25
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030026enum cpu_clock_freq_mode {
27 CPU_2000_DDR_1200_RCLK_1200 = 0x0,
28 CPU_2000_DDR_1050_RCLK_1050 = 0x1,
29 CPU_1600_DDR_800_RCLK_800 = 0x4,
Grzegorz Jaszczyka5d06272018-12-20 17:13:19 +010030 CPU_2200_DDR_1200_RCLK_1200 = 0x6,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030031 CPU_1800_DDR_1050_RCLK_1050 = 0x7,
32 CPU_1600_DDR_900_RCLK_900 = 0x0B,
33 CPU_1600_DDR_1050_RCLK_1050 = 0x0D,
Christine Gharzuzi46a4fc62018-08-02 20:25:11 +030034 CPU_1600_DDR_1200_RCLK_1200 = 0x0D,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030035 CPU_1600_DDR_900_RCLK_900_2 = 0x0E,
36 CPU_1000_DDR_650_RCLK_650 = 0x13,
37 CPU_1300_DDR_800_RCLK_800 = 0x14,
38 CPU_1300_DDR_650_RCLK_650 = 0x17,
39 CPU_1200_DDR_800_RCLK_800 = 0x19,
40 CPU_1400_DDR_800_RCLK_800 = 0x1a,
41 CPU_600_DDR_800_RCLK_800 = 0x1B,
42 CPU_800_DDR_800_RCLK_800 = 0x1C,
43 CPU_1000_DDR_800_RCLK_800 = 0x1D,
44 CPU_DDR_RCLK_INVALID
45};
46
47int init_aro(void);
48
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000049#endif /* ARO_H */