Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752125Ab2KLIIF (ORCPT ); Mon, 12 Nov 2012 03:08:05 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:59657 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255Ab2KLIIE (ORCPT ); Mon, 12 Nov 2012 03:08:04 -0500 Date: Mon, 12 Nov 2012 10:01:34 +0200 From: Felipe Balbi To: Constantine Shulyupin CC: Felipe Balbi , Tony Lindgren , Santosh Shilimkar , , , , , , , , Keshava Munegowda Subject: Re: Porting board initialization for fdt Message-ID: <20121112080134.GB25465@arwen.pp.htv.fi> Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2464 Lines: 64 --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Nov 12, 2012 at 12:38:37AM +0200, Constantine Shulyupin wrote: > What is architecture and the best strategy to port board initialization t= o fdt? >=20 > Let's see for example omap4_ehci_init and usbhs_bdata @ > arch/arm/mach-omap2/board-omap4panda.c. before getting rid of platform_data, we need to switch over to proper frameworks for muxing, clock, etc. In case of EHCI, pinctrl migration is currently under development by Keshava (in Cc). After that we need to take a look at platform and see if there are any function pointers in there, if there are, those need to be removed. > How to perform board specific initializations? > Can omap4_ehci_init be converted to probe function of new platform > driver omap4_ehci? yeah, that function is actually wrong. First, that GPIO pin belongs to the HUB driver, not the EHCI driver. Second, those clocks belong to the PHY, not EHCI either. Before those details are cleaned up, we will always have hacky solutions which will break in one way or another. When those cleanups are done, conversion to FDT is not a problem at all. --=20 balbi --MfFXiAuoTsnnDAfZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJQoKzeAAoJEIaOsuA1yqREVr0P/2t4Asi3h/ntLrVmmWPAYP4M mXVTtO59w3j+P2MT+qpbPo0Cqr2JJAX++spTI5tRk+aALcoquExtTn3Av80+UfvD C6cjKqd/MUnJleqqZX+0UmbnK+JHX0H5qrbxOz6XLmPaIoWv9Oe9oF8VnLexR5NB 4TTJdYyqz3zPBmN/dKeeRR6K2sy5Flvq1ufzAPx9JAAAcPz0m3r9vCBevFPQ0P8K KN+syhq4JiFQ74InUuADYmdf4eU3hI2e+zJMFQtSKuXO0MF0USymrOq4mTMsAf27 msunMpPZ0Yb+DjdIAZGWI2lSwi05shK0TC84m5KIFV1mCAyCWIHNFPp9RuGJ6U6R w7hThNSc8a2k51QOmEd4VkEdp56/2zeMVHzS+zIF5jvsZv9Q8oAmF8jQ+DgMttnD H/YFCzaJ+CVgnBmpXJGLmn9eeCjvjbiCxtx6R1bdLcfebjQk2mBetNHzOZUp7RoC NKU0fija4FR9YMp2nSF/4ur8ezq3XtUkCjpMaq/3bz7yzfuAxg6U0LRUjWl2Iscj H8BVM5QPgE9humMUekRE4yZVrd6ypX1y8/xVG5BYPU4E4FZrBIy+6hF0sE6IHWLU jhWqJgk8qUn1/2+K73jrBFjN1d6/uZci5CILeLsmbthXA0/1yoosLrGR2I0My953 dPC/aQLJesRQLAHCNE1i =tg7Z -----END PGP SIGNATURE----- --MfFXiAuoTsnnDAfZ-- -- 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/