[U-Boot] [PATCH v1 08/24] driver/ddr/fsl: Add bit operation accessors
York Sun
yorksun at freescale.com
Tue Jan 6 22:18:46 CET 2015
Add bit opearation accessors to DDR driver for little- and big-endian.
Signed-off-by: York Sun <yorksun at freescale.com>
---
include/fsl_ddr.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/fsl_ddr.h b/include/fsl_ddr.h
index 675557a..3286c95 100644
--- a/include/fsl_ddr.h
+++ b/include/fsl_ddr.h
@@ -23,9 +23,15 @@
#ifdef CONFIG_SYS_FSL_DDR_LE
#define ddr_in32(a) in_le32(a)
#define ddr_out32(a, v) out_le32(a, v)
+#define ddr_setbits32(a, v) setbits_le32(a, v)
+#define ddr_clrbits32(a, v) clrbits_le32(a, v)
+#define ddr_clrsetbits32(a, clear, set) clrsetbits_le32(a, clear, set)
#else
#define ddr_in32(a) in_be32(a)
#define ddr_out32(a, v) out_be32(a, v)
+#define ddr_setbits32(a, v) setbits_be32(a, v)
+#define ddr_clrbits32(a, v) clrbits_be32(a, v)
+#define ddr_clrsetbits32(a, clear, set) clrsetbits_be32(a, clear, set)
#endif
#define _DDR_ADDR CONFIG_SYS_FSL_DDR_ADDR
--
1.7.9.5
More information about the U-Boot
mailing list