From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 6 Nov 2015 15:14:28 +0800 Subject: [U-Boot] [PATCH 04/10] dm: timer: Support 64-bit counter In-Reply-To: <1446732171-7439-5-git-send-email-bmeng.cn@gmail.com> References: <1446732171-7439-1-git-send-email-bmeng.cn@gmail.com> <1446732171-7439-5-git-send-email-bmeng.cn@gmail.com> Message-ID: <563C5354.70600@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 Bin, On 2015?11?05? 22:02, Bin Meng wrote: > There are timers with a 64-bit counter value but current timer > uclass driver assumes a 32-bit one. Introduce a device tree > property "counter-64bit", and modify timer_get_count() in the > timer uclass driver to handle the 32-bit/64-bit conversion > automatically. > > Signed-off-by: Bin Meng > --- Thanks a lot. I tested patches [1-4] on nios2 boards with "ut time" and "sleep". It works fine. I would suggest that we do not need the additional "counter-64bit" property by requiring the timer always return 64 bits count. We can provide an inline func to do the 32/64 conversion for all 32 bits timers. Best regards, Thomas