Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754096Ab3HQBFx (ORCPT ); Fri, 16 Aug 2013 21:05:53 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:53631 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575Ab3HQBFu (ORCPT ); Fri, 16 Aug 2013 21:05:50 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 72.84.113.162 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/Zy4Iq5SOt5DQmTu+MqC3ZsQz6amwendo= Date: Fri, 16 Aug 2013 16:39:35 -0400 From: Jason Cooper To: Sebastian Hesselbarth Cc: Russell King , Andrew Lunn , Gregory Clement , Thomas Petazzoni , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v1 3/5] ARM: mvebu: add Armada 150 uart to lowlevel debug Message-ID: <20130816203935.GW13964@titan.lakedaemon.net> References: <1376682098-10580-1-git-send-email-sebastian.hesselbarth@gmail.com> <1376682098-10580-4-git-send-email-sebastian.hesselbarth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376682098-10580-4-git-send-email-sebastian.hesselbarth@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3006 Lines: 78 On Fri, Aug 16, 2013 at 09:41:36PM +0200, Sebastian Hesselbarth wrote: > This adds UART0 as found on the Armada 1500 to the lowlevel debug of > mach-mvebu. Unfortunately, default register base addresses for Armada > 370/XP switched from 0xd000000 to 0xf100000. So, we finally end up > in three different lowlevel setups: > > (a) Armada 1500 (possibly also Armada 1000, or MV88DE3xxx in general) > (b) Armada 370/XP with new bootloader mapping at 0xf1000000 and > the other Orion SoCs (Dove, Kirkwood, Orion5x, MV78xx0) > (c) Armada 370/XP with old bootloader mapping at 0xd0000000 > > Now, mach-mvebu has been a Armada 370/XP-only playground for a while > but with great work of Thomas, Gregory, and the others we have moved > almost all drivers to DT. I suggest to clean-up a little and find > some meaningful names for the DEBUG_ Kconfigs. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Russell King > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Gregory Clement > Cc: Thomas Petazzoni > Cc: Arnd Bergmann > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > arch/arm/include/debug/mvebu.S | 26 ++++++++++++++++---------- > 1 file changed, 16 insertions(+), 10 deletions(-) > > diff --git a/arch/arm/include/debug/mvebu.S b/arch/arm/include/debug/mvebu.S > index 6517311..ca41c02 100644 > --- a/arch/arm/include/debug/mvebu.S > +++ b/arch/arm/include/debug/mvebu.S > @@ -11,19 +11,25 @@ > * published by the Free Software Foundation. > */ > > -#ifdef CONFIG_DEBUG_MVEBU_UART_ALTERNATE > -#define ARMADA_370_XP_REGS_PHYS_BASE 0xf1000000 > -#else > -#define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 > +#if defined(CONFIG_MACH_ARMADA_1500) > +#define MVEBU_REGS_PHYS_BASE 0xf7f80000 > +#define MVEBU_REGS_VIRT_BASE 0xf7f80000 > +#define MVEBU_UART0_OFFSET 0x00049000 > +#elif defined(CONFIG_DEBUG_MVEBU_UART) > +#define MVEBU_REGS_PHYS_BASE 0xd0000000 > +#define MVEBU_REGS_VIRT_BASE 0xfec00000 > +#define MVEBU_UART0_OFFSET 0x00012000 > +#else /* CONFIG_DEBUG_MVEBU_UART_ALTERNATE */ > +#define MVEBU_REGS_PHYS_BASE 0xf1000000 > +#define MVEBU_REGS_VIRT_BASE 0xfec00000 > +#define MVEBU_UART0_OFFSET 0x00012000 > #endif We should preserve the default like so: +#elif defined(CONFIG_DEBUG_MVEBU_UART_ALTERNATE) +#define MVEBU_REGS_PHYS_BASE 0xf1000000 +#define MVEBU_REGS_VIRT_BASE 0xfec00000 +#define MVEBU_UART0_OFFSET 0x00012000 +#else /* CONFIG_DEBUG_MVEBU_UART */ +#define MVEBU_REGS_PHYS_BASE 0xd0000000 +#define MVEBU_REGS_VIRT_BASE 0xfec00000 +#define MVEBU_UART0_OFFSET 0x00012000 #endif thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/