Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 1 | /* |
| 2 | * OMAP4 OPP table definitions. |
| 3 | * |
Vishwanath Sripathy | df7cded | 2012-09-25 19:33:50 +0300 | [diff] [blame] | 4 | * Copyright (C) 2010-2012 Texas Instruments Incorporated - http://www.ti.com/ |
Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 5 | * Nishanth Menon |
| 6 | * Kevin Hilman |
| 7 | * Thara Gopinath |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 8 | * Copyright (C) 2010-2011 Nokia Corporation. |
Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 9 | * Eduardo Valentin |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 10 | * Paul Walmsley |
Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License version 2 as |
| 14 | * published by the Free Software Foundation. |
| 15 | * |
| 16 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 17 | * kind, whether express or implied; without even the implied warranty |
| 18 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | */ |
| 21 | #include <linux/module.h> |
| 22 | |
Tony Lindgren | dbc0416 | 2012-08-31 10:59:07 -0700 | [diff] [blame] | 23 | #include "soc.h" |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 24 | #include "control.h" |
Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 25 | #include "omap_opp_data.h" |
Menon, Nishanth | eb05ead | 2011-01-05 20:49:35 +0000 | [diff] [blame] | 26 | #include "pm.h" |
Nishanth Menon | f5a6422 | 2010-12-09 09:13:47 -0600 | [diff] [blame] | 27 | |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 28 | /* |
| 29 | * Structures containing OMAP4430 voltage supported and various |
| 30 | * voltage dependent data for each VDD. |
| 31 | */ |
| 32 | |
Shweta Gulati | d9a2012d | 2011-03-10 10:23:49 +0530 | [diff] [blame] | 33 | #define OMAP4430_VDD_MPU_OPP50_UV 1025000 |
| 34 | #define OMAP4430_VDD_MPU_OPP100_UV 1200000 |
Tony Lindgren | 32236a8 | 2019-10-16 07:37:05 -0700 | [diff] [blame] | 35 | #define OMAP4430_VDD_MPU_OPPTURBO_UV 1325000 |
| 36 | #define OMAP4430_VDD_MPU_OPPNITRO_UV 1388000 |
| 37 | #define OMAP4430_VDD_MPU_OPPNITROSB_UV 1398000 |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 38 | |
Vishwanath Sripathy | df7cded | 2012-09-25 19:33:50 +0300 | [diff] [blame] | 39 | struct omap_volt_data omap443x_vdd_mpu_volt_data[] = { |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 40 | VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPP50_UV, OMAP44XX_CONTROL_FUSE_MPU_OPP50, 0xf4, 0x0c), |
| 41 | VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPP100_UV, OMAP44XX_CONTROL_FUSE_MPU_OPP100, 0xf9, 0x16), |
| 42 | VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPTURBO_UV, OMAP44XX_CONTROL_FUSE_MPU_OPPTURBO, 0xfa, 0x23), |
| 43 | VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPNITRO_UV, OMAP44XX_CONTROL_FUSE_MPU_OPPNITRO, 0xfa, 0x27), |
Tony Lindgren | 32236a8 | 2019-10-16 07:37:05 -0700 | [diff] [blame] | 44 | VOLT_DATA_DEFINE(OMAP4430_VDD_MPU_OPPNITROSB_UV, OMAP44XX_CONTROL_FUSE_MPU_OPPNITROSB, 0xfa, 0x27), |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 45 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 46 | }; |
| 47 | |
Tony Lindgren | 32236a8 | 2019-10-16 07:37:05 -0700 | [diff] [blame] | 48 | #define OMAP4430_VDD_IVA_OPP50_UV 950000 |
| 49 | #define OMAP4430_VDD_IVA_OPP100_UV 1114000 |
| 50 | #define OMAP4430_VDD_IVA_OPPTURBO_UV 1291000 |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 51 | |
Vishwanath Sripathy | df7cded | 2012-09-25 19:33:50 +0300 | [diff] [blame] | 52 | struct omap_volt_data omap443x_vdd_iva_volt_data[] = { |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 53 | VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPP50_UV, OMAP44XX_CONTROL_FUSE_IVA_OPP50, 0xf4, 0x0c), |
| 54 | VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPP100_UV, OMAP44XX_CONTROL_FUSE_IVA_OPP100, 0xf9, 0x16), |
| 55 | VOLT_DATA_DEFINE(OMAP4430_VDD_IVA_OPPTURBO_UV, OMAP44XX_CONTROL_FUSE_IVA_OPPTURBO, 0xfa, 0x23), |
| 56 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 57 | }; |
| 58 | |
Tony Lindgren | 32236a8 | 2019-10-16 07:37:05 -0700 | [diff] [blame] | 59 | #define OMAP4430_VDD_CORE_OPP50_UV 962000 |
| 60 | #define OMAP4430_VDD_CORE_OPP100_UV 1127000 |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 61 | |
Vishwanath Sripathy | df7cded | 2012-09-25 19:33:50 +0300 | [diff] [blame] | 62 | struct omap_volt_data omap443x_vdd_core_volt_data[] = { |
Paul Walmsley | c0718df | 2011-03-10 22:17:45 -0700 | [diff] [blame] | 63 | VOLT_DATA_DEFINE(OMAP4430_VDD_CORE_OPP50_UV, OMAP44XX_CONTROL_FUSE_CORE_OPP50, 0xf4, 0x0c), |
| 64 | VOLT_DATA_DEFINE(OMAP4430_VDD_CORE_OPP100_UV, OMAP44XX_CONTROL_FUSE_CORE_OPP100, 0xf9, 0x16), |
| 65 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 66 | }; |
| 67 | |
Vishwanath Sripathy | df7cded | 2012-09-25 19:33:50 +0300 | [diff] [blame] | 68 | #define OMAP4460_VDD_MPU_OPP50_UV 1025000 |
| 69 | #define OMAP4460_VDD_MPU_OPP100_UV 1200000 |
| 70 | #define OMAP4460_VDD_MPU_OPPTURBO_UV 1313000 |
| 71 | #define OMAP4460_VDD_MPU_OPPNITRO_UV 1375000 |
| 72 | |
| 73 | struct omap_volt_data omap446x_vdd_mpu_volt_data[] = { |
| 74 | VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPP50_UV, OMAP44XX_CONTROL_FUSE_MPU_OPP50, 0xf4, 0x0c), |
| 75 | VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPP100_UV, OMAP44XX_CONTROL_FUSE_MPU_OPP100, 0xf9, 0x16), |
| 76 | VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPPTURBO_UV, OMAP44XX_CONTROL_FUSE_MPU_OPPTURBO, 0xfa, 0x23), |
| 77 | VOLT_DATA_DEFINE(OMAP4460_VDD_MPU_OPPNITRO_UV, OMAP44XX_CONTROL_FUSE_MPU_OPPNITRO, 0xfa, 0x27), |
| 78 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 79 | }; |
| 80 | |
| 81 | #define OMAP4460_VDD_IVA_OPP50_UV 1025000 |
| 82 | #define OMAP4460_VDD_IVA_OPP100_UV 1200000 |
| 83 | #define OMAP4460_VDD_IVA_OPPTURBO_UV 1313000 |
| 84 | #define OMAP4460_VDD_IVA_OPPNITRO_UV 1375000 |
| 85 | |
| 86 | struct omap_volt_data omap446x_vdd_iva_volt_data[] = { |
| 87 | VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPP50_UV, OMAP44XX_CONTROL_FUSE_IVA_OPP50, 0xf4, 0x0c), |
| 88 | VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPP100_UV, OMAP44XX_CONTROL_FUSE_IVA_OPP100, 0xf9, 0x16), |
| 89 | VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPPTURBO_UV, OMAP44XX_CONTROL_FUSE_IVA_OPPTURBO, 0xfa, 0x23), |
| 90 | VOLT_DATA_DEFINE(OMAP4460_VDD_IVA_OPPNITRO_UV, OMAP44XX_CONTROL_FUSE_IVA_OPPNITRO, 0xfa, 0x23), |
| 91 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 92 | }; |
| 93 | |
| 94 | #define OMAP4460_VDD_CORE_OPP50_UV 1025000 |
| 95 | #define OMAP4460_VDD_CORE_OPP100_UV 1200000 |
| 96 | #define OMAP4460_VDD_CORE_OPP100_OV_UV 1250000 |
| 97 | |
| 98 | struct omap_volt_data omap446x_vdd_core_volt_data[] = { |
| 99 | VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP50_UV, OMAP44XX_CONTROL_FUSE_CORE_OPP50, 0xf4, 0x0c), |
| 100 | VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP100_UV, OMAP44XX_CONTROL_FUSE_CORE_OPP100, 0xf9, 0x16), |
| 101 | VOLT_DATA_DEFINE(OMAP4460_VDD_CORE_OPP100_OV_UV, OMAP44XX_CONTROL_FUSE_CORE_OPP100OV, 0xf9, 0x16), |
| 102 | VOLT_DATA_DEFINE(0, 0, 0, 0), |
| 103 | }; |