summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-10-23 00:59:00 +0530
committerJagan Teki <jteki@openedev.com>2015-10-27 23:21:42 +0530
commita9d3b780232907206c7930edae8a0a7cc8fd7e24 (patch)
tree9dfe2c45a97360c5ce3966db11395cebf85894e6
parent5ea392d43bd15c652aac01750ed363c7d3d144e4 (diff)
downloadu-boot-imx-a9d3b780232907206c7930edae8a0a7cc8fd7e24.zip
u-boot-imx-a9d3b780232907206c7930edae8a0a7cc8fd7e24.tar.gz
u-boot-imx-a9d3b780232907206c7930edae8a0a7cc8fd7e24.tar.bz2
spi: atmel_spi: Use GENMASK
Replace numeric mask hexcodes with GENMASK macro in atmel_spi Cc: Bo Shen <voice.shen@atmel.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
-rw-r--r--drivers/spi/atmel_spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h
index 5b892d2..76b8556 100644
--- a/drivers/spi/atmel_spi.h
+++ b/drivers/spi/atmel_spi.h
@@ -59,7 +59,7 @@
#define ATMEL_SPI_CSRx_CSAAT BIT(3)
#define ATMEL_SPI_CSRx_BITS(x) ((x) << 4)
#define ATMEL_SPI_CSRx_SCBR(x) ((x) << 8)
-#define ATMEL_SPI_CSRx_SCBR_MAX 0xff
+#define ATMEL_SPI_CSRx_SCBR_MAX GENMASK(7, 0)
#define ATMEL_SPI_CSRx_DLYBS(x) ((x) << 16)
#define ATMEL_SPI_CSRx_DLYBCT(x) ((x) << 24)