blob: 8c600b05107e6e733beb6caa98fdd996973e3ecc [file] [log] [blame]
# Copyright (c) 2020 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_RISCV32_IT8XXX2
config SOC_SERIES
default "it8xxx2"
config ITE_IT8XXX2_INTC
default y
select FLASH
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_DRIVER_ENABLED
select HAS_FLASH_LOAD_OFFSET
config RISCV_GP
default y
config ITE_IT8XXX2_TIMER
default y
config ARCH_HAS_CUSTOM_BUSY_WAIT
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 32768
config SYS_CLOCK_TICKS_PER_SEC
default 4096
config UART_NS16550_WA_ISR_REENABLE_INTERRUPT
default y
depends on UART_NS16550
config RISCV_HAS_CPU_IDLE
default y
config KSCAN_ITE_IT8XXX2
default y
depends on KSCAN
config SOC_FLASH_ITE_IT8XXX2
default y
depends on FLASH
config FLASH_INIT_PRIORITY
default 0
config IT8XXX2_PLL_SEQUENCE_PRIORITY
int
default 1
depends on SOC_IT8XXX2_PLL_FLASH_48M
config PECI_ITE_IT8XXX2
default y
depends on PECI
select PECI_INTERRUPT_DRIVEN
config PINCTRL
default y
if ITE_IT8XXX2_INTC
config NUM_IRQS
default 185
config DYNAMIC_INTERRUPTS
default y
config GEN_ISR_TABLES
default y
config GEN_IRQ_START_VECTOR
default 0
config GEN_SW_ISR_TABLE
default y
config RISCV_SOC_INTERRUPT_INIT
default y
endif # ITE_IT8XXX2_INTC
source "soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.it81*"
endif # SOC_SERIES_RISCV32_IT8XXX2