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: 671022 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp332298wrt; Fri, 7 Apr 2023 06:41:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDME3QXYWtoIpE3BzBY8dWdohXZdXW+b0DBggxwrLjI2RP7k9OgChpU5GwiAcojkef5KMc X-Received: by 2002:a17:90b:3912:b0:237:9cc7:28a6 with SMTP id ob18-20020a17090b391200b002379cc728a6mr2540411pjb.26.1680874874921; Fri, 07 Apr 2023 06:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680874874; cv=none; d=google.com; s=arc-20160816; b=jgVSSdcA6MBAAAirbHhbMKTZNH+ODQi3PjpV4QH/+86yrMU3YF/ztz8W3JlSP5xx/M xfQweSPKUwlG2rGNDdPNgbY69dS+eTgL504lMqjL4qySehJx05nhSABlXEOefshlhWh7 05VwXwyiV53tLigp5Bul+PSYSisE9/49X0ZScDLbceIhmPvVsZsJhqB+A7nGdOSVr6bD rYZz0sV4B4eudLJnx88EFHywqllRPCCHHEAKP6F9UOkdC16VwboOIw+aMgOovfJRbDaS D3LPWCZ0v8NAK+pxGnQZHE3ST6cGfWiHGiEAxU3FIFwFExn9SZJRLqtetGAFOw0kOHO+ xCzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a7wWKBsVcSri7n1+Tw/ivBzZ1AGn3z+d7sDwFjnpTT8=; b=ZAJd+geB1ipudCffpWPP5egTzmCwl8Bz/rjgHsn1Sn72EfviJ6WQ3BbuygrU39v6NB kYh2HZM5LHj+iCs5QTOd4pzk4bOjalyXWQbqBYnM3HFOYIQtmENmuRkT7p4Nu7aL2++u rqWG40MYcTQFJIl9jspqv+IqUDoLsmUVzWKAQ3GqGpuv4RhyRsCRoZa0drbP7cOdknRU 8WAU3aM9VFUVwAnz/RkrYpzvvu5T5U9Rm1BxW7zT1vfKoYBJeAotkUfGsG0l2kHbj+il +bUN2KY6iFTQ7BJnm0Kb4TUZ20hoqrwaXYT7Yq07uySneoLD+Ae1zT8ih/J7dvi0J3tM 8YxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e5YYUFRA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n33-20020a635c61000000b004d422660ffesi3473324pgm.393.2023.04.07.06.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 06:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e5YYUFRA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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