libpayload: timer: Move the timer drivers from depthcharge to libpayload.
These drivers are needed right away and never really fit into depthcharge's driver model anyway. CQ-DEPEND=CL:194064 BUG=None TEST=Built and booted nyan, link, and peach_pit and verified that timer values in cbmem were reasonable. Built for nyan_big, nyan_blaze and daisy. BRANCH=None Original-Change-Id: Ia7953cfece57524262a6c7d6537082af7a00f4d6 Original-Signed-off-by: Gabe Black <gabeblack@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/194058 Original-Reviewed-by: Gabe Black <gabeblack@chromium.org> Original-Commit-Queue: Gabe Black <gabeblack@chromium.org> Original-Tested-by: Gabe Black <gabeblack@chromium.org> (cherry picked from commit f30a410f0a248c93bc34f5868af1596bf8ce3cdd) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I782d20f3cd63210a87c712643c7a53753f5ef301 Reviewed-on: http://review.coreboot.org/7225 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -327,6 +327,44 @@ config STORAGE_AHCI_ONLY_TESTED
|
||||
If this option is selected only AHCI controllers which are known
|
||||
to work will be used.
|
||||
|
||||
config TIMER_RDTSC
|
||||
bool
|
||||
default y
|
||||
depends on ARCH_X86
|
||||
|
||||
choice
|
||||
prompt "Timer driver"
|
||||
default TIMER_NONE
|
||||
depends on !ARCH_X86
|
||||
|
||||
config TIMER_NONE
|
||||
bool "None"
|
||||
help
|
||||
The timer driver is provided by the payload itself.
|
||||
|
||||
config TIMER_MCT
|
||||
bool "Exynos MCT"
|
||||
|
||||
config TIMER_TEGRA_1US
|
||||
bool "Tegra 1us"
|
||||
|
||||
endchoice
|
||||
|
||||
config TIMER_MCT_HZ
|
||||
int "Exynos MCT frequency"
|
||||
depends on TIMER_MCT
|
||||
default 24000000
|
||||
|
||||
config TIMER_MCT_ADDRESS
|
||||
hex "Exynos MCT base address"
|
||||
depends on TIMER_MCT
|
||||
default 0x101c0000
|
||||
|
||||
config TIMER_TEGRA_1US_ADDRESS
|
||||
hex "Tegra u1s timer base address"
|
||||
depends on TIMER_TEGRA_1US
|
||||
default 0x60005010
|
||||
|
||||
config USB
|
||||
bool "USB Support"
|
||||
default n
|
||||
|
Reference in New Issue
Block a user