From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030322Ab2LGNRP (ORCPT ); Fri, 7 Dec 2012 08:17:15 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:53344 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030310Ab2LGNRM (ORCPT ); Fri, 7 Dec 2012 08:17:12 -0500 From: Grant Likely Subject: Re: Sharing PCIE driver between Microblaze and Arm zynq To: Michal Simek , LKML , linux-arm , Arnd Bergmann , Olof Johansson , linux-arch@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: John Linn , John Williams In-Reply-To: References: Date: Fri, 07 Dec 2012 13:17:06 +0000 Message-Id: <20121207131706.EC9273E0B87@localhost> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Dec 2012 15:23:14 +0100, Michal Simek wrote: > Hi guys, > > I have a question regarding to sharing generic OF pcie driver between > two architectures MB and ARM Zynq. > Is drivers/pci/pcie location good for it? > Make no sense to have the same driver in two locations. > Is using readl/writel IO functions in this driver the best option > which we can have? > Or is there any other recommendation? > > Also just want to check if it is correct to use pcie device_type. > The rest should be the same with pci description: > (http://devicetree.org/MPC5200:PCI#PCI_Address_Translation). Yes. device_type may be deprecated, but the PCI binding predates that. PowerPC uses pcie in the device type. arch/powerpc/kernel/of_platform.c Some of that powerpc DT PCI support code really should be made generic. g.