summaryrefslogtreecommitdiff
path: root/board/freescale/common/qixis.h
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2012-09-17 17:30:31 +0000
committerAndy Fleming <afleming@freescale.com>2012-10-22 03:04:28 -0500
commit9f26fd7947a92a30f4eb68d4d0f60c1a73ab4280 (patch)
treea8839910dd96b8a6c0bd25ad9f1ebb7d6eca8cb1 /board/freescale/common/qixis.h
parent320d53da605d67b9d95622c5c6bfd5ac2c17ed58 (diff)
board/freescale/common:QIXIS:Fix magic number usage
QIXIS FPGA layout defines the address of registers but The actual register bit implementation is board-specific, So avoid use of magic numbers as it may vary across different boards's QIXIS FPGA implementation. Also, Avoid board specific defines in common/qixis.h Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/freescale/common/qixis.h')
-rw-r--r--board/freescale/common/qixis.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/freescale/common/qixis.h b/board/freescale/common/qixis.h
index 7a0268a02c..83a3b693f6 100644
--- a/board/freescale/common/qixis.h
+++ b/board/freescale/common/qixis.h
@@ -86,12 +86,6 @@ struct qixis {
u8 res15[16];
};
-#define QIXIS_BASE 0xffdf0000
-#define QIXIS_LBMAP_SWITCH 7
-#define QIXIS_LBMAP_MASK 0x0f
-#define QIXIS_LBMAP_SHIFT 0
-#define QIXIS_LBMAP_ALTBANK 0x04
-
u8 qixis_read(unsigned int reg);
void qixis_write(unsigned int reg, u8 value);