Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758048AbaGCPGE (ORCPT ); Thu, 3 Jul 2014 11:06:04 -0400 Received: from mail-ob0-f180.google.com ([209.85.214.180]:63005 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754886AbaGCPGC (ORCPT ); Thu, 3 Jul 2014 11:06:02 -0400 MIME-Version: 1.0 In-Reply-To: <53B5514E.5050504@denx.de> References: <53B5514E.5050504@denx.de> From: Jean-Michel Hautbois Date: Thu, 3 Jul 2014 17:05:46 +0200 Message-ID: Subject: Re: Lattice ECP3 FPGA with i.MX6 To: Stefan Roese Cc: linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > No. This driver was implemented and tested in a MPC5200 system. Most likely > I missed some endian issues as you already noticed. I suggest you start with > looking at this line: > > jedec_id = *(u32 *)&rxbuf[4]; > > And add some endian functions here, e.g. be32_to_cpu(). This might help with > the detection. But other endian related issues might still be present in > other parts of the driver as well. Replacing this line with the following works better : jedec_id = be32_to_cpu(*(u32 *)&rxbuf[4]); At least, on detecting the FPGA... I will send a patch, but there is only three places where there is a be32_to_cpu() to add. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/