Re: [U-Boot] [PATCH] arm: ls1021a: Add timer_init() in board_init_f for SPL

2018-12-10 Thread York Sun
On 10/16/18 1:23 AM, Alison Wang wrote: > I2C is used to access DDR SPD in the DDR initialization for SPL. In > i2c_write process, get_timer() will be called. In board_init_f for SPL, > timer_init() is not called before. The system counter is not enabled and > the counter frequency is not set to 12

[U-Boot] [PATCH] arm: ls1021a: Add timer_init() in board_init_f for SPL

2018-10-16 Thread Alison Wang
I2C is used to access DDR SPD in the DDR initialization for SPL. In i2c_write process, get_timer() will be called. In board_init_f for SPL, timer_init() is not called before. The system counter is not enabled and the counter frequency is not set to 12.5MHz in SPL. The parameters for do_div() are ze