From patchwork Mon Apr 24 07:38:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1772698 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=QG/EMzk3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q4cTJ2qQ6z23s0 for ; Mon, 24 Apr 2023 17:39:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D225085E34; Mon, 24 Apr 2023 09:38:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QG/EMzk3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B87685C9F; Mon, 24 Apr 2023 09:38:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C8DD085C9F for ; Mon, 24 Apr 2023 09:38:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linus.walleij@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4efef769000so982071e87.3 for ; Mon, 24 Apr 2023 00:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682321922; x=1684913922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rk8Umds742x5iJgm/g/7zDfbMEmCCrG4qBDVTRUofE0=; b=QG/EMzk3N9d9X0KdNuK3qtGzmFMEc0HCYv1tUOz4QYphmnOIvooEvQYG2n+OYvXbGJ mPeWVjQH8VRewVTLWhcaDrjoWs0Vqz/E4x8xAS6d5xonljVQk6AA0T8GTsisNeue2Z9b ofC+DDIsNvoULg3brdAzl7JlOlfzbE5NphrdboKLeSNNF0VccpKz0iAEY4tIXFs8L82F OvAApLvJzDid+aaiK53k042PyelQ1y1fiZil0rHDXZvA5JOl+PazA/vmZtD8YSvH4hH2 V/TrDxSmOTMix4GrTSvpwqfqyyOigNsmFv91/EUr5czp94SpqVy+2tLxXMr/z/NtK/li xyQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682321922; x=1684913922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rk8Umds742x5iJgm/g/7zDfbMEmCCrG4qBDVTRUofE0=; b=Yt+d5OhLDLdygEv/Bcw2U0WU2gkXqGBzlgKstP/fEd4P3APzEhuyfSX3j0x9qtcWZZ tiOumJhFHbVRUVmM8F/IjdfESvXOKMXBLXMX/jD9qw8xOd3hWMideYYR9hNDgqe7Sf6z fXZ0u12xDwM1kme2Pwyag+abJ7V6RratGA0azjPpqt/fgyf5Ml3TXnacnReP5LzM9skA gCwFo/OTpybG2cLiIKySh/qDp8VHjTAsWPGHRvXIa7FT8v40J4NuavVEE1Bo6oojWHcX p1kYR3YoS5nYl8BzlEmz1ax+kyTpfv/lo+vqk081izGCsN1B6uhcBIGOfAX27tgacK5u iADQ== X-Gm-Message-State: AAQBX9dqAdYLBG7STyc0xh1jOUjr2chDlhoTYdZJKtbsawndsZYuFC1E NNsUcvB9VsQ/KHgpYEJrayY7basNYIS4vfuD5s8= X-Google-Smtp-Source: AKy350b6ad+VB7+C4bg2yJSQuCtqww0VPIihTcwKbQaQRXPKW/aumWHyDwauH7L6eoQzQKIBD4Dz4A== X-Received: by 2002:a19:5516:0:b0:4ef:d573:c8a7 with SMTP id n22-20020a195516000000b004efd573c8a7mr2204590lfe.32.1682321921999; Mon, 24 Apr 2023 00:38:41 -0700 (PDT) Received: from Fecusia.lan (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id x14-20020a19f60e000000b004edd3b34e78sm1552225lfe.147.2023.04.24.00.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 00:38:41 -0700 (PDT) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini , Michael Nazzareno Trimarchi , William Zhang , Heinrich Schuchardt Cc: Anand Gore , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH v5 2/3] arm: Add support for the Broadcom Northstar SoCs Date: Mon, 24 Apr 2023 09:38:29 +0200 Message-Id: <20230424073830.234710-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424073830.234710-1-linus.walleij@linaro.org> References: <20230424073830.234710-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The original Northstar is an ARM SoC series that comprise BCM4709x and BCM5301x and uses a dual-core Cortex A9, the global timer and a few other things. This series should not be confused with North Star Plus (NSP) which is partly supported by U-Boot already. The SoC is well supported by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - Rebase on the U-Boot master branch ChangeLog v3->v4: - No changes ChangeLog v1->v3: - Bundle with the iproc nand and algo select patches --- arch/arm/Kconfig | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f0118e225419..098f654e4bdd 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -357,7 +357,7 @@ config SYS_ARM_ARCH choice prompt "Select the ARM data write cache policy" - default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || RZA1 + default SYS_ARM_CACHE_WRITETHROUGH if TARGET_BCMCYGNUS || TARGET_BCMNS || RZA1 default SYS_ARM_CACHE_WRITEBACK config SYS_ARM_CACHE_WRITEBACK @@ -671,6 +671,25 @@ config TARGET_BCMCYGNUS imply HASH_VERIFY imply NETDEVICES +config TARGET_BCMNS + bool "Support Broadcom Northstar" + select CPU_V7A + select DM + select DM_GPIO + select DM_SERIAL + select OF_CONTROL + select TIMER + select SYS_NS16550 + select ARM_GLOBAL_TIMER + imply SYS_THUMB_BUILD + imply MTD_RAW_NAND + imply NAND_BRCMNAND + imply NAND_BRCMNAND_IPROC + help + Support for Broadcom Northstar SoCs. NS is a dual-core 32-bit + ARMv7 Cortex-A9 SoC family including BCM4708, BCM47094, + BCM5301x etc. + config TARGET_BCMNS2 bool "Support Broadcom Northstar2" select ARM64