Skip to content

omap3: Optimize detection of cpu revision

Sanjeev Premi u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2omap3: Identify the CPU in arch_cpu_init()cpu/arm_cortexa8/omap3/sys_info.c include/asm-arm/arch-omap3/sys_proto.h include/configs/omap3_beagle.h +5 more+50 -240 replies
2/2omap3: Identify cpu in s_init()cpu/arm_cortexa8/omap3/board.c cpu/arm_cortexa8/omap3/sys_info.c include/asm-arm/arch-omap3/sys_proto.h+18 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] omap3: Optimize detection of cpu revision

Each call to get_cpu_rev() leads to repetitive execution of code to detect the cpu revision.

This patchset ensures that mechanism to detect revision is not executed each time; instead a stored value is returned.

Since, revision info is needed in s_init(), the function to identify cpu revision needs to be called twice. At the moment, it is necessary/ unavoidable.

Sanjeev Premi (2):
omap3: Identify the CPU in arch_cpu_init()
omap3: Identify cpu in s_init()

 cpu/arm_cortexa8/omap3/board.c         |    2 +
 cpu/arm_cortexa8/omap3/sys_info.c      |   73 ++++++++++++++++++++++----------
 include/asm-arm/arch-omap3/sys_proto.h |    3 +-
 include/configs/omap3_beagle.h         |    2 +
 include/configs/omap3_evm.h            |    2 +
 include/configs/omap3_overo.h          |    2 +
 include/configs/omap3_pandora.h        |    2 +
 include/configs/omap3_zoom1.h          |    2 +
 include/configs/omap3_zoom2.h          |    2 +
 9 files changed, 66 insertions(+), 24 deletions(-)