Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1982619imm; Thu, 7 Jun 2018 03:36:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI8/CsOEmeBrqZBs2ySrThQGwBHhLHlKKUv4gHGWkvwgausRl33/Cnyq05VaEugfJ6l+OjB X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr1400507plg.229.1528367775373; Thu, 07 Jun 2018 03:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528367775; cv=none; d=google.com; s=arc-20160816; b=j8c0/Yv03p99O9nQHpsercm8p9ZseD/kIWgd8fSkMBWqvY7zFjCaRRieAmDX0xB5kg HL1AAnf/6ceBH5YjZCYErY3+U6WmQ9RU+3OGauKRFNWP4CLy2/sLnrJ/oBfnj1l6cujB 2fbd1bE7Mji03qRCAvPf1DGJ80tCk0hh7y69EQaJjCeuKoGPk02YMAsiq/2W3x29D4WN VKy7G+qYUcKR4i/HJmLHfBvkVW2fxXsdYU05zfQjtRDM14Ye4kt/+1M26+OuQzqyPwhs UbHttgYAF9dTdtfeQoj1HhCQmAITzKY8djfmh3+UbzpqpOd6ernAKQEnpNieMxPGpYL2 AWlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:arc-authentication-results; bh=475ZawenSnl6MZ7INUb9oOq5qrtD38zeMpORBTJueCg=; b=LJ13pzg8b77twHNy8nw1YjG6gP25sDhftDuTNAsSQHaoAAEYWmS3PvMF0eQURI5tcn emv3CIxxwOutgMcmSBk9yxs/UqQXCiyvi10ZkFFBXmBp8y7oqgvspJQjBNYp6XTCPq5k SgRNd0pZBaTkkZLWtYDvq+Jp253ZyiPQSEqH6LyPMLTjZZlXZxNDs5CSIYLtYGLUExyq R/GLshxONpVP9cum8iLe7D4io5NHXOkn0brRy87NhfPWR/wzFstvefByM0t6xRbAqh07 o1+bYfU2CFbk8dKlbUT9TXbaz3s3v2yX8dnXYoYshq+B6VxTHBYSSbt0NgEBGPF1lgbv niNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si6541643pfm.186.2018.06.07.03.35.59; Thu, 07 Jun 2018 03:36:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932535AbeFGKKX (ORCPT + 99 others); Thu, 7 Jun 2018 06:10:23 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:40568 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753587AbeFGKKV (ORCPT ); Thu, 7 Jun 2018 06:10:21 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 411hB35fQqz9txc9; Thu, 7 Jun 2018 12:10:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id DmWjVKMexvp1; Thu, 7 Jun 2018 12:10:19 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 411hB357wcz9txbq; Thu, 7 Jun 2018 12:10:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6C3FE8B950; Thu, 7 Jun 2018 12:10:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id jTKBlrY1qJwO; Thu, 7 Jun 2018 12:10:20 +0200 (CEST) Received: from po14934vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4CC7A8B94D; Thu, 7 Jun 2018 12:10:20 +0200 (CEST) Received: by po14934vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 3DB756F83C; Thu, 7 Jun 2018 10:10:20 +0000 (UTC) Message-Id: <7268fb263b855d2773b387ad4cfe7e29b4f43e80.1528365638.git.christophe.leroy@c-s.fr> In-Reply-To: <273f8ed3e980b9385c6e1b31e17f890ea08ce33c.1528365638.git.christophe.leroy@c-s.fr> References: <273f8ed3e980b9385c6e1b31e17f890ea08ce33c.1528365638.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH 2/3] powerpc: Allow CPU selection also on PPC32 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , npiggin@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 7 Jun 2018 10:10:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch extends to PPC32 the capability to select the exact CPU type. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 71ef559cc474..ed7c6edec87e 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -86,7 +86,6 @@ endchoice choice prompt "CPU selection" - depends on PPC64 default GENERIC_CPU help This will create a kernel which is optimised for a particular CPU. @@ -96,13 +95,17 @@ choice config GENERIC_CPU bool "Generic (POWER4 and above)" - depends on !CPU_LITTLE_ENDIAN + depends on PPC64 && !CPU_LITTLE_ENDIAN config GENERIC_CPU bool "Generic (POWER8 and above)" - depends on CPU_LITTLE_ENDIAN + depends on PPC64 && CPU_LITTLE_ENDIAN select ARCH_HAS_FAST_MULTIPLIER +config GENERIC_CPU + bool "Generic 32 bits powerpc" + depends on PPC32 && !PPC_8xx + config CELL_CPU bool "Cell Broadband Engine" depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN @@ -138,6 +141,10 @@ config E6500_CPU bool "Freescale e6500" depends on E500 +config 860_CPU + bool "8xx family" + depends on PPC_8xx + endchoice config SPECIAL_CPU_BOOL @@ -153,7 +160,7 @@ config SPECIAL_CPU default "power7" if POWER7_CPU default "power8" if POWER8_CPU default "power9" if POWER9_CPU - default "860" if PPC_8xx + default "860" if 860_CPU config PPC_BOOK3S def_bool y -- 2.13.3