Get the AST2500 SCUE0/E4 value using kernel device driver?
Hi All,
Just want to know if there is any existing device driver provides the interface to get the SCUE0/E4 register values on AST2500?
If no, I would like to know if there is any examples/similar drivers for reference? By the way, the two registers are used for the uptime
Thanks,
Yong
Quoted 9 lines · Yong Li
Hi All,
Just want to know if there is any existing device driver provides the interface to get the SCUE0/E4 register values on AST2500?
If no, I would like to know if there is any examples/similar drivers for reference? By the way, the two registers are used for the uptime
I'm not aware of any, but I'm interested in what you're trying to measure. Are you after something that can't be satisfied by CLOCK_MONOTONIC and friends for clock_gettime()? Or is that what you're wanting to drive?
Andrew
Quoted 7 lines
Thanks,
Yong
HI Andrew,
Thanks for the reply.
I want to get the time from the very beginning of the AC power on, including the time spent on u-boot.
My understanding is that the clock_gettime only return the Linux up time, it cannot get the delay in bootloader(u-boot).
For example, the time from power on to the console login is about 65 seconds,
u-boot spends 25 seconds, and Linux boot needs another 40 seconds.
I want to get the total time: 65 seconds.
Thanks,
Yong
-----Original Message-----
From: Andrew Jeffery <[email protected]>
Sent: Friday, May 17, 2019 7:17 AM
To: Yong Li <[email protected]>; 'OpenBMC Maillist' <[email protected]>
Cc: Li, Yong B <[email protected]>
Subject: Re: Get the AST2500 SCUE0/E4 value using kernel device driver?
Quoted 9 lines · Yong Li
Hi All,
Just want to know if there is any existing device driver provides the interface to get the SCUE0/E4 register values on AST2500?
If no, I would like to know if there is any examples/similar drivers for reference? By the way, the two registers are used for the uptime
I'm not aware of any, but I'm interested in what you're trying to measure. Are you after something that can't be satisfied by CLOCK_MONOTONIC and friends for clock_gettime()? Or is that what you're wanting to drive?
Andrew
Quoted 7 lines
Thanks,
Yong