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 12e9e5d9d2SPhilipp Tomsichconfig SPL_TIMER 13e9e5d9d2SPhilipp Tomsich bool "Enable driver model for timer drivers in SPL" 14e9e5d9d2SPhilipp Tomsich depends on TIMER && SPL 15e9e5d9d2SPhilipp Tomsich help 16e9e5d9d2SPhilipp Tomsich Enable support for timer drivers in SPL. These can be used to get 17e9e5d9d2SPhilipp Tomsich a timer value when in SPL, or perhaps for implementing a delay 18e9e5d9d2SPhilipp Tomsich function. This enables the drivers in drivers/timer as part of an 19e9e5d9d2SPhilipp Tomsich SPL build. 20e9e5d9d2SPhilipp Tomsich 21e9e5d9d2SPhilipp Tomsichconfig TPL_TIMER 22e9e5d9d2SPhilipp Tomsich bool "Enable driver model for timer drivers in TPL" 23e9e5d9d2SPhilipp Tomsich depends on TIMER && TPL 24e9e5d9d2SPhilipp Tomsich help 25e9e5d9d2SPhilipp Tomsich Enable support for timer drivers in TPL. These can be used to get 26e9e5d9d2SPhilipp Tomsich a timer value when in TPL, or perhaps for implementing a delay 27e9e5d9d2SPhilipp Tomsich function. This enables the drivers in drivers/timer as part of an 28e9e5d9d2SPhilipp Tomsich TPL build. 29e9e5d9d2SPhilipp Tomsich 30c95fec31SSimon Glassconfig TIMER_EARLY 31c95fec31SSimon Glass bool "Allow timer to be used early in U-Boot" 32c95fec31SSimon Glass depends on TIMER 3397d20f69SSimon Glass # initr_bootstage() requires a timer and is called before initr_dm() 3497d20f69SSimon Glass # so only the early timer is available 3597d20f69SSimon Glass default y if X86 && BOOTSTAGE 36c95fec31SSimon Glass help 37c95fec31SSimon Glass In some cases the timer must be accessible before driver model is 38c95fec31SSimon Glass active. Examples include when using CONFIG_TRACE to trace U-Boot's 39c95fec31SSimon Glass execution before driver model is set up. Enable this option to 40c95fec31SSimon Glass use an early timer. These functions must be supported by your timer 41c95fec31SSimon Glass driver: timer_early_get_count() and timer_early_get_rate(). 42c95fec31SSimon Glass 43a54915d8SThomas Chouconfig ALTERA_TIMER 44435ae76eSBin Meng bool "Altera timer support" 45a54915d8SThomas Chou depends on TIMER 46a54915d8SThomas Chou help 47435ae76eSBin Meng Select this to enable a timer for Altera devices. Please find 48a54915d8SThomas Chou details on the "Embedded Peripherals IP User Guide" of Altera. 49a54915d8SThomas Chou 5047edaea4SWenyou.Yang@microchip.comconfig ATMEL_PIT_TIMER 5147edaea4SWenyou.Yang@microchip.com bool "Atmel periodic interval timer support" 5247edaea4SWenyou.Yang@microchip.com depends on TIMER 5347edaea4SWenyou.Yang@microchip.com help 5447edaea4SWenyou.Yang@microchip.com Select this to enable a periodic interval timer for Atmel devices, 5547edaea4SWenyou.Yang@microchip.com it is designed to offer maximum accuracy and efficient management, 5647edaea4SWenyou.Yang@microchip.com even for systems with long response time. 5747edaea4SWenyou.Yang@microchip.com 5872c37d12SMichal Simekconfig CADENCE_TTC_TIMER 5972c37d12SMichal Simek bool "Cadence TTC (Triple Timer Counter)" 6072c37d12SMichal Simek depends on TIMER 6172c37d12SMichal Simek help 6272c37d12SMichal Simek Enables support for the cadence ttc driver. This driver is present 6372c37d12SMichal Simek on Xilinx Zynq and ZynqMP SoCs. 6472c37d12SMichal Simek 6566011a08SMarek Vasutconfig DESIGNWARE_APB_TIMER 6666011a08SMarek Vasut bool "Designware APB Timer" 6766011a08SMarek Vasut depends on TIMER 6866011a08SMarek Vasut help 6966011a08SMarek Vasut Enables support for the Designware APB Timer driver. This timer is 7066011a08SMarek Vasut present on Altera SoCFPGA SoCs. 7166011a08SMarek Vasut 729961a0b6SThomas Chouconfig SANDBOX_TIMER 73435ae76eSBin Meng bool "Sandbox timer support" 749961a0b6SThomas Chou depends on SANDBOX && TIMER 759961a0b6SThomas Chou help 769961a0b6SThomas Chou Select this to enable an emulated timer for sandbox. It gets 779961a0b6SThomas Chou time from host os. 789961a0b6SThomas Chou 797030f27eSBin Mengconfig X86_TSC_TIMER 807030f27eSBin Meng bool "x86 Time-Stamp Counter (TSC) timer support" 817030f27eSBin Meng depends on TIMER && X86 827030f27eSBin Meng help 837030f27eSBin Meng Select this to enable Time-Stamp Counter (TSC) timer for x86. 847030f27eSBin Meng 85*6ce38364SBin Mengconfig X86_TSC_TIMER_EARLY_FREQ 86*6ce38364SBin Meng int "x86 TSC timer frequency in MHz when used as the early timer" 87*6ce38364SBin Meng depends on X86_TSC_TIMER 88*6ce38364SBin Meng default 1000 89*6ce38364SBin Meng help 90*6ce38364SBin Meng Sets the estimated CPU frequency in MHz when TSC is used as the 91*6ce38364SBin Meng early timer and the frequency can neither be calibrated via some 92*6ce38364SBin Meng hardware ways, nor got from device tree at the time when device 93*6ce38364SBin Meng tree is not available yet. 94*6ce38364SBin Meng 95dadf3137SMugunthan V Nconfig OMAP_TIMER 96dadf3137SMugunthan V N bool "Omap timer support" 97dadf3137SMugunthan V N depends on TIMER 98dadf3137SMugunthan V N help 99dadf3137SMugunthan V N Select this to enable an timer for Omap devices. 100dadf3137SMugunthan V N 1014697abeaSmaxims@google.comconfig AST_TIMER 1024697abeaSmaxims@google.com bool "Aspeed ast2400/ast2500 timer support" 1034697abeaSmaxims@google.com depends on TIMER 1044697abeaSmaxims@google.com default y if ARCH_ASPEED 1054697abeaSmaxims@google.com help 1064697abeaSmaxims@google.com Select this to enable timer for Aspeed ast2400/ast2500 devices. 1074697abeaSmaxims@google.com This is a simple sys timer driver, it is compatible with lib/time.c, 1084697abeaSmaxims@google.com but does not support any interrupts. Even though SoC has 8 hardware 1094697abeaSmaxims@google.com counters, they are all treated as a single device by this driver. 1104697abeaSmaxims@google.com This is mostly because they all share several registers which 1114697abeaSmaxims@google.com makes it difficult to completely separate them. 1124697abeaSmaxims@google.com 113347cb2edSPatrice Chotardconfig STI_TIMER 114347cb2edSPatrice Chotard bool "STi timer support" 115347cb2edSPatrice Chotard depends on TIMER 116347cb2edSPatrice Chotard default y if ARCH_STI 117347cb2edSPatrice Chotard help 118347cb2edSPatrice Chotard Select this to enable a timer for STi devices. 119347cb2edSPatrice Chotard 120ad9b5f77SVlad Zakharovconfig ARC_TIMER 121ad9b5f77SVlad Zakharov bool "ARC timer support" 122ad9b5f77SVlad Zakharov depends on TIMER && ARC && CLK 123ad9b5f77SVlad Zakharov help 124ad9b5f77SVlad Zakharov Select this to enable built-in ARC timers. 125ad9b5f77SVlad Zakharov ARC cores may have up to 2 built-in timers: timer0 and timer1, 126ad9b5f77SVlad Zakharov usually at least one of them exists. Either of them is supported 127ad9b5f77SVlad Zakharov in U-Boot. 128ad9b5f77SVlad Zakharov 129f5076f86Srickconfig AG101P_TIMER 130b841b6e9Srick bool "AG101P timer support" 131b841b6e9Srick depends on TIMER && NDS32 132f5076f86Srick help 133b841b6e9Srick Select this to enable a timer for AG01P devices. 134b841b6e9Srick 135fa3e354bSRick Chenconfig ATCPIT100_TIMER 136fa3e354bSRick Chen bool "ATCPIT100 timer support" 1370f4a395fSRick Chen depends on TIMER 138b841b6e9Srick help 139fa3e354bSRick Chen Select this to enable a ATCPIT100 timer which will be embeded 140fa3e354bSRick Chen in AE3XX, AE250 boards. 141f5076f86Srick 1421168d2ddSPhilipp Tomsichconfig ROCKCHIP_TIMER 1431168d2ddSPhilipp Tomsich bool "Rockchip timer support" 1441168d2ddSPhilipp Tomsich depends on TIMER 1451168d2ddSPhilipp Tomsich help 1461168d2ddSPhilipp Tomsich Select this to enable support for the timer found on 1471168d2ddSPhilipp Tomsich Rockchip devices. 1481168d2ddSPhilipp Tomsich 1495120a083SPatrice Chotardconfig STM32_TIMER 1505120a083SPatrice Chotard bool "STM32 timer support" 1515120a083SPatrice Chotard depends on TIMER 1525120a083SPatrice Chotard help 1535120a083SPatrice Chotard Select this to enable support for the timer found on 1545120a083SPatrice Chotard STM32 devices. 1555120a083SPatrice Chotard 1562c21749dSMario Sixconfig MPC83XX_TIMER 1572c21749dSMario Six bool "MPC83xx timer support" 1582c21749dSMario Six depends on TIMER 1592c21749dSMario Six help 1602c21749dSMario Six Select this to enable support for the timer found on 1612c21749dSMario Six devices based on the MPC83xx family of SoCs. 1622c21749dSMario Six 163c8a7ba9eSThomas Chouendmenu 164