Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1983587imm; Thu, 7 Jun 2018 03:37:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKa7iPib9ksDf/7Pu+QMrmwJqFtb9a1wXIVNGW3koxak9QM8QGbCVZOfxHi4UV3sfiKo5V2 X-Received: by 2002:a62:e310:: with SMTP id g16-v6mr1272132pfh.25.1528367841535; Thu, 07 Jun 2018 03:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528367841; cv=none; d=google.com; s=arc-20160816; b=D8CCUgms8BcPXskiJ7ThP3ekOwhengawSqHJ2cyFQpgX4zXJOX+L/XqTginRivSAjz 0SkS1ZcYTlNkQxyfUHV+YnMCkag1OVbP2PnmQCjLdcOc9RsbP134RDMJeqHK9g/6l0xE pWQvMb4F57HRq5dLOfOBjWVKRhzQg6whmMNXyEhN6KwmKoFzYu9Q2NAbn3mDf0HX1/5H Q1fQPNBy/wS9btM/Z2BYpUzTJPZOyobLwpP7IDZDpa+uZnzFMcZCaohDiZ5rL8JbkBzO DZwgUq5boLJrEbCKyG4I65bgWBYaUiyI3ZRN0s1ulqlRfrRn4LjB3qU80d0fM+KWffZP gfuw== 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=nU24JZySPkGpz81iankqqCYi+t5Ijf4dWuPegxn7iyU=; b=JkL4bdMdSS0VIFUhuyrbve/1Tms6ssfnPI/H7iWFnFE4pCHOXgcZ7rdK3RnL2moxDu r/oIu4fxE8Lao1zrfPtNlXKnPU585VtrGuwOSF4Efa3ByHSxiWgRhwwE+ZmdmA+GwYk4 PGdD7YOdbPeoAEGl3IqOVspTnxv8lfyth1dWZAiBXG/SV4B2IaJLkPWbUll0KIwZ4Yon /EQZR+W7GCEwzQlFPFII/0Egq/PI0e0/lI7Gpm9U98iB+6tIFSPsOEDbu8JjXxW1hVbA 61msW5BYOzSYR54M6imZwdyPhNyV+3CY6BlIllr/tzDpbFJkYxEYh1xFkad7CP53uz+k ss7g== 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 b13-v6si12215683plm.202.2018.06.07.03.37.06; Thu, 07 Jun 2018 03:37:21 -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 S932552AbeFGKK0 (ORCPT + 99 others); Thu, 7 Jun 2018 06:10:26 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:25128 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932518AbeFGKKX (ORCPT ); Thu, 7 Jun 2018 06:10:23 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 411hB55rXHz9txcB; Thu, 7 Jun 2018 12:10:21 +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 x99ziGRAeZb4; Thu, 7 Jun 2018 12:10:21 +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 411hB55LyZz9txbq; Thu, 7 Jun 2018 12:10:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7A9628B950; Thu, 7 Jun 2018 12:10:22 +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 qJZU51P3MwYb; Thu, 7 Jun 2018 12:10:22 +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 5A83E8B94D; Thu, 7 Jun 2018 12:10:22 +0200 (CEST) Received: by po14934vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 472916F83C; Thu, 7 Jun 2018 10:10:22 +0000 (UTC) Message-Id: <630b39e3b632912e982168782e071ddf15336eb3.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 3/3] powerpc: Allow CPU selection of e300core variants 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:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC supports -mcpu=e300c2 and -mcpu=e300c3 This patch gives the opportunity to tune kernel to one of those two types. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index ed7c6edec87e..d174acb41389 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -145,6 +145,14 @@ config 860_CPU bool "8xx family" depends on PPC_8xx +config E300C2_CPU + bool "e300c2 (832x)" + depends on PPC_BOOK3S_32 + +config E300C3_CPU + bool "e300c3 (831x)" + depends on PPC_BOOK3S_32 + endchoice config SPECIAL_CPU_BOOL @@ -161,6 +169,8 @@ config SPECIAL_CPU default "power8" if POWER8_CPU default "power9" if POWER9_CPU default "860" if 860_CPU + default "e300c2" if E300C2_CPU + default "e300c3" if E300C3_CPU config PPC_BOOK3S def_bool y -- 2.13.3