1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

tree: Consolidate BIT() macro

Change-Id: I7e61f7671b70ca5ed751d99405714436bcd18d5a
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/64962
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Edward O'Callaghan 2022-06-04 20:23:57 +10:00 committed by Edward O'Callaghan
parent 5613315296
commit cba5de5e24
3 changed files with 2 additions and 3 deletions

View File

@ -39,6 +39,8 @@
#define KiB (1024)
#define MiB (1024 * KiB)
#define BIT(x) (1<<(x))
/* Assumes `n` and `a` are at most 64-bit wide (to avoid typeof() operator). */
#define ALIGN_DOWN(n, a) ((n) & ~((uint64_t)(a) - 1))

View File

@ -69,7 +69,6 @@
#define EEWR_ADDR 2
#define EEWR_DATA 16
#define BIT(x) (1<<x)
#define EE_PAGE_MASK 0x3f
static uint8_t *nicintel_eebar;

View File

@ -74,8 +74,6 @@
// #define FL_BUSY 30
// #define FL_ER 31
#define BIT(x) (1<<(x))
struct nicintel_spi_data {
uint8_t *spibar;
};