aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhuang lin2015-11-17 14:20:09 +0800
committerSimon Glass2015-12-01 08:07:22 -0700
commitcc2244b8fa85b4a8af228617ed7566785dfb1728 (patch)
treea688f3f3f8b7301053262f64270bfc76f98df769 /include
parentabe919ec5487bda93245369eb103b20e182fd8b5 (diff)
rockchip: add timer driver
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> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/rk3288_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index a513ac4f04b..af62227793f 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -22,7 +22,8 @@
#define CONFIG_DISPLAY_BOARDINFO
#define CONFIG_SYS_TIMER_RATE (24 * 1000 * 1000)
-#define CONFIG_SYS_TIMER_COUNTER (TIMER7_BASE + 8)
+#define CONFIG_SYS_TIMER_BASE 0xff810020 /* TIMER7 */
+#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMER_BASE + 8)
#define CONFIG_SPL_FRAMEWORK
#define CONFIG_SPL_LIBCOMMON_SUPPORT