summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2016-10-11 12:39:03 -0500
committerTom Rini <trini@konsulko.com>2016-10-31 10:04:21 -0400
commit28d624be6211a34d029dd717bf56bc74140917f4 (patch)
treedb262b8d18c38ef90132ece26af75e79792a48b3 /board/ti
parentedb42dbacc9c3be7fab75eeb6c1ac2cd08af1a6e (diff)
downloadu-boot-imx-28d624be6211a34d029dd717bf56bc74140917f4.zip
u-boot-imx-28d624be6211a34d029dd717bf56bc74140917f4.tar.gz
u-boot-imx-28d624be6211a34d029dd717bf56bc74140917f4.tar.bz2
ti: common: board_detect: Replace hardcoded value with macro
We should have used TI_DEAD_EEPROM_MAGIC in the first place. Fixes: d3b98a9eb941 ("ti: common: dra7: Add standard access for board description EEPROM") Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/common/board_detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index e0ae1a5..7c552d2 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -171,7 +171,7 @@ int __maybe_unused ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr)
goto already_read;
/* Initialize with a known bad marker for i2c fails.. */
- ep->header = 0xADEAD12C;
+ ep->header = TI_DEAD_EEPROM_MAGIC;
ep->name[0] = 0x0;
ep->version[0] = 0x0;
ep->serial[0] = 0x0;