From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 4/5] arm/early-printk: add support for ARM Fastmodel Date: Fri, 24 May 2013 15:03:11 +0100 Message-ID: <519F731F.7050204@linaro.org> References: <1369403250-9132-1-git-send-email-andre.przywara@calxeda.com> <1369403250-9132-5-git-send-email-andre.przywara@calxeda.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369403250-9132-5-git-send-email-andre.przywara@calxeda.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: Andre Przywara Cc: xen-devel@lists.xen.org, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 05/24/2013 02:47 PM, Andre Przywara wrote: > Though the ARM Fastmodel software emulator mimics a Versatile Express > board, the boot process is different compared to the real hardware, > so the early printk differs slightly. Create a new early-printk > target to model this correctly. > > Signed-off-by: Andre Przywara Reviewed-by: Julien Grall > --- > docs/misc/arm/early-printk.txt | 1 + > xen/arch/arm/Rules.mk | 6 ++++++ > 2 files changed, 7 insertions(+) > > diff --git a/docs/misc/arm/early-printk.txt b/docs/misc/arm/early-printk.txt > index 9220113..e423cc4 100644 > --- a/docs/misc/arm/early-printk.txt > +++ b/docs/misc/arm/early-printk.txt > @@ -11,6 +11,7 @@ CONFIG_EARLY_PRINTK=mach > where mach is the name of the machine: > - vexpress: printk with pl011 for versatile express > - exynos5250: printk with the second UART > + - fastmodel: printk on ARM Fastmodel software emulators > > The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk, > see there when adding support for new machines. > diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk > index 902bddb..d010c69 100644 > --- a/xen/arch/arm/Rules.mk > +++ b/xen/arch/arm/Rules.mk > @@ -47,6 +47,12 @@ EARLY_PRINTK_INC := pl011 > EARLY_PRINTK_BAUD := 38400 > EARLY_UART_BASE_ADDRESS := 0x1c090000 > endif > +ifeq ($(CONFIG_EARLY_PRINTK), fastmodel) > +EARLY_PRINTK_INC := pl011 > +EARLY_PRINTK_INIT_UART := y > +EARLY_PRINTK_BAUD := 115200 > +EARLY_UART_BASE_ADDRESS := 0x1c090000 > +endif > ifeq ($(CONFIG_EARLY_PRINTK), exynos5250) > EARLY_PRINTK_INC := exynos4210 > EARLY_PRINTK_INIT_UART := y