All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] DM: uclass for timer
Date: Tue, 8 Sep 2015 19:35:21 +0800	[thread overview]
Message-ID: <55EEC7F9.7010205@wytron.com.tw> (raw)

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

             reply	other threads:[~2015-09-08 11:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-08 11:35 Thomas Chou [this message]
2015-09-10  2:45 ` [U-Boot] DM: uclass for timer Simon Glass
2015-09-10  3:11   ` Thomas Chou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55EEC7F9.7010205@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.