
On 6 November 2015 at 01:53, Lin Huang hl@rock-chips.com wrote:
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL.
Signed-off-by: Lin Huang hl@rock-chips.com
Changes in v1: None Changes in v2:
- add udelay function
Changes in v3:
- fix some coding style
arch/arm/include/asm/arch-rockchip/timer.h | 22 ++++++++++++++ arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/board-spl.c | 21 ++----------- arch/arm/mach-rockchip/rk_timer.c | 48 ++++++++++++++++++++++++++++++ include/configs/rk3288_common.h | 3 +- 5 files changed, 75 insertions(+), 20 deletions(-) create mode 100644 arch/arm/include/asm/arch-rockchip/timer.h create mode 100644 arch/arm/mach-rockchip/rk_timer.c
Acked-by: Simon Glass sjg@chromium.org