* [U-Boot] DM: uclass for timer
@ 2015-09-08 11:35 Thomas Chou
2015-09-10 2:45 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Chou @ 2015-09-08 11:35 UTC (permalink / raw)
To: u-boot
Hi Simon,
Shall we have a timer class in driver model?
I am trying to get the base address and clock rate of timer from device
tree, and use them for timer_init() in common/board_f.c and lib/time.c .
As almost every board needs a timer, I wonder if it makes sense to use
driver model? Or shall I use fdtdec to do the binding?
timer_init() sits after initf_dm() in common/board_f.c will this work?
Best regards,
Thomas Chou
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] DM: uclass for timer
2015-09-08 11:35 [U-Boot] DM: uclass for timer Thomas Chou
@ 2015-09-10 2:45 ` Simon Glass
2015-09-10 3:11 ` Thomas Chou
0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2015-09-10 2:45 UTC (permalink / raw)
To: u-boot
Hi Thomas,
On 8 September 2015 at 05:35, Thomas Chou <thomas@wytron.com.tw> wrote:
> Hi Simon,
>
> Shall we have a timer class in driver model?
>
> I am trying to get the base address and clock rate of timer from device
> tree, and use them for timer_init() in common/board_f.c and lib/time.c .
>
> As almost every board needs a timer, I wonder if it makes sense to use
> driver model? Or shall I use fdtdec to do the binding?
>
> timer_init() sits after initf_dm() in common/board_f.c will this work?
Yes I guess so. We will need it sooner or later. You could add a
microsecond API also.
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] DM: uclass for timer
2015-09-10 2:45 ` Simon Glass
@ 2015-09-10 3:11 ` Thomas Chou
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Chou @ 2015-09-10 3:11 UTC (permalink / raw)
To: u-boot
Hi Simon,
On 09/10/2015 10:45 AM, Simon Glass wrote:
> Yes I guess so. We will need it sooner or later. You could add a
> microsecond API also.
Thanks for the help. I will try to add a timer uclass soon. I am all new
to the driver model though.
Best regard,
Thomas Chou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-10 3:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-08 11:35 [U-Boot] DM: uclass for timer Thomas Chou
2015-09-10 2:45 ` Simon Glass
2015-09-10 3:11 ` Thomas Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox