1c8a7ba9eSThomas Choumenu "Timer Support" 2c8a7ba9eSThomas Chou 3c8a7ba9eSThomas Chouconfig TIMER 4435ae76eSBin Meng bool "Enable driver model for timer drivers" 5c8a7ba9eSThomas Chou depends on DM 6c8a7ba9eSThomas Chou help 7435ae76eSBin Meng Enable driver model for timer access. It uses the same API as 8435ae76eSBin Meng lib/time.c, but now implemented by the uclass. The first timer 9c8a7ba9eSThomas Chou will be used. The timer is usually a 32 bits free-running up 10c8a7ba9eSThomas Chou counter. There may be no real tick, and no timer interrupt. 11c8a7ba9eSThomas Chou 12*e9e5d9d2SPhilipp Tomsichconfig SPL_TIMER 13*e9e5d9d2SPhilipp Tomsich bool "Enable driver model for timer drivers in SPL" 14*e9e5d9d2SPhilipp Tomsich depends on TIMER && SPL 15*e9e5d9d2SPhilipp Tomsich help 16*e9e5d9d2SPhilipp Tomsich Enable support for timer drivers in SPL. These can be used to get 17*e9e5d9d2SPhilipp Tomsich a timer value when in SPL, or perhaps for implementing a delay 18*e9e5d9d2SPhilipp Tomsich function. This enables the drivers in drivers/timer as part of an 19*e9e5d9d2SPhilipp Tomsich SPL build. 20*e9e5d9d2SPhilipp Tomsich 21*e9e5d9d2SPhilipp Tomsichconfig TPL_TIMER 22*e9e5d9d2SPhilipp Tomsich bool "Enable driver model for timer drivers in TPL" 23*e9e5d9d2SPhilipp Tomsich depends on TIMER && TPL 24*e9e5d9d2SPhilipp Tomsich help 25*e9e5d9d2SPhilipp Tomsich Enable support for timer drivers in TPL. These can be used to get 26*e9e5d9d2SPhilipp Tomsich a timer value when in TPL, or perhaps for implementing a delay 27*e9e5d9d2SPhilipp Tomsich function. This enables the drivers in drivers/timer as part of an 28*e9e5d9d2SPhilipp Tomsich TPL build. 29*e9e5d9d2SPhilipp Tomsich 30c95fec31SSimon Glassconfig TIMER_EARLY 31c95fec31SSimon Glass bool "Allow timer to be used early in U-Boot" 32c95fec31SSimon Glass depends on TIMER 33c95fec31SSimon Glass help 34c95fec31SSimon Glass In some cases the timer must be accessible before driver model is 35c95fec31SSimon Glass active. Examples include when using CONFIG_TRACE to trace U-Boot's 36c95fec31SSimon Glass execution before driver model is set up. Enable this option to 37c95fec31SSimon Glass use an early timer. These functions must be supported by your timer 38c95fec31SSimon Glass driver: timer_early_get_count() and timer_early_get_rate(). 39c95fec31SSimon Glass 40a54915d8SThomas Chouconfig ALTERA_TIMER 41435ae76eSBin Meng bool "Altera timer support" 42a54915d8SThomas Chou depends on TIMER 43a54915d8SThomas Chou help 44435ae76eSBin Meng Select this to enable a timer for Altera devices. Please find 45a54915d8SThomas Chou details on the "Embedded Peripherals IP User Guide" of Altera. 46a54915d8SThomas Chou 479961a0b6SThomas Chouconfig SANDBOX_TIMER 48435ae76eSBin Meng bool "Sandbox timer support" 499961a0b6SThomas Chou depends on SANDBOX && TIMER 509961a0b6SThomas Chou help 519961a0b6SThomas Chou Select this to enable an emulated timer for sandbox. It gets 529961a0b6SThomas Chou time from host os. 539961a0b6SThomas Chou 547030f27eSBin Mengconfig X86_TSC_TIMER 557030f27eSBin Meng bool "x86 Time-Stamp Counter (TSC) timer support" 567030f27eSBin Meng depends on TIMER && X86 577030f27eSBin Meng help 587030f27eSBin Meng Select this to enable Time-Stamp Counter (TSC) timer for x86. 597030f27eSBin Meng 60dadf3137SMugunthan V Nconfig OMAP_TIMER 61dadf3137SMugunthan V N bool "Omap timer support" 62dadf3137SMugunthan V N depends on TIMER 63dadf3137SMugunthan V N help 64dadf3137SMugunthan V N Select this to enable an timer for Omap devices. 65dadf3137SMugunthan V N 664697abeaSmaxims@google.comconfig AST_TIMER 674697abeaSmaxims@google.com bool "Aspeed ast2400/ast2500 timer support" 684697abeaSmaxims@google.com depends on TIMER 694697abeaSmaxims@google.com default y if ARCH_ASPEED 704697abeaSmaxims@google.com help 714697abeaSmaxims@google.com Select this to enable timer for Aspeed ast2400/ast2500 devices. 724697abeaSmaxims@google.com This is a simple sys timer driver, it is compatible with lib/time.c, 734697abeaSmaxims@google.com but does not support any interrupts. Even though SoC has 8 hardware 744697abeaSmaxims@google.com counters, they are all treated as a single device by this driver. 754697abeaSmaxims@google.com This is mostly because they all share several registers which 764697abeaSmaxims@google.com makes it difficult to completely separate them. 774697abeaSmaxims@google.com 78347cb2edSPatrice Chotardconfig STI_TIMER 79347cb2edSPatrice Chotard bool "STi timer support" 80347cb2edSPatrice Chotard depends on TIMER 81347cb2edSPatrice Chotard default y if ARCH_STI 82347cb2edSPatrice Chotard help 83347cb2edSPatrice Chotard Select this to enable a timer for STi devices. 84347cb2edSPatrice Chotard 85ad9b5f77SVlad Zakharovconfig ARC_TIMER 86ad9b5f77SVlad Zakharov bool "ARC timer support" 87ad9b5f77SVlad Zakharov depends on TIMER && ARC && CLK 88ad9b5f77SVlad Zakharov help 89ad9b5f77SVlad Zakharov Select this to enable built-in ARC timers. 90ad9b5f77SVlad Zakharov ARC cores may have up to 2 built-in timers: timer0 and timer1, 91ad9b5f77SVlad Zakharov usually at least one of them exists. Either of them is supported 92ad9b5f77SVlad Zakharov in U-Boot. 93ad9b5f77SVlad Zakharov 94f5076f86Srickconfig AG101P_TIMER 95b841b6e9Srick bool "AG101P timer support" 96b841b6e9Srick depends on TIMER && NDS32 97f5076f86Srick help 98b841b6e9Srick Select this to enable a timer for AG01P devices. 99b841b6e9Srick 100b841b6e9Srickconfig AE3XX_TIMER 101b841b6e9Srick bool "AE3XX timer support" 102b841b6e9Srick depends on TIMER && NDS32 103b841b6e9Srick help 104b841b6e9Srick Select this to enable a timer for AE3XX devices. 105f5076f86Srick 106c8a7ba9eSThomas Chouendmenu 107