From patchwork Tue Apr 6 12:09:16 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: 12185083 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.8 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,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 E3425C43460 for ; Tue, 6 Apr 2021 12:12:30 +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 5DFFD613BD for ; Tue, 6 Apr 2021 12:12:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DFFD613BD 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=xSqWeZnJbitoNVlB+03PCLqKD9LA2rLLFDKq204benU=; b=JOun8nJc4NBaNWQzvhNkyHanb RAqzUaDmGtLxtm7C2UeZE7IHeaKCwcI/XrveoWWTGFNlYti5/pNMqqdDELLHAd8G2uv6ou8J1Uoxl 87VjRfJl753WL1RjpkBWj6377SOR6+09hLyn+5EkGb/joYSPMIuwuHQRdhUijQhwuFKAGy02USyI/ xcO2il31Xa8RCyEzoCTi6Y9E9YePHXLSPJOsHSDJe+VMmFL6lPMPUsWi/kuBrYgdQHNF8rSp4l1vl RNyrQB6+Tl1/LgowXclv8lyyBGWswOy/3KZGKUtcsNsgmv8oBaVc0ISG+XX1a0WcXQaUnSwM9p2nI IzwFOu8Gw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXw-002WAx-Gu; Tue, 06 Apr 2021 12:11:04 +0000 Received: from mout.gmx.net ([212.227.17.20]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXh-002W65-0U for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:10:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711044; bh=K29LebfL/JlBArqrMx0vebI9tmhwtrzN80KWOkBNjCA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GpoTQjs1gnmsWpgQhLkvQJqVRQWS4r1b17Nwp5uu86X+e+xMZt/hqen5Ont3b7dE+ apeDkwr4SDLxpgcb+ON+rQ1Pm0b/1/nw0DQ7jk//vV2JNv95d0NcP9U0iE98Q6kOcJ SOGWAUCTp+J9b4on1R1EpAi4ddpXBVsH3VXus0l4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsYux-1lk1uR0MEF-00u1Yp; Tue, 06 Apr 2021 14:10:44 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Cc: Tomer Maimon , Joel Stanley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Russell King Subject: [PATCH v2 05/10] ARM: npcm: Introduce Nuvoton WPCM450 SoC Date: Tue, 6 Apr 2021 14:09:16 +0200 Message-Id: <20210406120921.2484986-6-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210406120921.2484986-1-j.neuschaefer@gmx.net> References: <20210406120921.2484986-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:1SZS5HgxyMj1yOj+o4Yn5t3GkKyzLK8NZqeuc4M2TC4Qu3mjkHR nyik8sD+pzzZSLhkIPfhGy+m9TNBsfYVf/kNSpT+LAIr4O/WectpTSGQhhSh62SNVra3U5p 5CLkg4o0DkHbdvMZOv7XFJUkfmYJbJbCluoBYYxIcWpL97lJTKC487imbaY2TITUN6p4Ixu RncHASyOeqCyIo9Pwa5JA== X-UI-Out-Filterresults: notjunk:1;V03:K0:nlNfRwAkXhE=:qDWlOCVqfPhuXGVYUlIRX5 M/4WcNdLmDNkMKHkXm6DTyYmuq0tvYOScbCTzilJ9M2Ff1oeQULqmwIscaffZtvRrW0hn6zDD OgiDyKB75L8Q6Ob7fAXQe6OEF/qpXCwG4VbmpeVEzo2XwhG/f1HjlRW/t26svjNqflvNRJ0I9 AmdPPzGKWtFaH5Q90X7mkFZ0GQkbnFfJSnks/j84IyJon7+/T32e81IQitEkAE1QEK/JG/oFL QAZSh0PpzNC6+8DCx8jsjnc4pssbdl4j8ttHJ3kECO7nmYWFeXskKAUW1CbZK8Y5/XaRBz4h5 AzNx0lwBSDPDDEdroYntVssl3X2GhnCqasRUvKUpgzUbbLLE8fopbvw7l+1clQtdrO/trkKZi W2tYEx+PvH+4d5HI5sGMrLNcjjR0zK4UKiX1Oa2+aalNcfphqwaztWMqzQ729ub/+muxuC8+Y TbcHeNkC8GXyRbud77OId0yhy7B6MCVm60lMtvUeqAG7pcw9X0EB1kg47j6s0B/rHRE+vqqtY 1ol1PkMtAqmNJTHI1FZqbTssOKuyBn+gRsNNKKopgTaVil50KohqX6kgZEI9FZgYK+GTkvkhc C+MY1gpS/g8b5pezzl2l3W1/i7gkjiVCsk/uh3F6Y/dmFaUiafRW9R+Nfv+KBpw7MMdd7N/oV gaunvQVd36DQuG0xFnIdUSKP0fYeibmT/IENMBQDNh1VGfHZ3wZseqx24t2zeNiqo5i3eMmeO C/w9Agc/gavxudcWcVfcmhibz49u0/wDW4z5Ke8HHLNdcNE/ux35flsp4ZegDIm+lesvgnEJ7 Ls8ATFO9tO8rD6kIlN/4bt9dSRXCQUelUN7Y4vW2dGkrNcsQrrw5by8eK6FK5+nIfWliNcYFs 5IYPuZeXwep4+ssgOGDLWYhWjf5CvWVvVnn5M3VOubOSPZiLsuFF+WXl2ARklARUYeHcYbM0Q bMIjSkjmy/B9b99ZlzBf5auOSMMcv64SwMW26Q7Rvrsp62wfRERHPVAOPiETAD6Tj1DwW7G33 QcRGIfNVsdpDpNxOheMRn+opUBZs2RvLJ4c6xzkrg+pm32sCzkqE3+MDcw+wszcc6MLWBiUSn +NGIxeTyBU95Tm/xyp8RLJNpf5LszzbYOqylHJ0Rh7Te2gDGUknQesgECEMiMQ1BScNiURo8x hgRdlAYlBAurZbpZzVb1GycczwvbkXO4WWgevY3I8O6jUiz7b2EGBLzrO899ca6Jj20bCbe3h AMPEycWxw1Xo3GnQl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131049_405855_AD751FCC X-CRM114-Status: GOOD ( 15.12 ) 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 --- v2: - Reorder lines in Makefile by model number (WPCM450 < NPCM7xx) --- 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..8d61fcd42fb19 100644 --- a/arch/arm/mach-npcm/Makefile +++ b/arch/arm/mach-npcm/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only AFLAGS_headsmp.o += -march=armv7-a +obj-$(CONFIG_ARCH_WPCM450) += wpcm450.o obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx.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