Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-04 Thread Tony Dinh
Hi Michael, On Sun, Sep 4, 2022 at 1:54 AM Michael Walle wrote: > > Am 2022-09-04 02:02, schrieb Tony Dinh: > > Hi Stefan, > > > > Sorry, that message was prematurely sent (fat finger). Please see the > > continuation below. > > > > On Sat, Sep 3, 2022 at 4:43 PM Tony Dinh wrote: > >> > >> Hi

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-04 Thread Pali Rohár
On Saturday 03 September 2022 19:36:03 Tony Dinh wrote: > Hi Pali, > > On Sat, Sep 3, 2022 at 6:08 PM Pali Rohár wrote: > > > > On Saturday 03 September 2022 17:38:01 Tony Dinh wrote: > > > Hi Pali, > > > > > > Is there a way to get the CPU frequency from the board upon start up? > > > > > >

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-04 Thread Michael Walle
Am 2022-09-04 02:02, schrieb Tony Dinh: Hi Stefan, Sorry, that message was prematurely sent (fat finger). Please see the continuation below. On Sat, Sep 3, 2022 at 4:43 PM Tony Dinh wrote: Hi Stefan, On Sat, Sep 3, 2022 at 3:44 AM Stefan Roese wrote: > > Hi Tony, > > On 03.09.22 11:44,

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Tony Dinh
Hi Pali, On Sat, Sep 3, 2022 at 6:08 PM Pali Rohár wrote: > > On Saturday 03 September 2022 17:38:01 Tony Dinh wrote: > > Hi Pali, > > > > Is there a way to get the CPU frequency from the board upon start up? > > > > Thanks, > > Tony > > Hello! Each SoC has either fixed CPU frequency or has some

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Pali Rohár
On Saturday 03 September 2022 17:38:01 Tony Dinh wrote: > Hi Pali, > > Is there a way to get the CPU frequency from the board upon start up? > > Thanks, > Tony Hello! Each SoC has either fixed CPU frequency or has some bits in SAR register which say on which frequency is CPU running. SAR bits

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Tony Dinh
Hi Pali, On Sat, Sep 3, 2022 at 5:02 PM Tony Dinh wrote: > > Hi Stefan, > > Sorry, that message was prematurely sent (fat finger). Please see the > continuation below. > > On Sat, Sep 3, 2022 at 4:43 PM Tony Dinh wrote: > > > > Hi Stefan, > > > > On Sat, Sep 3, 2022 at 3:44 AM Stefan Roese

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Tony Dinh
Hi Stefan, Sorry, that message was prematurely sent (fat finger). Please see the continuation below. On Sat, Sep 3, 2022 at 4:43 PM Tony Dinh wrote: > > Hi Stefan, > > On Sat, Sep 3, 2022 at 3:44 AM Stefan Roese wrote: > > > > Hi Tony, > > > > On 03.09.22 11:44, Tony Dinh wrote: > > > Hi

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Tony Dinh
Hi Stefan, On Sat, Sep 3, 2022 at 3:44 AM Stefan Roese wrote: > > Hi Tony, > > On 03.09.22 11:44, Tony Dinh wrote: > > Hi Stefan, > > > > On Thu, Sep 1, 2022 at 11:25 PM Stefan Roese wrote: > >> > >> Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE > >> enabled, like

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Stefan Roese
Hi Tony, On 03.09.22 11:44, Tony Dinh wrote: Hi Stefan, On Thu, Sep 1, 2022 at 11:25 PM Stefan Roese wrote: Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE enabled, like pogo_v4. Signed-off-by: Stefan Roese --- v2: - Change timer_get_boot_us() to use the timer_early

Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-03 Thread Tony Dinh
Hi Stefan, On Thu, Sep 1, 2022 at 11:25 PM Stefan Roese wrote: > > Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE > enabled, like pogo_v4. > > Signed-off-by: Stefan Roese > --- > v2: > - Change timer_get_boot_us() to use the timer_early functions > - Remove #if

[PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-09-02 Thread Stefan Roese
Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE enabled, like pogo_v4. Signed-off-by: Stefan Roese --- v2: - Change timer_get_boot_us() to use the timer_early functions - Remove #if CONFIG_IS_ENABLED(BOOTSTAGE) Simon, I'm currently looking into this timer_get_boot_us() to