]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: timer: update for 32/64bit-aware OF_PLATDATA
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 14 Aug 2017 17:05:31 +0000 (19:05 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:37 +0000 (20:40 +0200)
commitd26554ee57f886d33fa0402bef0a26e427109945
tree3ba3de00f67b6ec4c2c750a027d37e1f3017b3c4
parent33f378d43c829dba79a8253e64235e4987e261de
rockchip: timer: update for 32/64bit-aware OF_PLATDATA

With dtoc emitting fdt64_t for addresses (and region sizes), the array
indices for accessing the reg[] array needs to be adjusted.  This
adjusts the Rockchip DM timer driver to correctly handle OF_PLATDATA
given this new structure layout.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/rockchip_timer.c