From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by ozlabs.org (Postfix) with ESMTP id 772A2DE15C for ; Thu, 16 Apr 2009 02:03:38 +1000 (EST) Received: by rv-out-0506.google.com with SMTP id f9so2613445rvb.9 for ; Wed, 15 Apr 2009 09:03:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090415155837.139A119C0056@mail32-dub.bigfish.com> References: <20090414200834.D05446F8056@mail163-wa4.bigfish.com> <20090415155837.139A119C0056@mail32-dub.bigfish.com> From: Grant Likely Date: Wed, 15 Apr 2009 10:03:22 -0600 Message-ID: Subject: Re: [PATCH] [V3] Xilinx : Framebuffer Driver: Add PLB support and cleanup DCR To: Stephen Neuendorffer Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-fbdev-devel@lists.sourceforge.net, adaplas@gmail.com, Suneel Garapati , linuxppc-dev@ozlabs.org, John Linn , akonovalov@ru.mvista.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Apr 15, 2009 at 9:58 AM, Stephen Neuendorffer wrote: >> > - =A0 =A0 =A0 rc =3D of_address_to_resource(op->node, 0, &res); >> > - =A0 =A0 =A0 if (rc) { >> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&op->dev, "invalid address\n"); >> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 return rc; >> > + =A0 =A0 =A0 /* >> > + =A0 =A0 =A0 =A0* To check whether the core is connected directly to = DCR or PLB >> > + =A0 =A0 =A0 =A0* interface and initialize the tft_access accordingly= . >> > + =A0 =A0 =A0 =A0*/ >> > + =A0 =A0 =A0 p =3D (u32 *)of_get_property(op->node, "xlnx,dcr-splb-sl= ave-if", NULL); >> >> Hmmm. =A0This binding is undocumented. =A0It would be better to make the >> decision on the presence/absence of the dcr-reg and/or reg properties. > > For backward compatibility with the 'old' way, the device tree generator = for this core has both dcr-reg and reg properties (where the reg has been t= ranslated back through the bridge). So, what is in the regs and dcr-regs properties when DCR is used? How about when MMIO is used? g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.