On Wed, Sep 1, 2010 at 3:56 PM, Amit Kucheria <amit.kuche...@linaro.org> wrote:

>>  I would be ok if we would only support TO3 and the kernel wouldn't boot
>>  on TO2 hardware, but AIUI the kernel will boot just fine and turn on
>>  NEON on TO2 such as Babbage 2.x, so I'm a bit scared by just release
>>  noting it.
>
> Another solution is that we could perhaps add code in the board init function
> to check the cpu revision and if NEON was enabled, then stop booting.

This is what the patch would look like (not-even compile tested)
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index ed885f9..e54b4a1 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -225,6 +225,10 @@ static void __init mxc_board_init(void)
 {
 	struct pad_desc usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP;
 
+	if ((mx51_revision() <  MX51_CHIP_REV_3_0)
+		&& (elf_hwcap & HWCAP_NEON))
+		panic("Kernel does not support TO1/TO2 i.MX5 chips\n");
+
 	mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads,
 					ARRAY_SIZE(mx51babbage_pads));
 	mxc_init_imx_uart();
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to