From patchwork Tue Jul 16 13:37:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 1132772 X-Patchwork-Delegate: matthias.bgg@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gherzan.ro Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gherzan.ro header.i=@gherzan.ro header.b="a4AvLfxs"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45p1mP74LPz9s7T for ; Tue, 16 Jul 2019 23:42:29 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 908ADC21F27; Tue, 16 Jul 2019 13:40:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 477D5C21F17; Tue, 16 Jul 2019 13:38:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 189BEC21E49; Tue, 16 Jul 2019 13:38:12 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id CD5F3C21E34 for ; Tue, 16 Jul 2019 13:38:11 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z1so20963380wru.13 for ; Tue, 16 Jul 2019 06:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.ro; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dMiNFj6TkRcrSt2tChTq4J7YXeDeWYDlZxmk6tGUSHA=; b=a4AvLfxsTzSvOtpL1b1+ICh2qDayp9PmL8CAMKi0AEFti8zHHQ4Y8oLgnc9IzEjJC6 RfKhS5kxA2PCIOT4jsQNH6kqDNvAVCqCNYBuaWKewwxNVphuZit1GjvllMj6WYk3mqbg w6whc+SkwUA/Hdn6dzOnqzLuDd07DJXXcHrlQV09DmDEDqc+BOMHLN7cMe+4jwaRdpEQ ZisjAYIy93nazL+JLBNhUowbV82L8oRQ8Gb0DDdRYrJvl3CcUQm3DYvoJuYUW4y7T20k 9d8FdITVA1WAenYiSuF6AE3MtnpTeJhBXNuLVbXi1+7RT70S4lcgj3RmUwAjH4/46xVs ctmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dMiNFj6TkRcrSt2tChTq4J7YXeDeWYDlZxmk6tGUSHA=; b=EzskEMFj9j3xa60Gw70csjRFlmTqHJ+bj8QuxTomxeTli3ADXymbVemg6Xlwb2e6Ow 8fRXJW36dZSqtmTwAB3/xy4z7wQ4O/dCDwrOnKeYwJkmpW0fCQZjgIoWw57WM5Zhg77y YYyeIOwtdvwtQP2CWGOcvCHxtvp5UlF2fdz6PPn2NOt1/7P1+MQTxBWV9Iyd8O70w1wG q8DR1eoQL8RbS8eIcF2WskLJzhx+HS5C/krC30Huxs+xrWmpmfDrBi53VvRO6W2dqua6 YTI2bTfa7gXWKuhjD2UHkuaJ3BbZDhsXEvbkxacCaB9FrsBUy8I4cfIuKavtLVylhz4b n0og== X-Gm-Message-State: APjAAAXiYywFKh9z3S+K+JBSnhA35Fmi3njpcF/EUB1SQSJ/OtnQosMx IJ1EfV4d82aDCYarR87YAFhjjf+n X-Google-Smtp-Source: APXvYqy6lvmrDDylKpU6O8wuofmrjgFY+X3x3+JssG0dH0ia4lEVA5NHKFOcU6B4uSgzLkaijMtSKw== X-Received: by 2002:adf:eac4:: with SMTP id o4mr35297430wrn.290.1563284290987; Tue, 16 Jul 2019 06:38:10 -0700 (PDT) Received: from localhost.localdomain ([212.36.34.46]) by smtp.gmail.com with ESMTPSA id e5sm21450292wro.41.2019.07.16.06.38.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 06:38:10 -0700 (PDT) From: andrei@gherzan.ro To: u-boot@lists.denx.de Date: Tue, 16 Jul 2019 14:37:50 +0100 Message-Id: <20190716133803.1174-4-andrei@gherzan.ro> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190716133803.1174-1-andrei@gherzan.ro> References: <20190716133803.1174-1-andrei@gherzan.ro> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 16 Jul 2019 13:38:53 +0000 Cc: Andrei Gherzan Subject: [U-Boot] [PATCH 03/16] arm: mach-bcm283x: Define configs for RaspberryPi 4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- arch/arm/mach-bcm283x/Kconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig index 3eb5a9a897..d5069fe688 100644 --- a/arch/arm/mach-bcm283x/Kconfig +++ b/arch/arm/mach-bcm283x/Kconfig @@ -26,6 +26,23 @@ config BCM2837_64B select BCM2837 select ARM64 +config BCM2838 + bool "Broadcom BCM2838 SoC support" + depends on ARCH_BCM283X + +config BCM2838_32B + bool "Broadcom BCM2838 SoC 32-bit support" + depends on ARCH_BCM283X + select BCM2838 + select ARMV7_LPAE + select CPU_V7A + +config BCM2838_64B + bool "Broadcom BCM2838 SoC 64-bit support" + depends on ARCH_BCM283X + select BCM2838 + select ARM64 + menu "Broadcom BCM283X family" depends on ARCH_BCM283X @@ -127,6 +144,24 @@ config TARGET_RPI_3 This option creates a build targeting the ARMv8/AArch64 ISA. select BCM2837_64B +config TARGET_RPI_4 + bool "Raspberry Pi 4 64-bit build" + help + Support for all BCM2838-based Raspberry Pi variants, such as + the RPi 4 model B, in AArch64 (64-bit) mode. + + This option creates a build targeting the ARMv8/AArch64 ISA. + select BCM2838_64B + +config TARGET_RPI_4_32B + bool "Raspberry Pi 4 32-bit build" + help + Support for all BCM2838-based Raspberry Pi variants, such as + the RPi 4 model B, in AArch32 (32-bit) mode. + + This option creates a build targeting the ARMv7/AArch32 ISA. + select BCM2838_32B + endchoice config SYS_BOARD