All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@gmail.com>
To: Julien Grall <julien.grall@arm.com>,
	Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>,
	xen-devel@lists.xen.org
Cc: Dirk Behme <dirk.behme@de.bosch.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH] arm64:renesas: Introduce early console for Salvator-X board
Date: Tue, 8 Nov 2016 16:22:33 +0100	[thread overview]
Message-ID: <e1cdd151-e466-6307-7040-2774eaa96bd4@gmail.com> (raw)
In-Reply-To: <b67fe513-d929-ccad-2c65-52fbc725ced6@arm.com>

On 08.11.2016 15:30, Julien Grall wrote:
> Hello Iurii,
>
> Dirk (in CC) sent a similar patch few months ago to add support for
> this board (see [1]).
>
> I didn't ack the patch back then because I wanted to see documentation
> on the wiki to bring up Xen on this board (see [2] for the
> requirements). I didn't see any follow-up since then for this board.
>
> Can one of you write a documentation for this board


Yes, that would be nice.

As mentioned, I couldn't find an 'easy' way to load Xen without 
modifying the firmware (U-Boot or ATF) or using a JTAG debugger. 
Therefore I hesitated to write that documentation.

Maybe Iurii found an easier, more user compatible way?

Best regards

Dirk


and take
> "ownership" on this board?
>
> Regards,
>
> [1]
> https://lists.xenproject.org/archives/html/xen-devel/2016-07/msg00315.html
>
> [2]
> https://lists.xenproject.org/archives/html/xen-devel/2016-07/msg00130.html
>
>
> On 08/11/2016 14:20, Iurii Mykhalskyi wrote:
>> From: Iurii Konovalenko <iurii.konovalenko@globallogic.com>
>>
>> Add support for the "Salvator-X" development board based on R-Car H3
>> SoC
>> which has SCIF compatible UART.
>>
>> Signed-off-by: Iurii Konovalenko <iurii.konovalenko@globallogic.com>
>> Signed-off-by: Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>
>> ---
>>  xen/arch/arm/Rules.mk             |  1 +
>>  xen/arch/arm/arm64/debug-scif.inc | 51
>> +++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 52 insertions(+)
>>  create mode 100644 xen/arch/arm/arm64/debug-scif.inc
>>
>> diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
>> index 569a0ba..7989634 100644
>> --- a/xen/arch/arm/Rules.mk
>> +++ b/xen/arch/arm/Rules.mk
>> @@ -34,6 +34,7 @@ EARLY_PRINTK_fastmodel      :=
>> pl011,0x1c090000,115200
>>  EARLY_PRINTK_exynos5250     := exynos4210,0x12c20000
>>  EARLY_PRINTK_juno           := pl011,0x7ff80000
>>  EARLY_PRINTK_lager          := scif,0xe6e60000
>> +EARLY_PRINTK_salvator       := scif,0xe6e88000
>>  EARLY_PRINTK_midway         := pl011,0xfff36000
>>  EARLY_PRINTK_omap5432       := 8250,0x48020000,2
>>  EARLY_PRINTK_seattle        := pl011,0xe1010000
>> diff --git a/xen/arch/arm/arm64/debug-scif.inc
>> b/xen/arch/arm/arm64/debug-scif.inc
>> new file mode 100644
>> index 0000000..1f4d657
>> --- /dev/null
>> +++ b/xen/arch/arm/arm64/debug-scif.inc
>> @@ -0,0 +1,51 @@
>> +/*
>> + * xen/arch/arm/arm64/debug-scif.inc
>> + *
>> + * SCIF specific debug code
>> + *
>> + * Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>
>> + * Iurii Konovalenko <iurii.konovalenko@globallogic.com>
>> + * Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>
>> + * Copyright (C) 2014-2016, Globallogic.
>> + *
>> + * This program is free software; you can redistribute it and/or
>> modify
>> + * it under the terms of the GNU General Public License as
>> published by
>> + * the Free Software Foundation; either version 2 of the License, or
>> + * (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + */
>> +
>> +#include <asm/scif-uart.h>
>> +
>> +/* SCIF UART wait UART to be ready to transmit
>> + * rb: register which contains the UART base address
>> + * rc: scratch register
>> + */
>> +.macro early_uart_ready xb c
>> +1:
>> +        ldrh   w\c, [\xb, #SCIF_SCFSR]   /* <- SCFSR (status
>> register) */
>> +        tst    w\c, #SCFSR_TDFE          /* Check TDFE bit */
>> +        beq    1b                        /* Wait for the UART to be
>> ready */
>> +.endm
>> +
>> +/* SCIF UART transmit character
>> + * rb: register which contains the UART base address
>> + * rt: register which contains the character to transmit
>> + */
>> +.macro early_uart_transmit xb wt
>> +        strb   \wt, [\xb, #SCIF_SCFTDR]                  /* ->
>> SCFTDR (data register) */
>> +        ldrh   \wt, [\xb, #SCIF_SCFSR]                   /* <-
>> SCFSR (status register) */
>> +        and    \wt, \wt, #(~(SCFSR_TEND | SCFSR_TDFE))   /* Clear
>> TEND and TDFE bits */
>> +        strh   \wt, [\xb, #SCIF_SCFSR]                   /* ->
>> SCFSR (status register) */
>> +.endm
>> +
>> +/*
>> + * Local variables:
>> + * mode: ASM
>> + * indent-tabs-mode: nil
>> + * End:
>> + */
>>
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-11-08 15:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 14:20 [PATCH] arm64:renesas: Introduce early console for Salvator-X board Iurii Mykhalskyi
2016-11-08 14:30 ` Julien Grall
2016-11-08 15:22   ` Dirk Behme [this message]
2016-11-08 15:41     ` Iurii Mykhalskyi
2016-11-09  7:14       ` Dirk Behme
2016-11-09 12:14         ` Julien Grall
2016-11-10  6:54           ` Dirk Behme
2016-11-10  9:25             ` Iurii Mykhalskyi
2016-11-10  9:34               ` Dirk Behme
2016-11-21 17:12                 ` Iurii Mykhalskyi
2016-11-21 17:29                   ` Julien Grall
2016-11-22 10:59                     ` Andrii Anisov
2016-11-22 11:20                       ` Andrii Anisov
2016-11-23 14:00                         ` Iurii Mykhalskyi
2016-11-23 14:15                           ` Andrii Anisov
2016-11-23 14:27                             ` Iurii Mykhalskyi
2016-11-23 14:22                           ` Andrii Anisov
2016-11-25  9:13                             ` Andrii Anisov
2016-11-25 13:44                               ` Iurii Mykhalskyi
2016-11-23 15:04                           ` Julien Grall
2016-11-08 15:48     ` Andrii Anisov

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=e1cdd151-e466-6307-7040-2774eaa96bd4@gmail.com \
    --to=dirk.behme@gmail.com \
    --cc=dirk.behme@de.bosch.com \
    --cc=iurii.mykhalskyi@globallogic.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.