1# 2# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) 3# 4# SPDX-License-Identifier: GPL-2.0-only 5# 6 7cmake_minimum_required(VERSION 3.7.2) 8 9declare_platform(odroidc2 KernelPlatformOdroidc2 PLAT_ODROIDC2 KernelSel4ArchAarch64) 10 11if(KernelPlatformOdroidc2) 12 declare_seL4_arch(aarch64) 13 set(KernelArmCortexA53 ON) 14 set(KernelArchArmV8a ON) 15 config_set(KernelARMPlatform ARM_PLAT odroidc2) 16 set(KernelArmMachFeatureModifiers "+crc" CACHE INTERNAL "") 17 list(APPEND KernelDTSList "tools/dts/odroidc2.dts") 18 list(APPEND KernelDTSList "src/plat/odroidc2/overlay-odroidc2.dts") 19 declare_default_headers( 20 TIMER_FREQUENCY 24000000 21 MAX_IRQ 250 22 NUM_PPI 32 23 TIMER drivers/timer/arm_generic.h 24 INTERRUPT_CONTROLLER arch/machine/gic_v2.h 25 CLK_MAGIC 375299969u 26 CLK_SHIFT 53u 27 KERNEL_WCET 10u 28 TIMER_PRECISION 1u 29 ) 30endif() 31 32add_sources( 33 DEP "KernelPlatformOdroidc2" 34 CFILES src/arch/arm/machine/gic_v2.c src/arch/arm/machine/l2c_nop.c 35) 36