Skip to content

add generic EFI timer

Jean-Christophe PLAGNIOL-VILLARD barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9efi: add prototype and definition for creating and closing eventinclude/efi.h+15 -20 replies
2/9efi: add prototype and definition for setting timerinclude/efi.h+7 -10 replies
3/9efi: move LoaderTimeInitUSec and LoaderDevicePartUUID to postcore initcallcommon/efi/efi.c+11 -40 replies
4/9efi: move x86 clocksource init at core initcall levelcommon/efi/efi.c drivers/clocksource/efi.c include/efi/efi.h+4 -40 replies
5/9clocksource: allow to have multiple device from clock sourcecommon/clock.c include/clock.h+13 -10 replies
6/9clocksource: move dummy clock source to init_clockcommon/clock.c+24 -90 replies
7/9efi: move x86 clocksource to device/driverarch/x86/Kconfig arch/x86/mach-efi/Makefile arch/x86/mach-efi/clocksource.c +3 more+43 -130 replies
8/9efi: clocksoure: add EFI event timercommon/efi/efi.c drivers/clocksource/Kconfig drivers/clocksource/Makefile +1 more+123 -01 reply
9/9efi: add veriable to report secure boot support and statusdrivers/efi/efi-device.c+33 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9] add generic EFI timer

Hi,

On EFI you have 3 ways to get to do "timer"

1: Simply by waiting X us and calling Boot Service udelay

2: By using event

3: By use the Timestamp GUID

for barebox this would be the best but even on EDK II this is never ever compiled on any target.

So we have 2 choice, use a Hardware specific timer or implement the timer using timestamp

This pull request allow you to enable 2 timers and use the best one at runtime.

EFI x86 (HW specific)
EFI Generic (based on Event)

please pull

The following changes since commit d92ed454107b4d6f0d30fa0271da191ae5911d18:

Merge branch 'for-next/video' into next (2017-02-27 08:51:08 +0100)

are available in the git repository at:

git://git.jcrosoft.org/barebox.git delivery/efi-cs

for you to fetch changes up to f14af7444ad9d8ce674382f222119f5fcd3f2576:

efi: add veriable to report secure boot support and status (2017-02-28 23:05:31 +0800)

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (9):
efi: add prototype and definition for creating and closing event
efi: add prototype and definition for setting timer
efi: move LoaderTimeInitUSec and LoaderDevicePartUUID to postcore initcall
efi: move x86 clocksource init at core initcall level
clocksource: allow to have multiple device from clock source
clocksource: move dummy clock source to init_clock
efi: move x86 clocksource to device/driver
efi: clocksoure: add EFI event timer
efi: add veriable to report secure boot support and status

 arch/x86/Kconfig                |   2 +-
 arch/x86/mach-efi/Makefile      |   1 +
 arch/x86/mach-efi/clocksource.c |  11 +++++++++++
 common/clock.c                  |  44 +++++++++++++++++++++++++++++++++++---------
 common/efi/efi.c                |  24 +++++++++++++++++++-----
 drivers/clocksource/Kconfig     |   6 +++++-
 drivers/clocksource/Makefile    |   1 +
 drivers/clocksource/efi.c       | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
 drivers/clocksource/efi_x86.c   |  79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/efi/efi-device.c        |  33 +++++++++++++++++++++++++++++++++
 include/clock.h                 |   3 ++-
 include/efi.h                   |  25 ++++++++++++++++++++++---
 include/efi/efi.h               |   2 --
 13 files changed, 290 insertions(+), 51 deletions(-)
 create mode 100644 arch/x86/mach-efi/clocksource.c
 create mode 100644 drivers/clocksource/efi_x86.c

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox