<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>I have read the
Documentation/powerpc/booting-without-of.txt and I am still not clear on how
manifest constants in platform_get_resource() get translated to items in dts
file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009>Example:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>in
drivers/ide/legacy/ide_platform.c there is code that looks like
this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009> res_base =
platform_get_resource(pdev, IORESOURCE_IO,
0);<BR> res_alt =
platform_get_resource(pdev, IORESOURCE_IO, 1);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009> if
(!res_base || !res_alt)
{<BR>
res_base = platform_get_resource(pdev, IORESOURCE_MEM,
0);<BR>
res_alt = platform_get_resource(pdev, IORESOURCE_MEM,
1);<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>If I want to specify
IORESOURCE_MEM (0) and IORESOURCE_MEM ( 1) addresses in my board specific what
statements do I need to include in my dts file?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>I have tried
including them in memory {} section of dts and that doesn't
work.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>Would appreciate
help/pointer.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798033617-13042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>/Subodh
Nijsure</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=798033617-13042009>(Standard
Disclaimers Apply) </DIV></SPAN></FONT></FONT></DIV></BODY></HTML>