* alias variable support
@ 2011-12-02 10:14 Kushwaha Prabhakar-B32579
[not found] ` <071A08F2C6A57E4E94D980ECA553F87441D37C-TcFNo7jSaXM0vywKSws3iq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Kushwaha Prabhakar-B32579 @ 2011-12-02 10:14 UTC (permalink / raw)
To: Devicetree Discuss
Hi,
Is there a way in dts to have alias for a variable just like we have alias for node.
For example for a node "abc"
alias_comp = "comp-2.0"
abc@3100 {
#address-cells = <1>;
#size-cells = <0>;
cell-index = <1>;
compatible = alias_comp
reg = <0x3100 0x100>;
};
Here alias_comp will be replaced by "comp-2.0" during compilation.
Regards,
Prabhakar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: alias variable support
[not found] ` <071A08F2C6A57E4E94D980ECA553F87441D37C-TcFNo7jSaXM0vywKSws3iq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
@ 2011-12-04 23:09 ` David Gibson
0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2011-12-04 23:09 UTC (permalink / raw)
To: Kushwaha Prabhakar-B32579; +Cc: Devicetree Discuss
On Fri, Dec 02, 2011 at 10:14:47AM +0000, Kushwaha Prabhakar-B32579 wrote:
> Hi,
>
> Is there a way in dts to have alias for a variable just like we have alias for node.
>
> For example for a node "abc"
>
>
> alias_comp = "comp-2.0"
>
> abc@3100 {
> #address-cells = <1>;
> #size-cells = <0>;
> cell-index = <1>;
> compatible = alias_comp
> reg = <0x3100 0x100>;
> };
>
> Here alias_comp will be replaced by "comp-2.0" during compilation.
That's not really an alias, or like one.
It is more like a named constant / variable. We don't have support
for this, but it is something we'd like to add to dtc eventually.
It's just that no-one has had time to design, implement and come up
with a decent syntax for it.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-04 23:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-02 10:14 alias variable support Kushwaha Prabhakar-B32579
[not found] ` <071A08F2C6A57E4E94D980ECA553F87441D37C-TcFNo7jSaXM0vywKSws3iq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2011-12-04 23:09 ` David Gibson
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).