From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.211.181]) by ozlabs.org (Postfix) with ESMTP id 380A2B7B68 for ; Fri, 18 Sep 2009 00:13:51 +1000 (EST) Received: by ywh11 with SMTP id 11so77211ywh.9 for ; Thu, 17 Sep 2009 07:13:50 -0700 (PDT) MIME-Version: 1.0 Sender: glikely@secretlab.ca In-Reply-To: <4AB241FA.9090604@toptica.com> References: <4AB0C706.5020601@toptica.com> <20090916204853.GA21627@pengutronix.de> <4AB241FA.9090604@toptica.com> From: Grant Likely Date: Thu, 17 Sep 2009 08:13:29 -0600 Message-ID: Subject: Re: [spi-devel-general] [PATCH] mpc52xx_psc_spi: enlarge clock range To: Dragos Carp Content-Type: text/plain; charset=ISO-8859-1 Cc: spi-devel-general@lists.sourceforge.net, David Brownell , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 17, 2009 at 8:04 AM, Dragos Carp wrote: > Hi, > > I wasn't aware that MPC5200 differ from MPC5200B in this regard. I also > couldn't find any MPC5200 user manual on Freescale's webpage. > Is there a #define that I can use to distinguish between the two > processor variants? Querying the PVR register is not a nice solution > because the chip-select activate function is called in some scenarios > quite often. Use the compatible value. That's what it is there for. Only use the extended register format if "fsl,mpc5200b-psc-spi" is present in the compatible list. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.