From patchwork Fri Nov 23 15:14:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 201340 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8E4EF2C008E for ; Sat, 24 Nov 2012 02:15:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3CA664A023; Fri, 23 Nov 2012 16:14:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qZob75V8isuK; Fri, 23 Nov 2012 16:14:57 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD4C24A025; Fri, 23 Nov 2012 16:14:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D03544A01C for ; Fri, 23 Nov 2012 16:14:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id topqlWu++V-T for ; Fri, 23 Nov 2012 16:14:42 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 59F554A01E for ; Fri, 23 Nov 2012 16:14:40 +0100 (CET) Received: by mail-bk0-f44.google.com with SMTP id w11so4233729bku.3 for ; Fri, 23 Nov 2012 07:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=YOwWoOAfZLEhfNgNG0feYojDouuOKxT39MvlhT8w49k=; b=xmZ3OJMvmBua49ebb4eS2svKKZXPJCtNca+ZsCXyeWA4Y2qB3C55rszGZio17vJ3Y8 gEXv8cnBhY5IB73ZDHnhbgOrzEhqz2RZ+zPgFPhSZajPPZlj3qY/nnlIMhqxiCT9JE/F UedRmrnD5dMGVWEsr6fILjjnJUQaT2u1N92m9QSaYIsJ0yCaSgZwcusteDz7DuTWvx3+ 78lb8bTU488dOyTdx6yGQONoN2l1IJCf753nwvuPW9YyUEejBqZNJOqvpBz/sqo/O/xy 6BskXpLDMVWgRkViZoU8tdW9Nt/L1xeQ+XXqaEBRFcPcPQrJCOnCDjjrsJxlAmMZGcN1 KMVQ== Received: by 10.204.130.87 with SMTP id r23mr1328200bks.90.1353683679835; Fri, 23 Nov 2012 07:14:39 -0800 (PST) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id f24sm4820321bkv.7.2012.11.23.07.14.38 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 07:14:39 -0800 (PST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Fri, 23 Nov 2012 16:14:14 +0100 Message-Id: <1353683657-23496-2-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353683657-23496-1-git-send-email-andreas.devel@googlemail.com> References: <1353683657-23496-1-git-send-email-andreas.devel@googlemail.com> MIME-Version: 1.0 Cc: Tom Rini , Scott Wood , Ilya Yanok Subject: [U-Boot] [RFC/PATCH 1/4] omap3/cpu.h: add BCH support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch adds the BCH result registers to register mapping for OMAP3 gpmc. Signed-off-by: Andreas Bießmann Cc: Tom Rini Cc: Ilya Yanok Cc: Scott Wood --- arch/arm/include/asm/arch-omap3/cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/cpu.h b/arch/arm/include/asm/arch-omap3/cpu.h index 5683e16..c601873 100644 --- a/arch/arm/include/asm/arch-omap3/cpu.h +++ b/arch/arm/include/asm/arch-omap3/cpu.h @@ -109,6 +109,10 @@ struct gpmc_cs { u8 res[8]; /* blow up to 0x30 byte */ }; +struct bch_res_0_3 { + u32 bch_result_x[4]; +}; + struct gpmc { u8 res1[0x10]; u32 sysconfig; /* 0x10 */ @@ -135,6 +139,8 @@ struct gpmc { u32 ecc7_result; /* 0x218 */ u32 ecc8_result; /* 0x21C */ u32 ecc9_result; /* 0x220 */ + u8 res7[0x1C]; /* fill up to 0x240 */ + struct bch_res_0_3 bch_result_0_3[7]; /* 0x240 */ }; /* Used for board specific gpmc initialization */