From patchwork Fri Jun 28 12:41:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 1124202 X-Patchwork-Delegate: monstr@monstr.eu 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=thorsis.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45ZxHQ3107z9s7h for ; Fri, 28 Jun 2019 22:42:26 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DB14DC21DB6; Fri, 28 Jun 2019 12:41:51 +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=none 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 0A74FC21C27; Fri, 28 Jun 2019 12:41:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DD73FC21C8B; Fri, 28 Jun 2019 12:41:33 +0000 (UTC) Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) by lists.denx.de (Postfix) with ESMTPS id 9A21EC21C2F for ; Fri, 28 Jun 2019 12:41:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id 9F5534E3D for ; Fri, 28 Jun 2019 14:41:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mwylBB1a479C for ; Fri, 28 Jun 2019 14:41:48 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 5DE924EB6; Fri, 28 Jun 2019 14:41:45 +0200 (CEST) Received: from adahl by ada.ifak-system.com with local (Exim 4.89) (envelope-from ) id 1hgqBw-0003pu-9g; Fri, 28 Jun 2019 14:41:24 +0200 From: Alexander Dahl To: u-boot@lists.denx.de Date: Fri, 28 Jun 2019 14:41:20 +0200 Message-Id: <20190628124124.14706-2-ada@thorsis.com> In-Reply-To: <20190628124124.14706-1-ada@thorsis.com> References: <20190628124124.14706-1-ada@thorsis.com> Cc: Michal Simek Subject: [U-Boot] [PATCH v2 1/5] fpga: altera: Add some more device sizes 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" There seems to be only one place, where this is checked against: `altera_validate()`. It should be non zero. Otherwise it is only used to display it, so it probably does not really matter at the moment. But we had the datasheet open anyway … Sizes in datasheet are bit counts, display here is in bytes. Signed-off-by: Alexander Dahl --- include/ACEX1K.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/ACEX1K.h b/include/ACEX1K.h index 9814bba284..7c5253c66c 100644 --- a/include/ACEX1K.h +++ b/include/ACEX1K.h @@ -60,6 +60,16 @@ typedef struct { #define Altera_EP2C35_SIZE 883905 #define Altera_EP3C5_SIZE 368011 /* .rbf size in bytes */ +#define ALTERA_EP4CE6_SIZE 368011 /* 2944088 Bits */ +#define ALTERA_EP4CE10_SIZE 368011 /* 2944088 Bits */ +#define ALTERA_EP4CE15_SIZE 510856 /* 4086848 Bits */ +#define ALTERA_EP4CE22_SIZE 718569 /* 5748552 Bits */ +#define ALTERA_EP4CE30_SIZE 1191788 /* 9534304 Bits */ +#define ALTERA_EP4CE40_SIZE 1191788 /* 9534304 Bits */ +#define ALTERA_EP4CE55_SIZE 1861195 /* 14889560 Bits */ +#define ALTERA_EP4CE75_SIZE 2495719 /* 19965752 Bits */ +#define ALTERA_EP4CE115_SIZE 3571462 /* 28571696 Bits */ + /* Descriptor Macros *********************************************************************/ /* ACEX1K devices */