MLK-12483-3 mx6: Add a module fuse checking
authorYe Li <ye.li@nxp.com>
Tue, 15 Mar 2016 14:12:46 +0000 (22:12 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:35 +0000 (14:04 +0800)
commit8aef13ebd92f709f4e6b80cf46c7cfe0f69bb211
treeb06bbce7e2983c54d1699bb129d6e3a98281fc16
parente1c98a672e50fd0405686b74dad50680a75a8a9f
MLK-12483-3 mx6: Add a module fuse checking

Implement a functionality to read the soc fuses and check if any module
is fused. For fused module, we have to disable it in u-boot dynamically,
and change the its node in FDT to "disabled" status before starting the kernel.

In this patch, we implement the ft_system_setup for FDT fixup. This function will
be called during boot process or by "fdt systemsetup" command.

To enable the module fuse checking, two configurations must be defined:
CONFIG_MODULE_FUSE
CONFIG_OF_SYSTEM_SETUP

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 7236051526b73a5a25cc8330a79f5c08b7d70726)
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/cpu/armv7/mx6/Makefile
arch/arm/cpu/armv7/mx6/module_fuse.c [new file with mode: 0644]
arch/arm/include/asm/arch-mx6/module_fuse.h [new file with mode: 0644]
arch/arm/include/asm/arch-mx6/sys_proto.h