From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 5/5] arm/early-printk: add Calxeda Midway UART support Date: Fri, 24 May 2013 15:03:27 +0100 Message-ID: <519F732F.7020304@linaro.org> References: <1369403250-9132-1-git-send-email-andre.przywara@calxeda.com> <1369403250-9132-6-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-6-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: > With the help of the previous patches add a stanza to > xen/arch/arm/Rules.mk to specify the UART configuration of the > Calxeda Midway machine. > The information has been taken from the Linux kernel's .dts file. > This can be enabled by adding "CONFIG_EARLY_PRINTK=midway" to > Config.mk. > > Signed-off-by: Andre Przywara Reviewed-by: Julien Grall > --- > docs/misc/arm/early-printk.txt | 1 + > xen/arch/arm/Rules.mk | 5 +++++ > 2 files changed, 6 insertions(+) > > diff --git a/docs/misc/arm/early-printk.txt b/docs/misc/arm/early-printk.txt > index e423cc4..fbc3208 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 > + - midway: printk with the pl011 on Calxeda Midway processors > - fastmodel: printk on ARM Fastmodel software emulators > > The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk, > diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk > index d010c69..422ed04 100644 > --- a/xen/arch/arm/Rules.mk > +++ b/xen/arch/arm/Rules.mk > @@ -59,6 +59,11 @@ EARLY_PRINTK_INIT_UART := y > EARLY_PRINTK_BAUD := 115200 > EARLY_UART_BASE_ADDRESS := 0x12c20000 > endif > +ifeq ($(CONFIG_EARLY_PRINTK), midway) > +EARLY_PRINTK_INC := pl011 > +EARLY_PRINTK_BAUD := 115200 > +EARLY_UART_BASE_ADDRESS := 0xfff36000 > +endif > > ifneq ($(EARLY_PRINTK_INC),) > EARLY_PRINTK := y