RE: [PATCH 1/3] riscv: Add timer_get_us() for tracing

2020-11-03 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Rick Chen >Sent: 21 October 2020 08:58 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Anup Patel ; Sagar Kadam >; Bin Meng ; Lukas Auer >; Sean Anderson ; rick >; Alan Kao >Subject: Re: [PATCH 1/3] riscv:

Re: [PATCH 1/3] riscv: Add timer_get_us() for tracing

2020-10-20 Thread Rick Chen
Hi Pragnesh > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Friday, September 11, 2020 2:48 PM > To: Pragnesh Patel > Cc: U-Boot Mailing List; Atish Patra; Anup Patel; Sagar Kadam; Rick Jian-Zhi > Chen(陳建志); Paul Walmsley; Bin Meng; Lukas Auer; Sean Anderson > Subject: Re:

Re: [PATCH 1/3] riscv: Add timer_get_us() for tracing

2020-09-11 Thread Bin Meng
Hi Pragnesh, On Mon, Aug 24, 2020 at 10:45 PM Pragnesh Patel wrote: > > timer_get_us() will use timer_ops->get_count() function for timer counter. > For S-mode U-Boot, CSR_TIMEH and CSR_TIME will provide a timer counter and > For M-mode U-Boot, mtime register will provide the same. > >

[PATCH 1/3] riscv: Add timer_get_us() for tracing

2020-08-24 Thread Pragnesh Patel
timer_get_us() will use timer_ops->get_count() function for timer counter. For S-mode U-Boot, CSR_TIMEH and CSR_TIME will provide a timer counter and For M-mode U-Boot, mtime register will provide the same. Signed-off-by: Pragnesh Patel --- arch/riscv/lib/Makefile | 1 + arch/riscv/lib/timer.c