diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2021-06-18 06:46:32 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-06-21 14:16:31 +0300 |
commit | 48b545b8018db61ab4978d29c73c16b9fbfad12c (patch) | |
tree | e0af16bb18cc8c57058e2b27000f14c1f55fc908 /arch/powerpc/platforms/microwatt | |
parent | aa9c5adf2f61da39c92280d9336e091852e292ff (diff) | |
download | linux-48b545b8018db61ab4978d29c73c16b9fbfad12c.tar.xz |
powerpc/microwatt: Use standard 16550 UART for console
This adds support to the Microwatt platform to use the standard
16550-style UART which available in the standalone Microwatt FPGA.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/YMwXGCTzedpQje7r@thinks.paulus.ozlabs.org
Diffstat (limited to 'arch/powerpc/platforms/microwatt')
-rw-r--r-- | arch/powerpc/platforms/microwatt/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/microwatt/setup.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/microwatt/Kconfig b/arch/powerpc/platforms/microwatt/Kconfig index b52c869c0eb8..50ed0cedb5f1 100644 --- a/arch/powerpc/platforms/microwatt/Kconfig +++ b/arch/powerpc/platforms/microwatt/Kconfig @@ -6,6 +6,7 @@ config PPC_MICROWATT select PPC_ICS_NATIVE select PPC_ICP_NATIVE select PPC_NATIVE + select PPC_UDBG_16550 help This option enables support for FPGA-based Microwatt implementations. diff --git a/arch/powerpc/platforms/microwatt/setup.c b/arch/powerpc/platforms/microwatt/setup.c index 1c1b7791fa57..0b02603bdb74 100644 --- a/arch/powerpc/platforms/microwatt/setup.c +++ b/arch/powerpc/platforms/microwatt/setup.c @@ -14,6 +14,7 @@ #include <asm/machdep.h> #include <asm/time.h> #include <asm/xics.h> +#include <asm/udbg.h> static void __init microwatt_init_IRQ(void) { @@ -35,5 +36,6 @@ define_machine(microwatt) { .name = "microwatt", .probe = microwatt_probe, .init_IRQ = microwatt_init_IRQ, + .progress = udbg_progress, .calibrate_decr = generic_calibrate_decr, }; |