Re: allwinner h616 + serial console glitch

From: titus <titus_at_edc.ro>
Date: Tue, 27 Jun 2023 09:08:56 UTC
it may have to with this
> 
>         /* UART_BGR_REG Enabling the gate enable weir behavior ... */
>         /* CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb2", 0x90c, 0) */
>         /* CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x90c, 1) */
>         /* CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x90c, 2) */
>         /* CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x90c, 3) */
this is from the ccu_h6.c clock driver
i had them enabled for the h616 code (now i commented it out and it works)
thanks for the clock idea

> On Jun 27, 2023, at 10:53 AM, Marcin Cieslak <saper@saper.info> wrote:
> 
> On Tue, 27 Jun 2023, titus wrote:
> 
>>> #  stty -a
>>> speed 115384 baud; 0 rows; 0 columns;
> 
>   ^^^^^^^^^^^^
> 
> looks like you have a clock problem, either the base UART clock or the divisor
> are not quite right. Probably you want to have 115200 here, so it is slightly off.
> 
> (Just guessing, never had such an issue before)
> 
> Marcin