1# $NetBSD: files.meson,v 1.12 2021/02/01 01:52:04 jmcneill Exp $ 2# 3# Configuration info for Amlogic Meson family SoCs 4# 5# 6 7file arch/arm/amlogic/meson_platform.c soc_meson 8 9# Common clocks 10define meson_clk 11file arch/arm/amlogic/meson_clk.c meson_clk 12file arch/arm/amlogic/meson_clk_div.c meson_clk 13file arch/arm/amlogic/meson_clk_fixed.c meson_clk 14file arch/arm/amlogic/meson_clk_fixed_factor.c meson_clk 15file arch/arm/amlogic/meson_clk_gate.c meson_clk 16file arch/arm/amlogic/meson_clk_mpll.c meson_clk 17file arch/arm/amlogic/meson_clk_mux.c meson_clk 18file arch/arm/amlogic/meson_clk_pll.c meson_clk 19 20# Meson8b clock controller 21device meson8bclkc: meson_clk 22attach meson8bclkc at fdt with meson8b_clkc 23file arch/arm/amlogic/meson8b_clkc.c meson8b_clkc 24 25# Meson GXBB clock controller 26device gxbbclkc: meson_clk 27attach gxbbclkc at fdt with mesongxbb_clkc 28file arch/arm/amlogic/mesongxbb_clkc.c mesongxbb_clkc 29 30# Meson GXBB AO clock controller 31device gxbbaoclkc: meson_clk 32attach gxbbaoclkc at fdt with mesongxbb_aoclkc 33file arch/arm/amlogic/mesongxbb_aoclkc.c mesongxbb_aoclkc 34 35# Meson G12[AB] clock controller 36device g12clkc: meson_clk 37attach g12clkc at fdt with mesong12_clkc 38file arch/arm/amlogic/mesong12_clkc.c mesong12_clkc 39 40# Meson G12[AB] AO clock controller 41device g12aoclkc: meson_clk 42attach g12aoclkc at fdt with mesong12_aoclkc 43file arch/arm/amlogic/mesong12_aoclkc.c mesong12_aoclkc 44 45# Meson reset controller 46device mesonresets 47attach mesonresets at fdt with meson_resets 48file arch/arm/amlogic/meson_resets.c meson_resets 49 50# UART 51device mesonuart 52attach mesonuart at fdt with meson_uart 53file arch/arm/amlogic/meson_uart.c meson_uart 54 55# Framebuffer console 56device mesonfb: genfb, wsemuldisplaydev 57attach mesonfb at fdt with meson_genfb 58file arch/arm/amlogic/meson_genfb.c meson_genfb & soc_meson 59 60# GPIO 61device mesonpinctrl: gpiobus 62attach mesonpinctrl at fdt with meson_pinctrl 63file arch/arm/amlogic/meson_pinctrl.c meson_pinctrl 64file arch/arm/amlogic/meson8b_pinctrl.c meson_pinctrl & soc_meson8b 65file arch/arm/amlogic/mesong12a_pinctrl.c meson_pinctrl & soc_mesong12 66file arch/arm/amlogic/mesongxbb_pinctrl.c meson_pinctrl & soc_mesongxbb 67file arch/arm/amlogic/mesongxl_pinctrl.c meson_pinctrl & soc_mesongxl 68 69# Meson8b SDHC 70device mesonsdhc: sdmmcbus 71attach mesonsdhc at fdt with meson_sdhc 72file arch/arm/amlogic/meson_sdhc.c meson_sdhc 73 74# Meson8b SDIO 75device mesonsdio: sdmmcbus 76attach mesonsdio at fdt with meson_sdio 77file arch/arm/amlogic/meson_sdio.c meson_sdio 78 79# Meson GX MMC 80device mesongxmmc: sdmmcbus 81attach mesongxmmc at fdt with mesongx_mmc 82file arch/arm/amlogic/mesongx_mmc.c mesongx_mmc 83 84# USB PHY 85device mesonusbphy 86attach mesonusbphy at fdt with meson_usbphy 87file arch/arm/amlogic/meson_usbphy.c meson_usbphy 88 89# Meson GXL USB2 PHY 90device mesongxlu2phy 91attach mesongxlu2phy at fdt with mesongxl_usb2phy 92file arch/arm/amlogic/mesongxl_usb2phy.c mesongxl_usb2phy 93 94# Meson GXL USB3 PHY 95device mesongxlu3phy 96attach mesongxlu3phy at fdt with mesongxl_usb3phy 97file arch/arm/amlogic/mesongxl_usb3phy.c mesongxl_usb3phy 98 99# Meson G12 USB2 PHY 100device mesong12u2phy 101attach mesong12u2phy at fdt with mesong12_usb2phy 102file arch/arm/amlogic/mesong12_usb2phy.c mesong12_usb2phy 103 104# Meson G12 USB3/PCIE PHY 105device mesong12u3pphy 106attach mesong12u3pphy at fdt with mesong12_usb3pciephy 107file arch/arm/amlogic/mesong12_usb3pciephy.c mesong12_usb3pciephy 108 109# Meson G12 USB 110device mesonusbctrl 111attach mesonusbctrl at fdt with meson_usbctrl 112file arch/arm/amlogic/meson_usbctrl.c meson_usbctrl 113 114# RTC 115device mesonrtc 116attach mesonrtc at fdt with meson_rtc 117file arch/arm/amlogic/meson_rtc.c meson_rtc 118 119# RNG 120device mesonrng 121attach mesonrng at fdt with meson_rng 122file arch/arm/amlogic/meson_rng.c meson_rng 123 124# GMAC 125attach awge at fdt with meson_dwmac 126file arch/arm/amlogic/meson_dwmac.c meson_dwmac 127 128# Meson GXL internal PHY 129device gxlphy: mii_phy 130attach gxlphy at mii 131file arch/arm/amlogic/gxlphy.c gxlphy 132 133# Meson8b Watchdog 134device mesonwdt: sysmon_wdog 135attach mesonwdt at fdt with meson_wdt 136file arch/arm/amlogic/meson_wdt.c meson_wdt 137 138# Meson GX Watchdog 139device mesongxwdt: sysmon_wdog 140attach mesongxwdt at fdt with mesongx_wdt 141file arch/arm/amlogic/mesongx_wdt.c mesongx_wdt 142 143# Meson Timers 144device meson6timer 145attach meson6timer at fdt with meson6_timer 146file arch/arm/amlogic/meson6_timer.c meson6_timer 147 148# Meson PWM 149device mesonpwm 150attach mesonpwm at fdt with meson_pwm 151file arch/arm/amlogic/meson_pwm.c meson_pwm 152 153# Meson Thermal 154device mesonthermal 155attach mesonthermal at fdt with meson_thermal 156file arch/arm/amlogic/meson_thermal.c meson_thermal 157 158# SOC parameters 159defflag opt_soc.h SOC_MESON 160defflag opt_soc.h SOC_MESON8B: SOC_MESON 161defflag opt_soc.h SOC_MESONG12: SOC_MESON 162defflag opt_soc.h SOC_MESONGX: SOC_MESON 163defflag opt_soc.h SOC_MESONGXBB: SOC_MESONGX 164defflag opt_soc.h SOC_MESONGXL: SOC_MESONGX 165