From: Bin Meng Date: Wed, 12 Dec 2018 14:12:24 +0000 (-0800) Subject: dm: cpu: Add timebase frequency to the platdata X-Git-Tag: v2019.01-rc3~20^2~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b859694776a522da9fd7d3ca2d8c027d6776c791;p=oweals%2Fu-boot.git 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 Reviewed-by: Simon Glass Reviewed-by: Lukas Auer Reviewed-by: Anup Patel --- diff --git a/include/cpu.h b/include/cpu.h index 367c5f46a0..28dd48feb8 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) * * 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 */