]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/arm: Add early printk support for SCIFA compatible UARTs
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Thu, 2 May 2019 17:00:22 +0000 (20:00 +0300)
committerJulien Grall <julien.grall@arm.com>
Thu, 16 May 2019 15:44:08 +0000 (16:44 +0100)
This patch makes possible to use existing early prink code
for Renesas "Stout" board based on R-Car H2 SoC (SCIFA).

The "EARLY_PRINTK_VERSION" for that board should be 'A':
CONFIG_EARLY_PRINTK=scif,0xe6c40000,A

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/arm32/debug-scif.inc

index 6f60e015c0a9f667a974842b32f17d46aea7d93e..3f01c909c2386a7391f41e9a973a3f57c0e19bca 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * xen/arch/arm/arm32/debug-scif.inc
  *
- * SCIF specific debug code
+ * SCIF(A) specific debug code
  *
  * Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>
  * Copyright (C) 2014, Globallogic.
@@ -22,6 +22,9 @@
 #ifdef EARLY_PRINTK_VERSION_NONE
 #define STATUS_REG    SCIF_SCFSR
 #define TX_FIFO_REG   SCIF_SCFTDR
+#elif EARLY_PRINTK_VERSION_A
+#define STATUS_REG    SCIFA_SCASSR
+#define TX_FIFO_REG   SCIFA_SCAFTDR
 #endif
 
 /*