Re: [PATCH RFC 3/4] powerpc/microwatt: Add early debug UART support for Microwatt

2020-05-11 Thread Michael Ellerman
Paul Mackerras writes: > Currently microwatt-based SoCs come with a "potato" UART. This > adds udbg support for the potato UART, giving us both an early > debug console, and a runtime console using the hvc-udbg support. Can y'all get a real UART? There's more code here than in the platform

Re: [PATCH RFC 3/4] powerpc/microwatt: Add early debug UART support for Microwatt

2020-05-11 Thread Segher Boessenkool
Hi! On Sat, May 09, 2020 at 03:03:40PM +1000, Paul Mackerras wrote: > + __asm__ volatile("mtmsrd %3,0; ldcix %0,%1,%2; mtmsrd %4,0" > + : "=r" (val) : "b" (potato_uart_base), "r" (offset), > +"r" (msr & ~MSR_DR), "r" (msr)); That should be

[PATCH RFC 3/4] powerpc/microwatt: Add early debug UART support for Microwatt

2020-05-08 Thread Paul Mackerras
Currently microwatt-based SoCs come with a "potato" UART. This adds udbg support for the potato UART, giving us both an early debug console, and a runtime console using the hvc-udbg support. Signed-off-by: Paul Mackerras --- arch/powerpc/Kconfig.debug | 6 ++