From: Ian Campbell Subject: Re: [PATCH] xen/arm: add OMAP5432 UART support for early_printk Date: Thu, 27 Jun 2013 11:06:06 +0100 Message-ID: <1372327566.28443.27.camel@zakaz.uk.xensource.com> References: <1372317602-24810-1-git-send-email-baozich@gmail.com> <1372321363.28443.14.camel@zakaz.uk.xensource.com> <4AA76308-9B5B-49AD-B2B3-E5147361B4C7@gmail.com> <0D289BA5-42FC-423B-871A-9614A02EEE40@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0D289BA5-42FC-423B-871A-9614A02EEE40@gmail.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: Chen Baozi Cc: Bamvor Jian Zhang , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-06-27 at 16:59 +0800, Chen Baozi wrote: > On Jun 27, 2013, at 4:54 PM, Chen Baozi wrote: > > > > > On Jun 27, 2013, at 4:22 PM, Ian Campbell wrote: > > > >> On Thu, 2013-06-27 at 15:20 +0800, Chen Baozi wrote: > >>> To enable it, add "CONFIG_EARLY_PRINTK := omap5432" to Config.mk > >> > >> From the register offsets this looks like it might be a somewhat 8250 > >> compatible UART logic block? > > From TI's data manual, it is said this is a 16C750 compatible UART. So could it be called an 9250 compatible UART? > Sorry, 8250. Phew, I was wondering what a 9250 was ;-) > > > > >> > >> Bamvor also implemented a driver for an 8250 like device on the > >> sun6i[0]. Rather than having multiple drivers for similar platforms I > >> asked him to produce a single configurable 8250 driver. Perhaps you > >> could work together to make sure this works for you both? > > Sure, it is OK for me. > > > >> > >> Thanks, > >> Ian. > >> > >> [0] see "xen/arm: introduce Allwinner sun6i SOC basic support" > >> <1370004814-30686-3-git-send-email-bjzhang@suse.com>. > >> > >>> +ifeq ($(CONFIG_EARLY_PRINTK), omap5432) > >>> +EARLY_PRINTK_INC := omap > >>> +EARLY_PRINTK_INIT_UART := y > >> > >> Does your bootloader not setup the UART? Preferably we would simply > >> inherit that setup (avoids more code and mismatched baud rate etc). > > Yes, it does. I thought re-initilization is necessary and found that is also ok to inherit the u-boot setup just after finishing the patch. Well, in this case, things are much easier :-) > > > > Thanks, > > > > Baozi > > > >> > >> Ian. > >> > > >