[U-Boot] [PATCH v3 1/9] sunxi: add sun7i clocks and timer support.
Marek Vasut
marex at denx.de
Sat Apr 26 20:31:52 CEST 2014
On Friday, April 18, 2014 at 08:05:42 PM, Ian Campbell wrote:
[...]
> +static ulong read_timer(void)
> +{
> + struct sunxi_timer_reg *timers =
> + (struct sunxi_timer_reg *)SUNXI_TIMER_BASE;
> + struct sunxi_timer *timer = &timers->timer[TIMER_NUM];
> + /* The hardware timer counts down, therefore we invert to
> + * produce an incrementing timer. */
This comment doesn't follow coding style.
> + return ~readl(&timer->val);
> +}
[...]
Best regards,
Marek Vasut
More information about the U-Boot
mailing list