From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC 18/29] xen/arm: add generic UART to get the device in the device tree Date: Tue, 30 Apr 2013 14:37:57 +0100 Message-ID: <517FC935.2010601@linaro.org> References: <1367250707.3142.360.camel@zakaz.uk.xensource.com> <517EACD3.6060107@linaro.org> <1367312968.3142.436.camel@zakaz.uk.xensource.com> <1367325684.3142.512.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1367325684.3142.512.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Anthony Perard , "patches@linaro.org" , Stefano Stabellini , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 04/30/2013 01:41 PM, Ian Campbell wrote: > > >> Couldn't it also hardcode a call to a "is this a dt serial >> alias" >> function? >> >> >> Indeed. Can we assume Xen on Arm will use only one UART? We can modify >> the behaviour later. > > This seems acceptable to me. >> >> > If I understand your suggestion, you suggest to use >> console=myserial >> > where *myserial* is the alias on the DTB, right? >> >> >> Right. >> >> > In this case the name could clash with the hardcoded ones in >> Xen that is not good. >> >> >> console=dt: ? Or to be honest I'm not sure that having >> the dt >> aliases shadow the Xen hardcoded ones would be a bad thing -- >> the x86 >> centric com definition hardcoded in Xen is hardly likely to >> be useful >> on ARM or any DT using platform. >> >> >> I prefer dt: but how do we parse the configuration for the >> UART? >> >> Do we use dt:=configuration on the command line? In this case >> I don't see function to retrieve a non-defined parameters on the >> command line. > > Hrm, yes. > > Perhaps dtuart=, applied to whichever dt: you choose? > >> We should also take care about video card. In the future, the devices >> will be retrieved from the DTS. > > In that case perhaps: console=dtuart: and =dtfb:? Sounds good for me. I will rework the patch with that. -- Julien