diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2020-03-30 11:56:17 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 10:10:00 -0400 |
commit | c738adb8dbbf28a34f8574239a241e85d46f3877 (patch) | |
tree | f16bc06c077bda0a20db03571e23c053d9a95363 /tools/imx8mimage.c | |
parent | 9b544c9eb312741e8e27bb738329bcf2737168ad (diff) | |
download | u-boot-c738adb8dbbf28a34f8574239a241e85d46f3877.tar.gz |
tool: Move ALIGN_MASK to header as common MACRO
The ALIGN code is need by many files who need handle structure or image
align, so move the macro to imagetool.h file.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/imx8mimage.c')
-rw-r--r-- | tools/imx8mimage.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c index 2b0d946a7d..7defb13962 100644 --- a/tools/imx8mimage.c +++ b/tools/imx8mimage.c @@ -32,8 +32,6 @@ static uint32_t rom_version = ROM_V1; #define HDMI_FW_SIZE 0x17000 /* Use Last 0x1000 for IVT and CSF */ #define ALIGN_SIZE 0x1000 -#define ALIGN(x,a) __ALIGN_MASK((x), (__typeof__(x))(a) - 1, a) -#define __ALIGN_MASK(x,mask,mask2) (((x) + (mask)) / (mask2) * (mask2)) static uint32_t get_cfg_value(char *token, char *name, int linenr) { |