mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
spi: designware_spi: Use GENMASK
Replace numeric mask hexcodes with GENMASK macro in designware_spi Cc: Stefan Roese <sr@denx.de> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
a9d3b78023
commit
95e77d904e
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
#define SPI_CFS_OFFSET 12
|
#define SPI_CFS_OFFSET 12
|
||||||
|
|
||||||
/* Bit fields in SR, 7 bits */
|
/* Bit fields in SR, 7 bits */
|
||||||
#define SR_MASK 0x7f /* cover 7 bits */
|
#define SR_MASK GENMASK(6, 0) /* cover 7 bits */
|
||||||
#define SR_BUSY BIT(0)
|
#define SR_BUSY BIT(0)
|
||||||
#define SR_TF_NOT_FULL BIT(1)
|
#define SR_TF_NOT_FULL BIT(1)
|
||||||
#define SR_TF_EMPT BIT(2)
|
#define SR_TF_EMPT BIT(2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue