From patchwork Wed Feb 1 23:37:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 649183 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp581660pva; Wed, 1 Feb 2023 15:38:36 -0800 (PST) X-Google-Smtp-Source: AK7set/K+WCXXtGui1sHXJD1ZnFfh9EOCsk1gZcrEsCbkVOO0BjJxQYgjCsa2Ti+5tgqpnr2F1DF X-Received: by 2002:a54:450a:0:b0:366:bfc6:4a78 with SMTP id l10-20020a54450a000000b00366bfc64a78mr1862040oil.20.1675294716007; Wed, 01 Feb 2023 15:38:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675294715; cv=none; d=google.com; s=arc-20160816; b=cOvxWpr448ZhHd7WxWwu12qIXiEAQMZO6IknpwPGFZITMcAj2yOF8Rg1pLWEVDmYbF jtjiWeUv+KukvPs6LPL5+qpIGz5yi/uWmQZDtWDMIimOI+uvVkBqKRXKSQrqS5ncmHo2 +ZbxyAoQASgRFCm1yUynoCcJiZp2QlaX05XLtcZVOjkB8Wehe7JyqqndSZScovtBmdoJ lIibJh+labG8gvfRksh8fl0xKSJnqTNrEn+XOjbH1EQUC9VGZV6+k1QvV7qDaN/T7fvo 7CE62uXl/o2MMc3zfk2fXcxcl5RE3YgruBTUzMbgsBMkVcJilfbLATWN0t46heNv/cx9 KjDQ== 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=UxUfx6oNV5j4wdCiMah91DTc7zzENeemGWVsLL34pD4=; b=IWGIXSEKaAY7VKuISlLMga5Wl4D5aWh23IUsFEvDP6sVYpZ7Lf7xnYaW0x+JJGTX9i X+/iyTDnA2DmK+gP3zsA+lOh6qXZ7ttAP15SgMgCygHwPiCEDT/gxdw+LG26H3NjuT9w tlhIu5V5VliVxlemK1QjG6PNh/itKNUuKFT6M55ei7FnXr5QM+VjQA7ezHmW4qLgogPW k7AappGkefZ+7qaqUlCcfHxW/fbANpoILxnOjadcstpMYkg1ibM5Q6jpMqy1K2m4+f3N eeY3O0r8PMNhKuVShYTld+t5oVJAxVfUD4DI8V4AdBhbtaKH4JFMJq6wX8OGEP8mxk7M DanQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l1Npsx6d; 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 p64-20020acaf143000000b0037aa01812cfsi2488427oih.107.2023.02.01.15.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 15:38:35 -0800 (PST) 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=l1Npsx6d; 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 F109385E4B; Thu, 2 Feb 2023 00:38:21 +0100 (CET) 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="l1Npsx6d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7FD1085E4B; Thu, 2 Feb 2023 00:38:15 +0100 (CET) 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-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 D0E4985C2F for ; Thu, 2 Feb 2023 00:38:08 +0100 (CET) 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-ej1-x630.google.com with SMTP id gr7so1263256ejb.5 for ; Wed, 01 Feb 2023 15:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=UxUfx6oNV5j4wdCiMah91DTc7zzENeemGWVsLL34pD4=; b=l1Npsx6dTstSeCLhTTwLKvALIdkbJ9gm2Z+hWGkP6/kBYsAX4r5mfORPNB78NaO1aq pw2wwsABIXaSeowJMrdEgmLZyO9F8W7t9JR+mLBdY3Nah5UoS0lk8oCqmDOc98JpcPUS S/obPSN+T29KUuoilrX3NVaDxi6BheK/BWrkoDHFTRHsMgws9OmsTNAs5x9mdMm8UmpZ mD3hIJ6q3vXk3OrlWh3ZGmOTYEQ98XF5CGZeOVkM4w/dPb/ke2ULROai8y795uDCR+dF 8y9c55IWaeGwtqBveDi6xaWhY9kHymq9McEamruaLu5W8lwjNhoDCTpDJfvxfm68SBTq uuyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UxUfx6oNV5j4wdCiMah91DTc7zzENeemGWVsLL34pD4=; b=D2mVs8a6zAzHYuSDoWdFf/0OA6iQJy5OfyrowCT0m0iidTMKqG8xKVsjWBoaS50dcM Axfbuza8UR1ZBPch0AQGzHNX5cHpUrQ3u5YTcrAte69NquYURUgJlsJ5p0ggHHLHoC8j IDEixYrJFAU9dlVti+uLRVn685fPyPLG4tv/cpyU8AVqI8/VNg3k4TdSgjRVaCzQtCGA 5QEO83HPtZjJRUIP+iXSaVm5u6teEAiLvj2WZJDOYjAhJYjgLjOoMvmexHBZNkzX6f3U yHGVJoqGxmmVu/fiLm7/hNGdsmVfNQZX3NvB2b5093Vk5LJNGV/hSlIeh7y2NUID4+fr O+qQ== X-Gm-Message-State: AO0yUKUof9R9a0Fg0E0HqMMXyqEv2kjGRMwNt4DhQotl7MT8EREFwYy/ l1z8kvwY1Mad2iJbp8DbAbvCMTpJW10SRDNE X-Received: by 2002:a17:906:16d4:b0:88a:7408:384c with SMTP id t20-20020a17090616d400b0088a7408384cmr4435449ejd.47.1675294688210; Wed, 01 Feb 2023 15:38:08 -0800 (PST) Received: from localhost.localdomain (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id b8-20020a170906708800b0088550a1ce6esm6921171ejk.222.2023.02.01.15.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 15:38:07 -0800 (PST) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini Cc: Anand Gore , William Zhang , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Linus Walleij Subject: [PATCH 2/3] arm: Add support for the Broadcom Northstar SoCs Date: Thu, 2 Feb 2023 00:37:44 +0100 Message-Id: <20230201233745.469603-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230201233745.469603-1-linus.walleij@linaro.org> References: <20230201233745.469603-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.6 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 --- arch/arm/Kconfig | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5e112e6a03d6..312f1411f85b 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 @@ -670,6 +670,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