From 4555c26142f893aa5d23f95c8eb3982e4a05b334 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 27 Nov 2017 10:25:09 -0200 Subject: imx: Add a common way for detecting NXP boards revision NXP development boards based on i.MX6/i.MX7 contain the board revision information stored in the fuses. Introduce a common function that can be shared by different boards and convert mx6sabreauto to use this new mechanism. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/include') diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h index a80a392a73..5184e00972 100644 --- a/arch/arm/include/asm/mach-imx/sys_proto.h +++ b/arch/arm/include/asm/mach-imx/sys_proto.h @@ -109,6 +109,9 @@ void imx_wdog_disable_powerdown(void); int board_mmc_get_env_dev(int devno); +int nxp_board_rev(void); +char nxp_board_rev_string(void); + /* * Initializes on-chip ethernet controllers. * to override, implement board_eth_init() -- cgit