[U-Boot] [PATCH] ppc4xx: Corrected EBC register bit definitions
Eugene O'Brien
Eugene.O'Brien at advantechamt.com
Tue Feb 23 22:19:04 CET 2010
Corrected the bit field positions of the external master priority low
and the external master priority high values in the EBC configuration
register.
Signed-off-by: Eugene O'Brien <eugene.obrien at advantechamt.com>
---
include/asm-ppc/ppc4xx-ebc.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/asm-ppc/ppc4xx-ebc.h b/include/asm-ppc/ppc4xx-ebc.h
index 9680f70..697a916 100644
--- a/include/asm-ppc/ppc4xx-ebc.h
+++ b/include/asm-ppc/ppc4xx-ebc.h
@@ -143,10 +143,10 @@
#define EBC_CFG_EBTC_MASK PPC_REG_VAL(0, 0x1)
#define EBC_CFG_EBTC_HI PPC_REG_VAL(0, 0x0)
#define EBC_CFG_EBTC_DRIVEN PPC_REG_VAL(0, 0x1)
-#define EBC_CFG_EMPH_MASK PPC_REG_VAL(6, 0x3)
-#define EBC_CFG_EMPH_ENCODE(n) PPC_REG_VAL(6, (static_cast(u32, n)) &
0x3)
-#define EBC_CFG_EMPL_MASK PPC_REG_VAL(8, 0x3)
-#define EBC_CFG_EMPL_ENCODE(n) PPC_REG_VAL(8, (static_cast(u32, n)) &
0x3)
+#define EBC_CFG_EMPL_MASK PPC_REG_VAL(6, 0x3)
+#define EBC_CFG_EMPL_ENCODE(n) PPC_REG_VAL(6, (static_cast(u32, n)) &
0x3)
+#define EBC_CFG_EMPH_MASK PPC_REG_VAL(8, 0x3)
+#define EBC_CFG_EMPH_ENCODE(n) PPC_REG_VAL(8, (static_cast(u32, n)) &
0x3)
#define EBC_CFG_CSTC_MASK PPC_REG_VAL(9, 0x1)
#define EBC_CFG_CSTC_HI PPC_REG_VAL(9, 0x0)
#define EBC_CFG_CSTC_DRIVEN PPC_REG_VAL(9, 0x1)
--
1.7.0.rc1.10.gb8bb
More information about the U-Boot
mailing list