Re: [PATCH v2 2/2] powerpc/mpic: add global timer support

From
Scott Wood <hidden>
Date
2012-08-13 17:37:03
Reply to
Wang Dongsheng-B40534, 2012-08-13
On 08/13/2012 01:18 AM, Wang Dongsheng-B40534 wrote:
quoted
quoted
+	p = of_get_property(np, "available-ranges", &len);
+	if (p && len % (2 * sizeof(u32)) != 0) {
+		pr_err("%s: malformed fsl,available-ranges property.\n",
+				np->full_name);
+		return -EINVAL;
+	}
You need to support fsl,available-ranges since that's in an accepted
binding and people could have partitioned setups already using it.
[Wang Dongsheng] FSL chip or OPEN-PIC specification(Only a group)
in each group only four timer. This is unified. So i use a generic name.
I think there is not compatible with existing mpic timer nodes.
We need to be compatible with existing trees, so you'd need to check for
both -- but I think any further discussion of the details is premature
until we decide whether this is worthwhile to begin with (both the
support of non-FSL timers, and the creation of a new device tree binding
which will not be implemented by many of the machines that have non-FSL
openpic because they run real Open Firmware).

-Scott
Thread (18 messages) 18 messages, 5 authors, last reply 2012-08-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help