Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965699AbbKDUkX (ORCPT ); Wed, 4 Nov 2015 15:40:23 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:49490 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965365AbbKDUkW (ORCPT ); Wed, 4 Nov 2015 15:40:22 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Mans Rullgard , Russell King , linux-kernel@vger.kernel.org Subject: Re: [RESEND][PATCH] ARM: debug: add support for Palmchip 16550-like UART Date: Wed, 04 Nov 2015 21:39:46 +0100 Message-ID: <3941204.6gDbSNijjW@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1445950678-16097-1-git-send-email-mans@mansr.com> References: <1445950678-16097-1-git-send-email-mans@mansr.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:7FO3eeIQd+uMnbs70xv91+cJB2uVrZUtUGg73HT71cu2bGs6Sf4 Wqo3Q3H3ajKy25Mc1pCn1qLvwgiGOMJHzmV0smbjnhGIotgSfaagwk56loGsbRVgqRc+QcR QuUfi410klkx6qRNtX5bo0q/cgvXqTF2crrwsv4qry5shS3aO/6IBvZDtaugNVbWfiUL+SS 37wJtSi7P+q1DnuTBaVtw== X-UI-Out-Filterresults: notjunk:1;V01:K0:D9OfjPd6qQE=:nYjdE1bqO1CVhV9sfvXRQ6 IOoUUSsXrc1fMZC/K1b2Kru6yavZXCAmZeO+uM107zvFnKRrON6orm6SCH91O/4ymN8NpPRcU GPETcyOnqooLj9dzUBq3KD+RqXHhDh06howYOLhTzTEjttL8XDy1HOPEAl/8YsXreRZ+URoF8 MfWu34+YUBkruO9srbZhFV9AN2Z48jOuWax0JheYeR4B6mIaz26w7N3ErVuAzRKWA7ZMynxH7 8FWFmOKd5xOEChLup8ij2nZv8pbxfniVHpCLbWK7IY8jXKEHqx/ScQUPmiuyaYR+TihcPJc1F 9p3nInb+ugYerMfXUJaTWCJZeog8xbKasKFTFLGujDhTLbG3GTQLXT+Y++Br4Xu1znQhIkbvS ZuQ2mGS/xa7KSLFo44na3dpJg6ddG+kJ1lE/2TTSByI0x1VvietRVB8up3bbX7YMBvLmIa7Zx wfAlRoThF6syGdIb4iKSxvBUJZt72RAEgt6cL2NwvAcORwuUz215kkEYajZUyuUg6UlGWWjP8 MdA8GZO7KJZPQizbuGz3Fi266izKY0U5rvmr5b2c30xCFYkAHf9yRqzod9M2qFwOLiWMsIzAO yB0L0ggUFsgAWbjm2UDT1vwnMm/GW7gce0oQDMK0z+RmasPAxs2iEnFQPFzxaAt+dLW4DXCG1 YY0WarMwHBAGk68177bGdqt6yWWHnoke4SQig1ywfYIFVLM40Yvnd76f1yh8OdETbX/04IfwQ a2KldxS9CMYf+FvX Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 901 Lines: 47 On Tuesday 27 October 2015 12:57:57 Mans Rullgard wrote: > --- a/arch/arm/include/debug/8250.S > +++ b/arch/arm/include/debug/8250.S > @@ -9,6 +9,18 @@ > */ > #include > > +#ifdef CONFIG_DEBUG_UART_8250_PALMCHIP > + > +#undef UART_TX > +#undef UART_LSR > +#undef UART_MSR > + > +#define UART_TX 1 > +#define UART_LSR 7 > +#define UART_MSR 8 > + > +#endif > Maybe use a separate file instead of an #ifdef? Something like arch/arm/include/debug/8250-palmchip.S: #include #undef UART_TX #undef UART_LSR #undef UART_MSR #define UART_TX 1 #define UART_LSR 7 #define UART_MSR 8 #include "8250.S" Arnd -- 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/