1 // SPDX-License-Identifier: GPL-2.0-only
3 * OMAP4 OPP table definitions.
5 * Copyright (C) 2010-2012 Texas Instruments Incorporated - https://www.ti.com/
9 * Copyright (C) 2010-2011 Nokia Corporation.
13 #include <linux/module.h>
17 #include "omap_opp_data.h"
21 * Structures containing OMAP4430 voltage supported and various
22 * voltage dependent data for each VDD.
25 #define OMAP4430_VDD_MPU_OPP50_UV 1025000
26 #define OMAP4430_VDD_MPU_OPP100_UV 1200000
27 #define OMAP4430_VDD_MPU_OPPTURBO_UV 1325000
28 #define OMAP4430_VDD_MPU_OPPNITRO_UV 1388000
29 #define OMAP4430_VDD_MPU_OPPNITROSB_UV 1398000
31 struct omap_volt_data omap443x_vdd_mpu_volt_data
[] = {
32 VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPP50_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPP50
, 0xf4, 0x0c),
33 VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPP100_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPP100
, 0xf9, 0x16),
34 VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPTURBO_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPPTURBO
, 0xfa, 0x23),
35 VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPNITRO_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPPNITRO
, 0xfa, 0x27),
36 VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPNITROSB_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPPNITROSB
, 0xfa, 0x27),
37 VOLT_DATA_DEFINE(0, 0, 0, 0),
40 #define OMAP4430_VDD_IVA_OPP50_UV 950000
41 #define OMAP4430_VDD_IVA_OPP100_UV 1114000
42 #define OMAP4430_VDD_IVA_OPPTURBO_UV 1291000
44 struct omap_volt_data omap443x_vdd_iva_volt_data
[] = {
45 VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPP50_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPP50
, 0xf4, 0x0c),
46 VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPP100_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPP100
, 0xf9, 0x16),
47 VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPPTURBO_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPPTURBO
, 0xfa, 0x23),
48 VOLT_DATA_DEFINE(0, 0, 0, 0),
51 #define OMAP4430_VDD_CORE_OPP50_UV 962000
52 #define OMAP4430_VDD_CORE_OPP100_UV 1127000
54 struct omap_volt_data omap443x_vdd_core_volt_data
[] = {
55 VOLT_DATA_DEFINE(OMAP4430_VDD_CORE_OPP50_UV
, OMAP44XX_CONTROL_FUSE_CORE_OPP50
, 0xf4, 0x0c),
56 VOLT_DATA_DEFINE(OMAP4430_VDD_CORE_OPP100_UV
, OMAP44XX_CONTROL_FUSE_CORE_OPP100
, 0xf9, 0x16),
57 VOLT_DATA_DEFINE(0, 0, 0, 0),
60 #define OMAP4460_VDD_MPU_OPP50_UV 1025000
61 #define OMAP4460_VDD_MPU_OPP100_UV 1200000
62 #define OMAP4460_VDD_MPU_OPPTURBO_UV 1313000
63 #define OMAP4460_VDD_MPU_OPPNITRO_UV 1375000
65 struct omap_volt_data omap446x_vdd_mpu_volt_data
[] = {
66 VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPP50_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPP50
, 0xf4, 0x0c),
67 VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPP100_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPP100
, 0xf9, 0x16),
68 VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPPTURBO_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPPTURBO
, 0xfa, 0x23),
69 VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPPNITRO_UV
, OMAP44XX_CONTROL_FUSE_MPU_OPPNITRO
, 0xfa, 0x27),
70 VOLT_DATA_DEFINE(0, 0, 0, 0),
73 #define OMAP4460_VDD_IVA_OPP50_UV 1025000
74 #define OMAP4460_VDD_IVA_OPP100_UV 1200000
75 #define OMAP4460_VDD_IVA_OPPTURBO_UV 1313000
76 #define OMAP4460_VDD_IVA_OPPNITRO_UV 1375000
78 struct omap_volt_data omap446x_vdd_iva_volt_data
[] = {
79 VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPP50_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPP50
, 0xf4, 0x0c),
80 VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPP100_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPP100
, 0xf9, 0x16),
81 VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPPTURBO_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPPTURBO
, 0xfa, 0x23),
82 VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPPNITRO_UV
, OMAP44XX_CONTROL_FUSE_IVA_OPPNITRO
, 0xfa, 0x23),
83 VOLT_DATA_DEFINE(0, 0, 0, 0),
86 #define OMAP4460_VDD_CORE_OPP50_UV 1025000
87 #define OMAP4460_VDD_CORE_OPP100_UV 1200000
88 #define OMAP4460_VDD_CORE_OPP100_OV_UV 1250000
90 struct omap_volt_data omap446x_vdd_core_volt_data
[] = {
91 VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP50_UV
, OMAP44XX_CONTROL_FUSE_CORE_OPP50
, 0xf4, 0x0c),
92 VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP100_UV
, OMAP44XX_CONTROL_FUSE_CORE_OPP100
, 0xf9, 0x16),
93 VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP100_OV_UV
, OMAP44XX_CONTROL_FUSE_CORE_OPP100OV
, 0xf9, 0x16),
94 VOLT_DATA_DEFINE(0, 0, 0, 0),