mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
lmb: use the BIT macro for lmb flags
Use the BIT macro for assigning values to the LMB flags instead of assigning random values to them. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
3d679aed62
commit
a368850ae2
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <asm/types.h>
|
||||
#include <asm/u-boot.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
/*
|
||||
* Logical memory blocks.
|
||||
|
@ -18,8 +19,8 @@
|
|||
* @LMB_NOMAP: don't add to mmu configuration
|
||||
*/
|
||||
enum lmb_flags {
|
||||
LMB_NONE = 0x0,
|
||||
LMB_NOMAP = 0x4,
|
||||
LMB_NONE = 0,
|
||||
LMB_NOMAP = BIT(1),
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue