From: Ian Campbell Subject: Re: [PATCH V1 22/29] xen/arm: Create a fake timer node in dom0 device tree Date: Tue, 10 Sep 2013 14:02:51 +0100 Message-ID: <1378818171.21748.119.camel@kazak.uk.xensource.com> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> <1377701263-3319-23-git-send-email-julien.grall@linaro.org> <1378727465.19967.79.camel@kazak.uk.xensource.com> <522EFAD6.2010708@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <522EFAD6.2010708@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, andre.przywara@linaro.org, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-10 at 11:56 +0100, Julien Grall wrote: > On 09/09/2013 12:51 PM, Ian Campbell wrote: > > On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote: > > [...] > >> + static const struct dt_device_match timer_ids[] __initconst = > >> + { > >> + DT_MATCH_COMPATIBLE("arm,armv7-timer"), > >> + DT_MATCH_COMPATIBLE("arm,armv8-timer"), > >> + { /* sentinel */ }, > >> + }; > > [...] > >> @@ -588,6 +649,8 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo, > >> DT_MATCH_COMPATIBLE("arm,psci"), > >> DT_MATCH_PATH("/cpus"), > >> DT_MATCH_COMPATIBLE("arm,cortex-a15-gic"), > >> + DT_MATCH_COMPATIBLE("arm,armv7-timer"), > >> + DT_MATCH_COMPATIBLE("arm,armv8-timer"), > > > > Both of these now need to be kept in sync with time.c. Can we find a > > better way? > > What about the same solution as for the GIC? Sure.