[U-Boot] [PATCH] microblaze: Do not call timer init that early

Michal Simek michal.simek at xilinx.com
Thu Jul 12 06:44:22 UTC 2018


Hi Simon,

On 11.7.2018 22:13, Simon Glass wrote:
> Hi Michal,
> 
> On 11 July 2018 at 08:32, Michal Simek <michal.simek at xilinx.com> wrote:
>> Timer needs to be converted to DM but as of now it can't be called so
>> early because intc controller is not ready. Call it later in board_r.c.
>> Before this patch timer_init is called twice which is wrong.
>>
>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>> ---
>>
>>  common/board_f.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Instead of this, can you change your timer_init() function to check
> GD_FLG_RELOC in gd->flags and decide whether to init now or later?
> 
> We want to get rid of all arch-specific #ifdefs in board_f/r.c

Sure not a problem. v2 sent.

Thanks,
Michal



More information about the U-Boot mailing list