arch/x86: refactor APIC timer configuration to SoC level
The APIC is part of the SoC, not the board, so move the defaults down. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
3036faf88a
commit
3bc79fdf2c
3 changed files with 22 additions and 23 deletions
|
@ -4,7 +4,7 @@
|
|||
CONFIG_X86=y
|
||||
CONFIG_SOC_APOLLO_LAKE=y
|
||||
CONFIG_BOARD_GPMRB=y
|
||||
CONFIG_HPET_TIMER=y
|
||||
CONFIG_APIC_TIMER=y
|
||||
CONFIG_PIC_DISABLE=y
|
||||
CONFIG_LOAPIC=y
|
||||
CONFIG_CONSOLE=y
|
||||
|
|
|
@ -31,24 +31,4 @@ endif # I2C
|
|||
config APIC_TIMER
|
||||
default y if !HPET_TIMER
|
||||
|
||||
if APIC_TIMER
|
||||
|
||||
config APIC_TIMER_IRQ
|
||||
default 24
|
||||
|
||||
config APIC_TIMER_TSC
|
||||
default y
|
||||
|
||||
if APIC_TIMER_TSC
|
||||
|
||||
config APIC_TIMER_TSC_M
|
||||
default 3
|
||||
|
||||
config APIC_TIMER_TSC_N
|
||||
default 249
|
||||
|
||||
endif # APIC_TIMER_TSC
|
||||
|
||||
endif # APIC_TIMER
|
||||
|
||||
endif # BOARD_UP_SQUARED
|
||||
|
|
|
@ -13,8 +13,27 @@ config SOC
|
|||
default "apollo_lake"
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default 150000000 if LOAPIC_TIMER
|
||||
default 25000000 if HPET_TIMER
|
||||
default 19200000
|
||||
|
||||
if APIC_TIMER
|
||||
|
||||
config APIC_TIMER_IRQ
|
||||
default 24
|
||||
|
||||
config APIC_TIMER_TSC
|
||||
default y
|
||||
|
||||
if APIC_TIMER_TSC
|
||||
|
||||
config APIC_TIMER_TSC_M
|
||||
default 3
|
||||
|
||||
config APIC_TIMER_TSC_N
|
||||
default 249
|
||||
|
||||
endif # APIC_TIMER_TSC
|
||||
|
||||
endif # APIC_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
default y if CACHE_FLUSHING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue