[U-Boot] [PATCH] Revert "spi: fsl_qspi: Use GENMASK"
Troy Kisky
troy.kisky at boundarydevices.com
Thu Dec 10 22:10:27 CET 2015
If GENMASK is REALLY desired, it should be GENMASK(23,0)
But since GENMASK is obviously more confusing, let's just revert
This reverts commit bad490a24212c068c5b718b9189f47ea4075d078.
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index 169835e..0a161b6 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define TX_BUFFER_SIZE 0x40
#endif
-#define OFFSET_BITS_MASK GENMASK(24, 0)
+#define OFFSET_BITS_MASK 0x00ffffff
#define FLASH_STATUS_BUSY 0x01
#define FLASH_STATUS_WEL 0x02
--
2.5.0
More information about the U-Boot
mailing list