]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3188: use DM timer instead of rk_timer
authorKever Yang <kever.yang@rock-chips.com>
Wed, 18 Apr 2018 03:13:46 +0000 (11:13 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 25 Apr 2018 20:20:06 +0000 (22:20 +0200)
Disable rk_timer as SYS timer and use DM timer instead,
so that we can get a better timer framework, the rk_timer
is going to be clean after we conver to use DM timer or
ARM arch/generic timer.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/Makefile
arch/arm/mach-rockchip/rk3188-board-spl.c
configs/rock_defconfig
include/configs/rk3188_common.h

index e1b0519b1f4c44538c8a9b5918a176d2a2650a88..096dbac25b2b0586c193fd770258d85b876deac0 100644 (file)
@@ -40,8 +40,10 @@ endif
 obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
 
 ifndef CONFIG_ARM64
+ifndef CONFIG_ROCKCHIP_RK3188
 obj-y += rk_timer.o
 endif
+endif
 
 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
 obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
index 74771d3a0b04f33a08d2d4c46f20d115c589ec70..3ccc4f120547c89fb764e93f51e9592538a2a65e 100644 (file)
@@ -131,8 +131,6 @@ void board_init_f(ulong dummy)
                hang();
        }
 
-       rockchip_timer_init();
-
        ret = rockchip_get_clk(&dev);
        if (ret) {
                debug("CLK init failed: %d\n", ret);
index c4a236ccf63ebc8fd1793c68edb7e05f04a2c24e..91129855001f22872ba95eb80296a84547cdbb29 100644 (file)
@@ -5,6 +5,9 @@ CONFIG_ARCH_ROCKCHIP=y
 CONFIG_SYS_TEXT_BASE=0x60000000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_ROCKCHIP_RK3188=y
+CONFIG_TIMER=y
+CONFIG_SPL_TIMER=y
+CONFIG_ROCKCHIP_TIMER=y
 CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
 CONFIG_TARGET_ROCK=y
 CONFIG_SPL_STACK_R_ADDR=0x60080000
index 94f8cda8532009496489c721eea22cc94911440d..e07facd9c30609d7085536a4bf19fdf4e843810c 100644 (file)
 #define CONFIG_SYS_MALLOC_LEN          (32 << 20)
 #define CONFIG_SYS_CBSIZE              1024
 
-#define CONFIG_SYS_TIMER_RATE          (24 * 1000 * 1000)
-#define CONFIG_SYS_TIMER_BASE          0x2000e000 /* TIMER3 */
-#define CONFIG_SYS_TIMER_COUNTER       (CONFIG_SYS_TIMER_BASE + 8)
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
-
 #define CONFIG_SYS_NS16550_MEM32
 
 #ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM