diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-08-27 19:37:10 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-22 14:17:20 -0400 |
commit | 987a40d52ea617ee609fafcee5463274983d2827 (patch) | |
tree | efa973fe9385832593cdb3d086d46834d8938d87 /board/ti | |
parent | b50a7685283b66623a6acb60329c57caa78795f5 (diff) | |
download | u-boot-imx-987a40d52ea617ee609fafcee5463274983d2827.zip u-boot-imx-987a40d52ea617ee609fafcee5463274983d2827.tar.gz u-boot-imx-987a40d52ea617ee609fafcee5463274983d2827.tar.bz2 |
omap4: omap_die_id support
This introduces omap4 support for omap_die_id, which matches the common
omap_die_id definition. It replaces board-specific code to grab the die id bits.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/panda/panda.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c index 92e1b63..4de7ea1 100644 --- a/board/ti/panda/panda.c +++ b/board/ti/panda/panda.c @@ -209,7 +209,7 @@ int misc_init_r(void) { int phy_type; u32 auxclk, altclksrc; - u32 id[4]; + unsigned int die_id[4] = { 0 }; /* EHCI is not supported on ES1.0 */ if (omap_revision() == OMAP4430_ES1_0) @@ -263,11 +263,8 @@ int misc_init_r(void) writel(altclksrc, &scrm->altclksrc); - id[0] = readl(STD_FUSE_DIE_ID_0); - id[1] = readl(STD_FUSE_DIE_ID_1); - id[2] = readl(STD_FUSE_DIE_ID_2); - id[3] = readl(STD_FUSE_DIE_ID_3); - usb_fake_mac_from_die_id(id); + omap_die_id(die_id); + usb_fake_mac_from_die_id(die_id); return 0; } |