mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
dm: cpu: Add timebase frequency to the platdata
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.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
8176ea4d58
commit
b859694776
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,8 @@
|
||||||
* @device_id: Driver-defined device identifier
|
* @device_id: Driver-defined device identifier
|
||||||
* @family: DMTF CPU Family identifier
|
* @family: DMTF CPU Family identifier
|
||||||
* @id: DMTF CPU Processor identifier
|
* @id: DMTF CPU Processor identifier
|
||||||
|
* @timebase_freq: the current frequency at which the cpu timer timebase
|
||||||
|
* registers are updated (in Hz)
|
||||||
*
|
*
|
||||||
* This can be accessed with dev_get_parent_platdata() for any UCLASS_CPU
|
* This can be accessed with dev_get_parent_platdata() for any UCLASS_CPU
|
||||||
* device.
|
* device.
|
||||||
|
@ -24,6 +26,7 @@ struct cpu_platdata {
|
||||||
ulong device_id;
|
ulong device_id;
|
||||||
u16 family;
|
u16 family;
|
||||||
u32 id[2];
|
u32 id[2];
|
||||||
|
u32 timebase_freq;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* CPU features - mostly just a placeholder for now */
|
/* CPU features - mostly just a placeholder for now */
|
||||||
|
|
Loading…
Reference in a new issue