On Wed, May 8, 2019 at 3:39 AM Jun Nie <jun....@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. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot