From patchwork Sat Mar 20 18:16:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12152607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79DAEC433C1 for ; Sat, 20 Mar 2021 18:22:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 06F646186A for ; Sat, 20 Mar 2021 18:22:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 06F646186A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hfMlyRHIpVUQTYeT/eKFzd4y1P6bgoCkFkJjvx/9qhQ=; b=CAVfWO8gjZp/K2VY3Tn7RxTfY xnb/xgXVvw5U0N0fxwjocisGFxpWpIvK1qbnAVXH9i2gqn82dM/K0A/rZq1TR3uM0KgBaYm9/EwYK /CJV5OGl9fpj49OsXu+ZcuUzTws5LpReQ6J6L84knD2YQs8ZtPO7tFLFDWxBb2iB0YYNjmmTn0cXr 6OqZoeZ9UIBnDRYy94Z8hb8+oPNCGF/npCztqb/Sk+/UiNGsujNFCruLadmy6xaL2KC46rldAnsFd g7s5KX+sZUgiqgXTSzSGaIy9DfqVLy3byqEd0Jal11lecF4B4HoNsp8tNMYN+A7IJyLS+KwIASI4P kKS3An0kg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNgDU-0097Mv-RV; Sat, 20 Mar 2021 18:20:53 +0000 Received: from mout.gmx.net ([212.227.17.22]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNgDP-0097LI-Mx for linux-arm-kernel@lists.infradead.org; Sat, 20 Mar 2021 18:20:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264443; bh=sgopXkqj40uUkRPhDPMpk7bTtLvVFAAsQsE3W8f8Do8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BkaMOoub696+Jm0b6bzsfT0p4QODdeA5LFElVr89K7mURIrT7dwIHQwcmYoYHJn/M siT2j/4c2TdItqHFOwV7lm5LEmWIZ+BmH89L3gCOoX8X927MKY8lkAk0jDXTFS7seN OYNk/sZbF19QMr6Tc3eN9+x6GgZF4cex+8R+2eLw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfHAB-1luW7U1M5L-00glr4; Sat, 20 Mar 2021 19:20:43 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Russell King Subject: [PATCH 07/14] ARM: npcm: Introduce Nuvoton WPCM450 SoC Date: Sat, 20 Mar 2021 19:16:03 +0100 Message-Id: <20210320181610.680870-8-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210320181610.680870-1-j.neuschaefer@gmx.net> References: <20210320181610.680870-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:Cpwml3BuleDgxGQANF+bJyKDQJJr7bedoFK5LxmcxZgU6RHcSvk qHnOfk0QXcrYl2rdtwk1hzK/dz28SbedbGRSH1sRlS9tWRGx7zLXQaQH9p31UpKTgFLVLRQ GeuGiBqgi9y6eMY89Sjq+0v468ZJnt6Rw2Zkxw4sNUjaaUC8nP5KOqD9XRbyvh57C3+AcdK 3qoad5/BSg0VzITYXmYAw== X-UI-Out-Filterresults: notjunk:1;V03:K0:bbr5qGFW1+s=:57a3VOHV4y/O7L0vIpHmav YisAMpCqlhEwivtHfxckG3BduwiJEMAfClmyST5QH1welmlCZ6SFQhp1/47OkSGwxL1kxPVCT VhyEpiMmf59X8qCN47SQL7uT03poC+/Z5oAElFKKHHUSQhhPdYTP0sVx/gwlSTNHwEsh3fors QzmMfVkZzxCrCvOiW3+r3WIShOyhXSTOGgEEN+IMX4ZCFMtSSQe7xqMyN9mx05sF/GmszwDVZ NJRMngz6O4MvnDdr8eITy6Ho9E8gQwi4Cf9Mp/dinuU/xYG0K5uJ507XCmxImVxul0EMDzYXO z/9sHcWnDZcT8+xEKzOU0NK7nuARtjH6JyFmLUH4rldcMcHww+9erF20eYHWOINY88j/slshp h4wllBp7Q8rx8PBuvVTKuum8GMJvNSUt/4cpOaN8j7sRvFCabkDSOEBILSem10TwvQqGRj/Wf CaX60fLlzno1r7KrlGcZW4/tk+WKpFWQmyLqopBvP4xCHsniASEcYOkWEGKACIBesDXm1aB22 tlnVbBpqrHeF91U2FukupHKb0//E5EMSo1/40pVtCf+XNOQKc/IKxkOMFZbY2ax5N+Wc4f4L/ Nr+WV2w41IWl8+xGjl2m5AFu9Abu8UasX2V1w4MZBTwcXuVZmJwLFVr12g3t7I325EE4NzzZI vDJ8+4pl0Zd82XnxrBCBwmY9YPBgSKz6VplOMp9Wv0OsOdGQVcOMmwZN2tOZkloUWUUbSm7D2 jI052Ioo+D5QMgQnLVRnjjXvy/cJG9geXiVnUclEuY5CuBrAnb7m6osVyXlEQOoRW+zfo4OfV WWfalBMuAL/AyTBHtkIoAHlYJ7JQoCFX8sbv8yBYRJcv/cagfFeCJX2gjQwy6IBZT00gcKX4K JV5N17CO94838z2+FK8Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210320_182048_266426_8AA913D7 X-CRM114-Status: GOOD ( 14.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally marketed as Winbond WPCM450. Signed-off-by: Jonathan Neuschäfer --- arch/arm/mach-npcm/Kconfig | 12 +++++++++++- arch/arm/mach-npcm/Makefile | 1 + arch/arm/mach-npcm/wpcm450.c | 13 +++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-npcm/wpcm450.c -- 2.30.2 diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig index 7f7002dc2b21f..658c8efb4ca14 100644 --- a/arch/arm/mach-npcm/Kconfig +++ b/arch/arm/mach-npcm/Kconfig @@ -1,11 +1,21 @@ # SPDX-License-Identifier: GPL-2.0-only menuconfig ARCH_NPCM bool "Nuvoton NPCM Architecture" - depends on ARCH_MULTI_V7 + depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 select PINCTRL if ARCH_NPCM +config ARCH_WPCM450 + bool "Support for WPCM450 BMC (Hermon)" + depends on ARCH_MULTI_V5 + select CPU_ARM926T + select NPCM7XX_TIMER + help + General support for WPCM450 BMC (Hermon). + + Winbond/Nuvoton WPCM450 BMC based on the ARM926EJ-S. + config ARCH_NPCM7XX bool "Support for NPCM7xx BMC (Poleg)" depends on ARCH_MULTI_V7 diff --git a/arch/arm/mach-npcm/Makefile b/arch/arm/mach-npcm/Makefile index 1bc3a70bfab8b..0a915084c8ff3 100644 --- a/arch/arm/mach-npcm/Makefile +++ b/arch/arm/mach-npcm/Makefile @@ -2,4 +2,5 @@ AFLAGS_headsmp.o += -march=armv7-a obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx.o +obj-$(CONFIG_ARCH_WPCM450) += wpcm450.o obj-$(CONFIG_SMP) += platsmp.o headsmp.o diff --git a/arch/arm/mach-npcm/wpcm450.c b/arch/arm/mach-npcm/wpcm450.c new file mode 100644 index 0000000000000..f17b3dab45af3 --- /dev/null +++ b/arch/arm/mach-npcm/wpcm450.c @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright 2021 Jonathan Neuschäfer + +#include + +static const char *const wpcm450_dt_match[] = { + "nuvoton,wpcm450", + NULL +}; + +DT_MACHINE_START(WPCM450_DT, "WPCM450 chip") + .dt_compat = wpcm450_dt_match, +MACHINE_END