diff options
Diffstat (limited to 'chip/it83xx/build.mk')
-rw-r--r-- | chip/it83xx/build.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chip/it83xx/build.mk b/chip/it83xx/build.mk index 5ce2bc8397..23ae81b674 100644 --- a/chip/it83xx/build.mk +++ b/chip/it83xx/build.mk @@ -6,8 +6,13 @@ # IT83xx chip specific files build # -# IT83xx SoC family has an Andes N801 core. +# IT8xxx1 and IT83xx are Andes N8 core. +# IT8xxx2 is RISC-V core. +ifeq ($(CHIP_FAMILY), it8xxx2) +CORE:=riscv-rv32i +else CORE:=nds32 +endif # Required chip modules chip-y=hwtimer.o uart.o gpio.o system.o clock.o irq.o intc.o @@ -16,7 +21,10 @@ chip-y=hwtimer.o uart.o gpio.o system.o clock.o irq.o intc.o chip-$(CONFIG_WATCHDOG)+=watchdog.o chip-$(CONFIG_FANS)+=fan.o pwm.o chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o +# IT8xxx2 series use the FPU instruction set of RISC-V (single-precision only). +ifneq ($(CHIP_FAMILY), it8xxx2) chip-$(CONFIG_FPU)+=it83xx_fpu.o +endif chip-$(CONFIG_PWM)+=pwm.o chip-$(CONFIG_ADC)+=adc.o chip-$(CONFIG_HOSTCMD_X86)+=lpc.o ec2i.o |