ARM: tegra11: power: Add T40S core edp tables
Alex Frid [Fri, 7 Jun 2013 02:10:58 +0000 (19:10 -0700)]
Bug 1200217

Change-Id: Ia4b38122fb1e52ef01e41c117be1db431b178dad
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/236555
(cherry picked from commit fdaf92c9e94d9508d3775a58a5e156f8a9366a22)
Reviewed-on: http://git-master/r/240857
(cherry picked from commit 6c88f504f3c3452be02efda0de1c642b470f873e)
Reviewed-on: http://git-master/r/260233
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/tegra11_edp.c

index 2f0e47c..76fe249 100644 (file)
@@ -173,6 +173,181 @@ static struct core_edp_entry core_edp_table[] = {
                        },
                },
        },
+       /* SKU 5 */
+       {
+               .sku            = 0x5,          /* SKU = 5 */
+               .process_id     = 0,            /* bin 0 */
+               .cap_mA         = 4000,         /* 4A cap */
+               .mult           = 1000000,      /* MHZ */
+               .cap_scpu_on    = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 336 },
+                                { 792, 336 },
+                                { 792, 300 },
+                                { 792, 240 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 624, 396 },
+                                { 660, 372 },
+                                { 660, 324 },
+                                { 660, 288 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 408, 492 },
+                                { 408, 396 },
+                                { 408, 396 },
+                                { 408, 396 },
+                               }
+                       },
+               },
+               .cap_scpu_off   = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 432 },
+                                { 792, 432 },
+                                { 792, 396 },
+                                { 792, 348 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 624, 492 },
+                                { 660, 492 },
+                                { 660, 444 },
+                                { 660, 384 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 408, 516 },
+                                { 408, 516 },
+                                { 408, 516 },
+                                { 408, 492 },
+                               }
+                       },
+               },
+       },
+       {
+               .sku            = 0x5,          /* SKU = 5 */
+               .process_id     = 1,            /* bin 1 */
+               .cap_mA         = 4000,         /* 4A cap */
+               .mult           = 1000000,      /* MHZ */
+               .cap_scpu_on    = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 348 },
+                                { 792, 336 },
+                                { 792, 300 },
+                                { 792, 240 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 624, 420 },
+                                { 660, 372 },
+                                { 660, 324 },
+                                { 660, 288 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 408, 528 },
+                                { 408, 492 },
+                                { 408, 420 },
+                                { 408, 420 },
+                               }
+                       },
+               },
+               .cap_scpu_off   = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 432 },
+                                { 792, 432 },
+                                { 792, 396 },
+                                { 792, 348 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 624, 528 },
+                                { 660, 492 },
+                                { 660, 444 },
+                                { 660, 384 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 408, 564 },
+                                { 408, 564 },
+                                { 408, 528 },
+                                { 408, 528 },
+                               }
+                       },
+               },
+       },
+       {
+               .sku            = 0x5,          /* SKU = 5 */
+               .process_id     = -1,           /* any process id */
+               .cap_mA         = 6000,         /* 6A cap */
+               .mult           = 1000000,      /* MHZ */
+               .cap_scpu_on    = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 792, 600 },
+                                { 792, 516 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 660, 600 },
+                                { 660, 564 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 660, 600 },
+                                { 528, 600 },
+                               }
+                       },
+               },
+               .cap_scpu_off   = {
+                       /* favor emc */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 792, 600 },
+                                { 792, 600 },
+                               },
+                       },
+                       /* balanced profile */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 792, 600 },
+                                { 624, 600 },
+                               },
+                       },
+                       /* favor gpu */
+                       {       /* core modules power state 0 (all ON) */
+                               {{ 792, 600 },
+                                { 792, 600 },
+                                { 792, 600 },
+                                { 624, 600 },
+                               }
+                       },
+               },
+       },
 };
 
 #ifdef CONFIG_TEGRA_EDP_LIMITS