ARM: tegra11x: Powering up secondary CPUs
Bo Yan [Fri, 6 Jul 2012 01:10:56 +0000 (18:10 -0700)]
Change-Id: I30e115061c24f1a8f3f11cab0f21678d3cf096f1
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/113766
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: Rbdcccb2d66aac3e30cc452766d287fc562bfd89f

arch/arm/mach-tegra/platsmp.c
arch/arm/mach-tegra/powergate.c

index 54a50db..63a82f0 100644 (file)
@@ -269,6 +269,7 @@ static int __cpuinit tegra_boot_secondary(unsigned int cpu, struct task_struct *
                status = tegra20_power_up_cpu(cpu);
                break;
        case TEGRA30:
+       case TEGRA11X:
                status = tegra30_power_up_cpu(cpu);
                break;
        default:
index d976af6..b4da563 100644 (file)
@@ -93,7 +93,7 @@ enum mc_client {
 static int tegra_num_powerdomains;
 static int tegra_num_cpu_domains;
 static u8 *tegra_cpu_domains;
-static u8 tegra30_cpu_domains[] = {
+static u8 tegra_quad_cpu_domains[] = {
        TEGRA_POWERGATE_CPU0,
        TEGRA_POWERGATE_CPU1,
        TEGRA_POWERGATE_CPU2,
@@ -771,7 +771,12 @@ int __init tegra_powergate_init(void)
        case TEGRA30:
                tegra_num_powerdomains = 14;
                tegra_num_cpu_domains = 4;
-               tegra_cpu_domains = tegra30_cpu_domains;
+               tegra_cpu_domains = tegra_quad_cpu_domains;
+               break;
+       case TEGRA11X:
+               tegra_num_powerdomains = 23;
+               tegra_num_cpu_domains = 4;
+               tegra_cpu_domains = tegra_quad_cpu_domains;
                break;
        default:
                /* Unknown Tegra variant. Disable powergating */