linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: haojian.zhuang@linaro.org (Haojian Zhuang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 2/4] ARM: debug: support debug ll on hisilicon soc
Date: Wed, 14 Aug 2013 23:32:18 +0800	[thread overview]
Message-ID: <CAD6h2NS+DW1+iyD4ucNjoLiXqCbFKmW6QYwS7=oUfm0nq7LEdw@mail.gmail.com> (raw)
In-Reply-To: <20130814064424.GI19951@quad.lixom.net>

On 14 August 2013 14:44, Olof Johansson <olof@lixom.net> wrote:
> Hi,
>
>
> On Fri, Jul 26, 2013 at 12:32:13PM +0800, Haojian Zhuang wrote:
>> Support UART0 debug ll on hisilicon Hi3620 SoC.
>>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
>
> By the way, I ended up doing two fixups:
>
>> ---
>>  arch/arm/Kconfig.debug             | 15 +++++++++++++++
>>  arch/arm/include/debug/hisilicon.S | 30 ++++++++++++++++++++++++++++++
>>  2 files changed, 45 insertions(+)
>>  create mode 100644 arch/arm/include/debug/hisilicon.S
>>
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index e401a76..289a248 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -272,6 +272,20 @@ choice
>>                 Say Y here if you want the debug print routines to direct
>>                 their output to UART1 serial port on KEYSTONE2 devices.
>>
>> +     config DEBUG_HI3620_UART
>> +             bool "Hisilicon HI3620 Debug UART"
>> +             depends on ARCH_HI3xxx
>> +             help
>> +               Say Y here if you want kernel low-level debugging support
>> +               on HI3620 UART.
>> +
>> +     config DEBUG_HI3716_UART
>> +             bool "Hisilicon Hi3716 Debug UART"
>> +             depends on ARCH_HI3xxx
>> +             help
>> +               Say Y here if you want kernel low-level debugging support
>> +               on HI3716 UART.
>> +
>>       config DEBUG_MMP_UART2
>
> These are out of alphabetical order, not good. I moved them up right before
> highbank where they should be.
>
>> diff --git a/arch/arm/include/debug/hisilicon.S b/arch/arm/include/debug/hisilicon.S
>> new file mode 100644
>> index 0000000..47ad019
>> --- /dev/null
>> +++ b/arch/arm/include/debug/hisilicon.S
>> @@ -0,0 +1,30 @@
>> +/*
>> + * Early serial output macro for Hisilicon SoC
>> + *
>> + * Copyright (C) 2012-2013 Hisilicon Technologies Co., Ltd.
>> + * Copyright (C) 2012-2013 Linaro Ltd.
>> + *
>> + * Author: Haojian Zhuang <haojian.zhuang@linaro.org>
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> +*/
>> +
>> +#if defined(CONFIG_DEBUG_HI3620_UART)
>> +#define HS_UART_PHYS_BASE    0xfcb00000
>> +#define HS_UART_VIRT_BASE    0xfeb00000
>> +#elif defined(CONFIG_DEBUG_HI3716_UART)
>> +#define HS_UART_PHYS_BASE    0xf8b00000
>> +#define HS_UART_VIRT_BASE    0xfeb00000
>> +#endif
>
> HS_UART_VIRT_BASE is the same, so I moved it outside the ifdef.
>
>
> -Olof

Thanks a lot.

Regards
Haojian

  reply	other threads:[~2013-08-14 15:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-26  4:32 [PATCH v6 0/6] support Hisilicon SoC Haojian Zhuang
2013-07-26  4:32 ` [PATCH v6 1/4] clk: hi3xxx: add clock support Haojian Zhuang
2013-08-09 15:14   ` Mark Rutland
2013-07-26  4:32 ` [PATCH v6 2/4] ARM: debug: support debug ll on hisilicon soc Haojian Zhuang
2013-08-14  6:39   ` Olof Johansson
2013-08-14 15:44     ` Russell King - ARM Linux
2013-08-14 16:25       ` Olof Johansson
2013-08-14 22:54         ` Russell King - ARM Linux
2013-08-14 23:03           ` Olof Johansson
2013-08-15 15:44             ` Kevin Hilman
2013-08-14  6:44   ` Olof Johansson
2013-08-14 15:32     ` Haojian Zhuang [this message]
2013-08-14 15:46       ` Russell King - ARM Linux
2013-08-14 15:50         ` Haojian Zhuang
2013-07-26  4:32 ` [PATCH v6 3/4] ARM: hi3xxx: add board support with device tree Haojian Zhuang
2013-08-09 15:18   ` Mark Rutland
2013-08-14  6:48   ` Olof Johansson
2013-07-26  4:32 ` [PATCH v6 4/4] ARM: hi3xxx: enable hi4511 " Haojian Zhuang
2013-08-09 15:25   ` Mark Rutland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD6h2NS+DW1+iyD4ucNjoLiXqCbFKmW6QYwS7=oUfm0nq7LEdw@mail.gmail.com' \
    --to=haojian.zhuang@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).