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