From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 8 Sep 2015 19:35:21 +0800 Subject: [U-Boot] DM: uclass for timer Message-ID: <55EEC7F9.7010205@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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