From patchwork Fri Apr 7 13:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1766571 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=e5YYUFRA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4PtKJn37Xyz1yZ5 for ; Fri, 7 Apr 2023 23:41:13 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 85A6786190; Fri, 7 Apr 2023 15:40:44 +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="e5YYUFRA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3758986192; Fri, 7 Apr 2023 15:40:32 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 226FE8614F for ; Fri, 7 Apr 2023 15:40:27 +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-x130.google.com with SMTP id q16so54530269lfe.10 for ; Fri, 07 Apr 2023 06:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680874826; 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=a7wWKBsVcSri7n1+Tw/ivBzZ1AGn3z+d7sDwFjnpTT8=; b=e5YYUFRAHJQhu9mXWRVyOhhbD5z008p2LfAbVNM0CEVIX7PTUcQX1ge5oIg9KMqX8E 7mMiL9KpW40/Dnq0w82BFbg8/hEnvADUmcmc934zz6F1Hy83QJGbNQVoJ7W3cXRZEcz6 grqDmmbsCXw+kRPKFnXIGLk3c7PIDR1vxp2IH1GRrpwKxa2h/r8me2FWyTvdqXKLVR1/ ar/FICEFIUgMUsKrh/9r61hVv3fjgX8g2qMg9YpvNDdKfgFMRz0xLIuM/766CKMjFAwt 3NU1LAdnUzZ7U+lLO503w2Z+M2Y5AktLZbuSBMaulEEtp82rAUKRNDGyQ0s6ocIJXvRF MdRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680874826; 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=a7wWKBsVcSri7n1+Tw/ivBzZ1AGn3z+d7sDwFjnpTT8=; b=s0y6u/kV44dwNj9VKtnGz1CiVCXaDE92IDAC70rNezEYTUWuCM+76oDZTdK+4ACR6M 4lJFpN96ebJf7xJzi6PVU/8owi/V6z0cpYwMyO15YYhSCM1+GeAEvuFqV81JVjCT0ON4 BZjjAUmVTKNkbMfbGRAMYHpHodf4t4XLs/1mS8sbWZ6LbPj77d0iX0z3n/vwVLl4vbhk dyTgNRwq+g2aNU0/+xYv0BOA1mvBtTwbinFadJ6wMhKkYV7WuMqBnXXnxRzhgTsNv6/p dStU1TIyKwL2FE7pSXDhr7iq5RXuFqIB0vicxdm+VKhgfmHBvmUoGUjF9tsxYKeR3QxT DT0Q== X-Gm-Message-State: AAQBX9cYcsw6lQB2cDeZBPLUWb+44bajQqkIrYdkEVJMkZmitB5v3sBb /Tj7/PMxwsctI9DPRrwqnu5jqjVYLmhrsBqRVgQ= X-Google-Smtp-Source: AKy350Y73YxLWasq3mGFGBr8EpC0i2fPv4T+mmFrSHCkzu0I627XTJnE8/BQhDwKlopYb6gAvLZz8Q== X-Received: by 2002:ac2:44ae:0:b0:4db:1bee:c with SMTP id c14-20020ac244ae000000b004db1bee000cmr739827lfm.44.1680874826297; Fri, 07 Apr 2023 06:40:26 -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 23-20020ac24857000000b00492c663bba2sm711064lfy.124.2023.04.07.06.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 06:40:25 -0700 (PDT) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini , Michael Nazzareno Trimarchi , William Zhang Cc: Anand Gore , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH v4 4/5] arm: Add support for the Broadcom Northstar SoCs Date: Fri, 7 Apr 2023 15:40:07 +0200 Message-Id: <20230407134008.1939717-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230407134008.1939717-1-linus.walleij@linaro.org> References: <20230407134008.1939717-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 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