1# $NetBSD: files.exynos,v 1.7 2014/05/21 12:19:59 reinoud Exp $ 2# 3# Configuration info for Samsung Exynos SoC ARM Peripherals 4# 5 6include "arch/arm/pic/files.pic" 7include "arch/arm/cortex/files.cortex" 8 9defflag opt_cpuoptions.h ARM_TRUSTZONE_FIRMWARE 10 11file arch/arm/arm32/arm32_boot.c 12file arch/arm/arm32/arm32_kvminit.c 13file arch/arm/arm32/arm32_reboot.c 14file arch/arm/arm32/irq_dispatch.S 15 16file arch/arm/samsung/exynos_soc.c 17file arch/arm/samsung/exynos_space.c 18file arch/arm/samsung/exynos_dma.c 19file arch/arm/samsung/exynos_smc.S arm_trustzone_firmware 20 21file arch/arm/arm/bus_space_a4x.S exyo 22 23# Console parameters 24defparam opt_exynos.h CONADDR 25defparam opt_exynos.h CONSPEED 26defparam opt_exynos.h CONMODE 27 28# Memory size in megabytes 29defparam opt_exynos.h MEMSIZE 30defparam opt_exynos.h EXYNOS_WDT_DEFAULT_PERIOD 31defflag opt_exynos.h EXYNOS_CONSOLE_EARLY 32 33# 34defflag opt_exynos.h EXYNOS4: CPU_CORTEXA9 35defflag opt_exynos.h EXYNOS4120: EXYNOS4 36defflag opt_exynos.h EXYNOS4212: EXYNOS4 37defflag opt_exynos.h EXYNOS4412: EXYNOS4 38defflag opt_exynos.h EXYNOS4412P: EXYNOS4 39defflag opt_exynos.h EXYNOS5: CPU_CORTEXA15 40defflag opt_exynos.h EXYNOS5250: EXYNOS5 41defflag opt_exynos.h EXYNOS5260: EXYNOS5 42defflag opt_exynos.h EXYNOS5410: EXYNOS5 43defflag opt_exynos.h EXYNOS5420: EXYNOS5 44defflag opt_exynos.h EXYNOS5440: EXYNOS5 45defflag opt_exynos.h EXYNOS5422: EXYNOS5 46 47# SoC I/O attach point 48device exyo { [port=-1], [intr=-1] } : bus_space_generic 49attach exyo at mainbus with exyo_io 50file arch/arm/samsung/exynos_io.c exyo_io 51file arch/arm/samsung/exynos4_loc.c exyo_io & exynos4 52file arch/arm/samsung/exynos5_loc.c exyo_io & exynos5 53 54# Multi Core timer 55device mct { } : bus_space_generic 56attach mct at exyo with exyo_mct 57file arch/arm/samsung/mct.c exyo_mct 58 59# Watchdog 60device exyowdt : sysmon_wdog 61attach exyowdt at exyo with exynos_wdt 62file arch/arm/samsung/exynos_wdt.c exynos_wdt | exyo_io needs-flag 63 64# UARTs 65device sscom { } : bus_space_generic 66attach sscom at exyo with exynos_sscom 67file arch/arm/samsung/sscom.c sscom needs-flag 68file arch/arm/samsung/exynos_sscom.c exynos_sscom 69defflag opt_sscom.h SSCOM0CONSOLE SSCOM1CONSOLE 70defparam opt_sscom.h SSCOM_FREQ 71 72# GPIO 73device exyogpio : gpiobus 74attach exyogpio at exyo with exynos_gpio 75file arch/arm/samsung/exynos_gpio.c exynos_gpio | exyo_io needs-flag 76 77# USB2 Host Controller (EHCI/OHCI) 78device exyousb { } 79attach exyousb at exyo with exyo_usb 80attach ohci at exyousb with ohci_exyousb 81attach ehci at exyousb with ehci_exyousb 82file arch/arm/samsung/exynos_usb.c exyo_usb 83 84# I2C support, bitbanging trough GPIO 85device exyoiic: i2cbus, i2c_bitbang 86attach exyoiic at exyo with exynos_iic 87file arch/arm/samsung/exynos_i2c.c exynos_iic | exyo_io needs-flag 88 89