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: 405520 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 9E5FFC433DB for ; Sat, 20 Mar 2021 18:21:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7418661924 for ; Sat, 20 Mar 2021 18:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbhCTSVS (ORCPT ); Sat, 20 Mar 2021 14:21:18 -0400 Received: from mout.gmx.net ([212.227.17.22]:39243 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbhCTSUw (ORCPT ); Sat, 20 Mar 2021 14:20:52 -0400 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=A4?= =?utf-8?q?fer?= , 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== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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