android_kernel_xiaomi_sm8450/arch/arm/mach-mxs
Marek Vasut 16d477018b ARM: mx28: Skip OCOTP FEC MAC setup if in DT
Currently, the kernel unconditionally adds "local-mac-address" and
"mac-address" properties under both FEC ethernet DT nodes in case
the update_fec_mac_prop() function is called. These properties are
loaded with MAC address compiled from vendors OUI and a per-device
NIC saved in OCOTP storage.

Some more advanced bootloaders do augment the DT passed to the kernel
by these properties already. In such case, it is wrong for kernel to
override these values.

Adjust the FEC MAC address loading so that in case the DT properties
are already present in the DT passed from the bootloader, skip the
loading from OCOTP altogether. If the DT properties are not present,
load them from OCOTP.

Note that the later case will lead to zeroed out MAC address if OCOTP
is not programmed. This will lead to FEC not working at all.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
2012-10-30 19:19:59 +08:00
..
include/mach ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
icoll.c ARM: mxs: adopt irq_domain support for icoll driver 2012-09-03 09:32:02 +08:00
Kconfig ARM: mxs: remove platform device codes 2012-08-17 12:35:45 +08:00
mach-mxs.c ARM: mx28: Skip OCOTP FEC MAC setup if in DT 2012-10-30 19:19:59 +08:00
Makefile ARM: mxs: remove iomux driver 2012-08-17 12:35:55 +08:00
Makefile.boot ARM: move all dtb targets out of Makefile.boot 2012-09-14 09:22:04 -05:00
mm.c ARM: mxs: remove non-DT core functions 2012-08-17 12:35:38 +08:00
ocotp.c arm: mxs: include asm/processor.h for cpu_relax() 2011-06-06 09:50:04 +02:00
pm.c ARM: substitute arch_idle() 2012-01-20 18:55:19 -05:00
system.c ARM: mxs: remove old clock support 2012-05-09 00:02:42 +08:00
timer.c ARM: mxs: retrieve timer irq from device tree 2012-09-03 09:31:50 +08:00