hwrng: imx-rngc - use BIT(x) for register bit defines
Rewrite the defines for register bits to use BIT(x) instead of writing out the 32-bit number. This makes it easier to compare the code with the register descriptions in the reference manual. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
cbd0778135
commit
44777807fb
|
@ -35,19 +35,19 @@
|
|||
#define RNGC_TYPE_RNGC 0x2
|
||||
|
||||
|
||||
#define RNGC_CMD_CLR_ERR 0x00000020
|
||||
#define RNGC_CMD_CLR_INT 0x00000010
|
||||
#define RNGC_CMD_SEED 0x00000002
|
||||
#define RNGC_CMD_SELF_TEST 0x00000001
|
||||
#define RNGC_CMD_CLR_ERR BIT(5)
|
||||
#define RNGC_CMD_CLR_INT BIT(4)
|
||||
#define RNGC_CMD_SEED BIT(1)
|
||||
#define RNGC_CMD_SELF_TEST BIT(0)
|
||||
|
||||
#define RNGC_CTRL_MASK_ERROR 0x00000040
|
||||
#define RNGC_CTRL_MASK_DONE 0x00000020
|
||||
#define RNGC_CTRL_AUTO_SEED 0x00000010
|
||||
#define RNGC_CTRL_MASK_ERROR BIT(6)
|
||||
#define RNGC_CTRL_MASK_DONE BIT(5)
|
||||
#define RNGC_CTRL_AUTO_SEED BIT(4)
|
||||
|
||||
#define RNGC_STATUS_ERROR 0x00010000
|
||||
#define RNGC_STATUS_ERROR BIT(16)
|
||||
#define RNGC_STATUS_FIFO_LEVEL_MASK GENMASK(11, 8)
|
||||
#define RNGC_STATUS_SEED_DONE 0x00000020
|
||||
#define RNGC_STATUS_ST_DONE 0x00000010
|
||||
#define RNGC_STATUS_SEED_DONE BIT(5)
|
||||
#define RNGC_STATUS_ST_DONE BIT(4)
|
||||
|
||||
#define RNGC_ERROR_STATUS_STAT_ERR 0x00000008
|
||||
|
||||
|
|
Loading…
Reference in New Issue