summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-02-13 22:46:43 +0100
committerStefano Babic <sbabic@denx.de>2019-04-13 20:30:08 +0200
commita01cc0ac62d89942404415d42ea0d016a828502c (patch)
tree2c1f6a28df20404938d8644113fcf9a6a5340a22 /arch/arm/cpu
parentbc51c911208bb4383b7f8d8f7544c844316a47b1 (diff)
downloadu-boot-a01cc0ac62d89942404415d42ea0d016a828502c.tar.gz
u-boot-a01cc0ac62d89942404415d42ea0d016a828502c.tar.xz
u-boot-a01cc0ac62d89942404415d42ea0d016a828502c.zip
vybrid: Define the imx_get_mac_from_fuse() as a __weak function
The proposed way of reading fused MAC in the imx_get_mac_from_fuse() may be different for other boards. This commit defines the imx_get_mac_from_fuse() as a weak function to allow board file overriding it with customized function. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/vf610/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index e0c0b1bcb0..90fa695e98 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -252,7 +252,7 @@ U_BOOT_CMD(
);
#ifdef CONFIG_FEC_MXC
-void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
+__weak void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
{
struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
struct fuse_bank *bank = &ocotp->bank[4];