From patchwork Tue Apr 2 16:05:53 2013 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: 233083 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 89A522C008D for ; Wed, 3 Apr 2013 03:05:31 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 04BEE4A269; Tue, 2 Apr 2013 18:05:30 +0200 (CEST) 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 576bTNom3l7C; Tue, 2 Apr 2013 18:05:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7762E4A26B; Tue, 2 Apr 2013 18:05:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56B444A26B for ; Tue, 2 Apr 2013 18:05:27 +0200 (CEST) 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 2zyGevyKO1+f for ; Tue, 2 Apr 2013 18:05:26 +0200 (CEST) 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-f46.google.com (mail-bk0-f46.google.com [209.85.214.46]) by theia.denx.de (Postfix) with ESMTPS id A428F4A269 for ; Tue, 2 Apr 2013 18:05:24 +0200 (CEST) Received: by mail-bk0-f46.google.com with SMTP id je9so301099bkc.5 for ; Tue, 02 Apr 2013 09:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=OxkaXgd76n41DrmiLM7Hklv/P0XCYzoUmQoD39X7lq8=; b=Nf94jTF0EELLhYQAXTXLKHJuEaA2geAkOHvrDJI8J+fM15hhuoMbRXqtBjRoRlCDya ZIkdf9Utb8YHNgwyHZvR9irOgeYgNbawcjNnufNg7fv6YndEGG/mQsuibHqmvkEqO/ka n/C6zULbTjFNPTZzynv89r+dAaRecweQaqluUBqVvsDIM0IjrHQ6No3zlB1ShDJESILl sj5Nb9oMaeyPoKu8CPsQP7SepAj8nTrIKfrEwyvAWZ2Bi51JONnQfH1inrL2qszPg7Qi 8QsmtRz0/nw4RQQ12pFF7vfUIdWMsDX3XdylDYCumLLz6TkTIFA4/j8jLwLWZpU0Y3Hf /VdA== X-Received: by 10.205.68.129 with SMTP id xy1mr7119165bkb.136.1364918724606; Tue, 02 Apr 2013 09:05:24 -0700 (PDT) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id k15sm886895bku.0.2013.04.02.09.05.22 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Apr 2013 09:05:23 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: U-Boot ML Date: Tue, 2 Apr 2013 18:05:53 +0200 Message-Id: <1364918758-17778-1-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] [PATCH v2 1/6] 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 Reviewed-by: Tom Rini --- since v1: unchanged 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 */