lkml.org 
[lkml]   [2012]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] pinctrl: pinctrl-imx: add imx pinctrl core driver
On 04/15/2012 07:47 PM, Shawn Guo wrote:
> On Sun, Apr 15, 2012 at 07:29:58PM +0200, Sascha Hauer wrote:
> ...
>> How far are we away from getting macro support? Do we already agree that we
>> want to have such a feature? I remember I saw someone mentioning it,
>> maybe even by piping the devicetree though CPP, but I didn't follow the
>> further discussion.
>>
> My understanding is we agree that we want to have this feature, and
> are approaching it slowly, but I do not have the exact status.
> Stephen may want to give an update, please?

The status is:

* I proposed a "/define/ var 5" syntax to dtc.

* It was at least temporarily rejected because it wasn't clear whether
that syntax would fit into whatever future expression/language/...
support dtc might acquire in the future.

* However, there has been a long-standing impasse on defining what the
future expression/language/... support in dtc will look like.

* In an attempt to move that forward, I took one of David Gibson's old
integer expressions patches (that allows math within cells in
properties), updated that to ToT, and now it's checked in. This only
allows match with literals, not variables/symbols/..., but is hopefully
a step in the right direction.

* The next step is to revisit my /define/ patch on top of the integer
expressions patch. Perhaps the presence of integer expressions is enough
to know whether /define/ is a reasonable syntax, perhaps not. We'll have
to see when I update and repost it.

In summary: There is some progress, but it's slow. I wouldn't rely on
seeing /define/ or similar support in dtc in any particular near-term
timescale.


\
 
 \ /
  Last update: 2012-04-16 20:03    [W:0.053 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site