linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Porting board initialization for fdt
@ 2012-11-11 22:38 Constantine Shulyupin
  2012-11-12  8:01 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Constantine Shulyupin @ 2012-11-11 22:38 UTC (permalink / raw)
  To: Felipe Balbi, Tony Lindgren, Santosh Shilimkar, nsekhar,
	linux-kernel, linux-arm-kernel, linux-omap, linux, tim.bird,
	pandaboard

What is architecture and the best strategy to port board initialization to fdt?

Let's see for example omap4_ehci_init and usbhs_bdata @
arch/arm/mach-omap2/board-omap4panda.c.

How to perform board specific initializations?
Can omap4_ehci_init be converted to probe function of new platform
driver  omap4_ehci?
Where and how define GPIO, clock?
Should it be defined in of_dev_auxdata or in fdt?

Thanks

-- 
Constantine Shulyupin
http://www.MakeLinux.com/
Embedded Linux Systems

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Porting board initialization for fdt
  2012-11-11 22:38 Porting board initialization for fdt Constantine Shulyupin
@ 2012-11-12  8:01 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2012-11-12  8:01 UTC (permalink / raw)
  To: Constantine Shulyupin
  Cc: Felipe Balbi, Tony Lindgren, Santosh Shilimkar, nsekhar,
	linux-kernel, linux-arm-kernel, linux-omap, linux, tim.bird,
	pandaboard, Keshava Munegowda

[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

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 to fdt?
> 
> 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.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-12  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 22:38 Porting board initialization for fdt Constantine Shulyupin
2012-11-12  8:01 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).