diff mbox

[U-Boot,v2,1/6] omap3/cpu.h: add BCH support

Message ID 1364918758-17778-1-git-send-email-andreas.devel@googlemail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Andreas Bießmann April 2, 2013, 4:05 p.m. UTC
This patch adds the BCH result registers to register mapping for OMAP3 gpmc.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
Cc: Scott Wood <scottwood@freescale.com>
---
since v1: unchanged

 arch/arm/include/asm/arch-omap3/cpu.h |    6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini April 2, 2013, 9:19 p.m. UTC | #1
On Tue, Apr 02, 2013 at 06:05:53PM +0200, Andreas Bie??mann wrote:

> This patch adds the BCH result registers to register mapping for OMAP3 gpmc.
> 
> Signed-off-by: Andreas Bie??mann <andreas.devel@googlemail.com>
> Cc: Tom Rini <trini@ti.com>
> Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
> Cc: Scott Wood <scottwood@freescale.com>

Reviewed-by: Tom Rini <trini@ti.com>
Tom Rini April 8, 2013, 4:58 p.m. UTC | #2
On Tue, Apr 02, 2013 at 06:05:53PM +0200, Andreas Bie??mann wrote:

> This patch adds the BCH result registers to register mapping for OMAP3 gpmc.
> 
> Signed-off-by: Andreas Bie??mann <andreas.devel@googlemail.com>
> Cc: Tom Rini <trini@ti.com>
> Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
> Cc: Scott Wood <scottwood@freescale.com>

This, along with the rest of the series (v4 of 4/6 and 5/6), applied to
u-boot-ti/master, thanks!
diff mbox

Patch

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 */