From 9f26fd7947a92a30f4eb68d4d0f60c1a73ab4280 Mon Sep 17 00:00:00 2001 From: Prabhakar Kushwaha Date: Mon, 17 Sep 2012 17:30:31 +0000 Subject: 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 Signed-off-by: Andy Fleming --- board/freescale/common/qixis.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'board/freescale/common/qixis.h') 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); -- cgit v1.2.1