[U-Boot] [PATCH v4 3/8] pico-imx7d: Correct uart clock root

Fabio Estevam festevam at gmail.com
Thu May 30 23:56:33 UTC 2019


On Wed, May 8, 2019 at 3:39 AM Jun Nie <jun.nie at linaro.org> wrote:

> +#if (CONFIG_CONS_INDEX == 0)
> +#define UART_CLK_ROOT UART1_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 1)
> +#define UART_CLK_ROOT UART2_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 2)
> +#define UART_CLK_ROOT UART3_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 3)
> +#define UART_CLK_ROOT UART4_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 4)
> +#define UART_CLK_ROOT UART5_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 5)
> +#define UART_CLK_ROOT UART6_CLK_ROOT
> +#elif (CONFIG_CONS_INDEX == 6)
> +#define UART_CLK_ROOT UART7_CLK_ROOT

I remember I commented about this before: this looks ugly.

We don't do this on other i.MX devices.


More information about the U-Boot mailing list