Home | History | Annotate | Line # | Download | only in rockchip
files.rockchip revision 1.25
      1 #	$NetBSD: files.rockchip,v 1.25 2021/11/12 22:02:08 jmcneill Exp $
      2 #
      3 # Configuration info for Rockchip family SoCs
      4 #
      5 #
      6 
      7 file	arch/arm/rockchip/rk_platform.c		soc_rockchip
      8 
      9 file	arch/arm/rockchip/rk3066_smp.c		soc_rk3288
     10 
     11 # Clock and reset unit (CRU)
     12 device	rkcru: rk_cru
     13 file	arch/arm/rockchip/rk_cru.c		rk_cru
     14 file	arch/arm/rockchip/rk_cru_arm.c		rk_cru
     15 file	arch/arm/rockchip/rk_cru_composite.c	rk_cru
     16 file	arch/arm/rockchip/rk_cru_gate.c		rk_cru
     17 file	arch/arm/rockchip/rk_cru_mux.c		rk_cru
     18 file	arch/arm/rockchip/rk_cru_pll.c		rk_cru
     19 
     20 ifdef arm
     21 
     22 # RK3288 clock and reset unit
     23 attach	rkcru at fdt with rk3288_cru
     24 file	arch/arm/rockchip/rk3288_cru.c		rk3288_cru & soc_rk3288
     25 
     26 else
     27 
     28 # RK3328 clock and reset unit
     29 attach	rkcru at fdt with rk3328_cru
     30 file	arch/arm/rockchip/rk3328_cru.c		rk3328_cru & soc_rk3328
     31 
     32 # RK3399 clock and reset unit
     33 attach	rkcru at fdt with rk3399_cru
     34 file	arch/arm/rockchip/rk3399_cru.c		rk3399_cru & soc_rk3399
     35 attach	rkcru at fdt with rk3399_pmucru
     36 file	arch/arm/rockchip/rk3399_pmucru.c	rk3399_pmucru & soc_rk3399
     37 
     38 endif
     39 
     40 # IOMUX control
     41 device	rkiomux { }
     42 
     43 ifdef arm
     44 
     45 attach	rkiomux at fdt with rk3288_iomux
     46 file	arch/arm/rockchip/rk3288_iomux.c	rk3288_iomux & soc_rk3288
     47 
     48 else
     49 
     50 attach	rkiomux at fdt with rk3328_iomux
     51 file	arch/arm/rockchip/rk3328_iomux.c	rk3328_iomux & soc_rk3328
     52 attach	rkiomux at fdt with rk3399_iomux
     53 file	arch/arm/rockchip/rk3399_iomux.c	rk3399_iomux & soc_rk3399
     54 
     55 endif
     56 
     57 # GPIO
     58 device	rkgpio: gpiobus
     59 attach	rkgpio at rkiomux with rk_gpio
     60 file	arch/arm/rockchip/rk_gpio.c		rk_gpio
     61 
     62 # I2C
     63 device	rkiic: i2cbus, i2cexec
     64 attach	rkiic at fdt with rk_i2c
     65 file	arch/arm/rockchip/rk_i2c.c		rk_i2c
     66 
     67 # SPI
     68 device	rkspi: spibus
     69 attach	rkspi at fdt with rk_spi
     70 file	arch/arm/rockchip/rk_spi.c		rk_spi
     71 
     72 # USB PHY
     73 device	rkusb { }
     74 attach	rkusb at fdt with rk_usb
     75 device	rkusbphy
     76 attach	rkusbphy at rkusb with rk_usbphy
     77 file	arch/arm/rockchip/rk_usb.c		rk_usb | rk_usbphy
     78 
     79 device	rk3288usb { }
     80 attach	rk3288usb at fdt with rk3288_usb
     81 device	rk3288usbphy
     82 attach	rk3288usbphy at rk3288usb with rk3288_usbphy
     83 file	arch/arm/rockchip/rk3288_usb.c		rk3288_usb | rk3288_usbphy
     84 
     85 # GMAC
     86 attach	awge at fdt with rk_gmac
     87 file	arch/arm/rockchip/rk_gmac.c		rk_gmac
     88 
     89 # PCIe PHY
     90 device	rkpciephy
     91 attach	rkpciephy at fdt
     92 file	arch/arm/rockchip/rk3399_pcie_phy.c	rkpciephy
     93 
     94 # PCIe host
     95 device	rkpcie: pcibus, pcihost_fdt
     96 attach	rkpcie at fdt
     97 file	arch/arm/rockchip/rk3399_pcie.c		rkpcie
     98 
     99 # eMMC PHY
    100 device	rkemmcphy
    101 attach	rkemmcphy at fdt
    102 file	arch/arm/rockchip/rk_emmcphy.c		rkemmcphy
    103 
    104 # TSADC temperature sensors
    105 device	rktsadc: sysmon_envsys
    106 attach	rktsadc at fdt with rk_tsadc
    107 file	arch/arm/rockchip/rk_tsadc.c		rk_tsadc
    108 
    109 # PWM
    110 device	rkpwm: pwm
    111 attach	rkpwm at fdt with rk_pwm
    112 file	arch/arm/rockchip/rk_pwm.c		rk_pwm
    113 
    114 # DRM master
    115 define	rkfbbus { }
    116 device	rkdrm: drmkms, ddc_read_edid, rkfbbus
    117 attach	rkdrm at fdt with rk_drm
    118 file	arch/arm/rockchip/rk_drm.c		rk_drm
    119 
    120 # DRM framebuffer console
    121 device	rkfb: rkfbbus, drmfb, wsemuldisplaydev
    122 attach	rkfb at rkfbbus with rk_fb
    123 file	arch/arm/rockchip/rk_fb.c		rk_fb
    124 
    125 # Visual Output Processor
    126 device	rkvop: drmkms
    127 attach	rkvop at fdt with rk_vop
    128 file	arch/arm/rockchip/rk_vop.c		rk_vop
    129 
    130 # HDMI TX (Designware based)
    131 attach	dwhdmi at fdt with rk_dwhdmi
    132 file	arch/arm/rockchip/rk_dwhdmi.c		rk_dwhdmi
    133 
    134 # DP/eDP (Analogix-based)
    135 attach	anxdp at fdt with rk_anxdp
    136 file	arch/arm/rockchip/rk_anxdp.c		rk_anxdp
    137 
    138 # I2S/PCM controller
    139 device	rki2s	
    140 attach  rki2s at fdt with rk_i2s
    141 file    arch/arm/rockchip/rk_i2s.c		rk_i2s
    142 
    143 # Crypto engine v1
    144 device	rkv1crypto
    145 attach	rkv1crypto at fdt with rk_v1crypto
    146 file	arch/arm/rockchip/rk_v1crypto.c		rk_v1crypto
    147 
    148 # SOC parameters
    149 defflag	opt_soc.h			SOC_ROCKCHIP
    150 defflag	opt_soc.h			SOC_RK3288: SOC_ROCKCHIP
    151 defflag	opt_soc.h			SOC_RK3328: SOC_ROCKCHIP
    152 defflag	opt_soc.h			SOC_RK3399: SOC_ROCKCHIP
    153