diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-11 10:14:17 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-09-01 08:07:04 +0200 |
commit | e515a33040af6c637f8f17d9bd4166b0c3bba22d (patch) | |
tree | 11bc8f0c1f346da67584ba191c4dcae8f11ddafc | |
parent | a008dbaa8ce2d4142e17780177faa381fd59bb4e (diff) | |
download | u-boot-e515a33040af6c637f8f17d9bd4166b0c3bba22d.zip u-boot-e515a33040af6c637f8f17d9bd4166b0c3bba22d.tar.gz u-boot-e515a33040af6c637f8f17d9bd4166b0c3bba22d.tar.bz2 |
tools: kwbimage: Use IBR_HDR_* constants instead of raw numbers
There are already IBR_HDR_* constants for these numbers, so use them.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | tools/kwbimage.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index f47e52f..9fab04c 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -59,13 +59,13 @@ struct hash_v1 { }; struct boot_mode boot_modes[] = { - { 0x4D, "i2c" }, - { 0x5A, "spi" }, - { 0x8B, "nand" }, - { 0x78, "sata" }, - { 0x9C, "pex" }, - { 0x69, "uart" }, - { 0xAE, "sdio" }, + { IBR_HDR_I2C_ID, "i2c" }, + { IBR_HDR_SPI_ID, "spi" }, + { IBR_HDR_NAND_ID, "nand" }, + { IBR_HDR_SATA_ID, "sata" }, + { IBR_HDR_PEX_ID, "pex" }, + { IBR_HDR_UART_ID, "uart" }, + { IBR_HDR_SDIO_ID, "sdio" }, {}, }; @@ -75,10 +75,10 @@ struct nand_ecc_mode { }; struct nand_ecc_mode nand_ecc_modes[] = { - { 0x00, "default" }, - { 0x01, "hamming" }, - { 0x02, "rs" }, - { 0x03, "disabled" }, + { IBR_HDR_ECC_DEFAULT, "default" }, + { IBR_HDR_ECC_FORCED_HAMMING, "hamming" }, + { IBR_HDR_ECC_FORCED_RS, "rs" }, + { IBR_HDR_ECC_DISABLED, "disabled" }, {}, }; |