Skip to contentSkip to conversation

mx6qsabreauto: Pass the board revision to the kernel

PATCH New Fabio Estevam 2 participants 2 messages Oct 2, 2012 – Oct 10, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx6qsabreauto: Pass the board revision to the kernel

The kernel from Freescale expects that the bootloader passes the board revision.

Read the board revision and pass it via get_board_rev().

Without passing the board revision the kernel does not operate properly as the initialization of peripherals are different in revA versus revB boards.

---
 arch/arm/include/asm/arch-mx6/imx-regs.h      |    6 ++++
 board/freescale/mx6qsabreauto/mx6qsabreauto.c |   48 +++++++++++++++++++++++--
 2 files changed, 52 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-mx6/imx-regs.h +6 -0
index dc737ba..09ab010 100644
@@ -200,6 +200,12 @@ struct src {
 	u32     gpr10;
 };
 
+/* OCOTP Registers */
+struct ocotp_regs {
+	u32	reserved[0x198];
+	u32	gp1;	/* 0x660 */
+};
+
 /* GPR3 bitfields */
 #define IOMUXC_GPR3_GPU_DBG_OFFSET		29
 #define IOMUXC_GPR3_GPU_DBG_MASK		(3<<IOMUXC_GPR3_GPU_DBG_OFFSET)
board/freescale/mx6qsabreauto/mx6qsabreauto.c +46 -2

68 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 mx6qsabreauto: Pass the board revision to the kernel

Quoted 9 lines · Fabio Estevam

The kernel from Freescale expects that the bootloader passes the board revision.

Read the board revision and pass it via get_board_rev().

Without passing the board revision the kernel does not operate properly as the initialization of peripherals are different in revA versus revB boards.

---

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================