Patchwork [U-Boot] powerpc/board: add present2 register definition for QIXIS

login
register
mail settings
Submitter Shengzhou Liu
Date Oct. 8, 2012, 6:21 a.m.
Message ID <1349677262-32449-1-git-send-email-Shengzhou.Liu@freescale.com>
Download mbox | patch
Permalink /patch/189921/
State Accepted
Delegated to: Andy Fleming
Headers show

Comments

Shengzhou Liu - Oct. 8, 2012, 6:21 a.m.
According to new QIXIS system definition, update QIXIS registers set
to add present2 register instead of obsolete ctl_sys2.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
based on master branch of upstream tree.
This patch is needed by T4QDS patches.

 board/freescale/common/qixis.c |    2 +-
 board/freescale/common/qixis.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
index 6cd7e51..774dd0d 100644
--- a/board/freescale/common/qixis.c
+++ b/board/freescale/common/qixis.c
@@ -85,11 +85,11 @@  static void qixis_dump_regs(void)
 	printf("ctl_sys	= %02x\n", QIXIS_READ(ctl_sys));
 	printf("rcw_ctl = %02x\n", QIXIS_READ(rcw_ctl));
 	printf("present = %02x\n", QIXIS_READ(present));
+	printf("present2 = %02x\n", QIXIS_READ(present2));
 	printf("clk_spd = %02x\n", QIXIS_READ(clk_spd));
 	printf("stat_dut = %02x\n", QIXIS_READ(stat_dut));
 	printf("stat_sys = %02x\n", QIXIS_READ(stat_sys));
 	printf("stat_alrm = %02x\n", QIXIS_READ(stat_alrm));
-	printf("ctl_sys2 = %02x\n", QIXIS_READ(ctl_sys2));
 }
 #endif
 
diff --git a/board/freescale/common/qixis.h b/board/freescale/common/qixis.h
index 7a0268a..6fc1e36 100644
--- a/board/freescale/common/qixis.h
+++ b/board/freescale/common/qixis.h
@@ -26,7 +26,7 @@  struct qixis {
 	u8 stat_sys;
 	u8 stat_alrm;
 	u8 present;
-	u8 ctl_sys2;
+	u8 present2;    /* Presence Status Register 2,0x0c */
 	u8 rcw_ctl;
 	u8 ctl_led;
 	u8 i2cblk;