[PATCH 08/10] [ARM] tegra: harmony: Add harmony board file

Linus Walleij linus.ml.walleij at gmail.com
Mon Jun 7 19:47:16 EDT 2010


2010/6/4 Olof Johansson <olof at lixom.net>:

> (...)
> +static struct plat_serial8250_port debug_uart_platform_data[] = {
> +       {
> +               .membase        = IO_ADDRESS(TEGRA_UARTD_BASE),
> +               .mapbase        = TEGRA_UARTD_BASE,
> +               .irq            = INT_UARTD,
> +               .flags          = UPF_BOOT_AUTOCONF,
> +               .iotype         = UPIO_MEM,
> +               .regshift       = 2,
> +               .uartclk        = 216000000/16 * 16,
> +       }, {
> +               .flags          = 0
> +       }
> +};

Ummmm what is this = 216000000/16 * 16?

I think the compiler will optimize that to 216000000 so why not set
it to that.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list