Hi Bin, On Tue, 2018-11-13 at 00:21 -0800, Bin Meng wrote: > This adds a timebase_freq member to the 'struct cpu_platdata', to > hold the "timebase-frequency" value in the cpu or /cpus node. > > Signed-off-by: Bin Meng <bmeng...@gmail.com> > --- > > include/cpu.h | 3 +++ > 1 file changed, 3 insertions(+) >
Reviewed-by: Lukas Auer <lukas.a...@aisec.fraunhofer.de> > diff --git a/include/cpu.h b/include/cpu.h > index 367c5f4..176a276 100644 > --- a/include/cpu.h > +++ b/include/cpu.h > @@ -14,6 +14,8 @@ > * @device_id: Driver-defined device identifier > * @family: DMTF CPU Family identifier > * @id: DMTF CPU Processor identifier > + * @timebase_freq: the current frequency at which the cpu timer > timebase > + * registers are updated (in HZ) nit: Hz Thanks, Lukas > * > * This can be accessed with dev_get_parent_platdata() for any > UCLASS_CPU > * device. > @@ -24,6 +26,7 @@ struct cpu_platdata { > ulong device_id; > u16 family; > u32 id[2]; > + u32 timebase_freq; > }; > > /* CPU features - mostly just a placeholder for now */ _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot