summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/Makefile
diff options
context:
space:
mode:
authorRohan Garg <rohan.garg@collabora.com>2019-08-12 17:04:34 +0200
committerKever Yang <kever.yang@rock-chips.com>2019-08-23 18:15:31 +0800
commit04825384999f81c08e820fe380e95b6325352a6d (patch)
treecb74d5404bffc277920dc2e4976a8261a7578648 /arch/arm/mach-rockchip/Makefile
parentcb8c492f2016d137c6ed887f4f3eff5df98b865c (diff)
downloadu-boot-04825384999f81c08e820fe380e95b6325352a6d.tar.gz
u-boot-04825384999f81c08e820fe380e95b6325352a6d.tar.bz2
u-boot-04825384999f81c08e820fe380e95b6325352a6d.zip
rockchip: rk3399: derive ethaddr from cpuid
Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and set if there is no ethaddr present in the saved environment. This is based off of Klaus Goger's work in 8adc9d Signed-off-by: Rohan Garg <rohan.garg@collabora.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/Makefile')
-rw-r--r--arch/arm/mach-rockchip/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/Makefile b/arch/arm/mach-rockchip/Makefile
index aed379a0dc..207f900011 100644
--- a/arch/arm/mach-rockchip/Makefile
+++ b/arch/arm/mach-rockchip/Makefile
@@ -25,6 +25,10 @@ endif
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
+ifdef CONFIG_MISC_INIT_R
+obj-y += misc.o
+endif
+
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
ifndef CONFIG_TPL_BUILD