head	1.15;
access;
symbols
	perseant-exfatfs-base-20250801:1.15
	perseant-exfatfs-base-20240630:1.15
	perseant-exfatfs:1.15.0.8
	perseant-exfatfs-base:1.15
	netbsd-9-4-RELEASE:1.4
	bouyer-sunxi-drm:1.15.0.6
	bouyer-sunxi-drm-base:1.15
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x:1.15.0.4
	cjep_sun2x-base:1.15
	cjep_staticlib_x-base1:1.15
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.15.0.2
	cjep_staticlib_x-base:1.15
	thorpej-futex:1.14.0.2
	thorpej-futex-base:1.15
	netbsd-9-1-RELEASE:1.4
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi:1.8.0.6
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.4
	bouyer-xenpvh-base:1.8
	is-mlppp:1.8.0.2
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.7.0.2
	ad-namecache-base:1.7
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.7
	netbsd-9:1.4.0.2
	netbsd-9-base:1.4;
locks; strict;
comment	@# @;


1.15
date	2020.12.23.14.42.38;	author skrll;	state dead;
branches;
next	1.14;
commitid	9XkXJMlUFPLGlSAC;

1.14
date	2020.06.10.19.30.23;	author jmcneill;	state Exp;
branches
	1.14.2.1;
next	1.13;
commitid	uKTkbWZXgcqhiIbC;

1.13
date	2020.06.10.17.57.50;	author jmcneill;	state Exp;
branches;
next	1.12;
commitid	n7wRS0c0QtAtMHbC;

1.12
date	2020.06.03.13.14.01;	author jmcneill;	state Exp;
branches;
next	1.11;
commitid	2PQL11Et57d9rMaC;

1.11
date	2020.05.23.13.39.24;	author rin;	state Exp;
branches;
next	1.10;
commitid	IyRMIx28mcqFVm9C;

1.10
date	2020.05.23.13.24.08;	author skrll;	state Exp;
branches;
next	1.9;
commitid	1CqkBi9gAT4sQm9C;

1.9
date	2020.05.20.09.18.25;	author hkenken;	state Exp;
branches;
next	1.8;
commitid	jpuBKZ9AUpDdAX8C;

1.8
date	2020.01.15.01.09.56;	author jmcneill;	state Exp;
branches
	1.8.6.1;
next	1.7;
commitid	wZwM4NQWkdHIVISB;

1.7
date	2019.10.12.06.46.13;	author skrll;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	7dIRIudCwY3pQxGB;

1.6
date	2019.08.19.11.41.36;	author hkenken;	state Exp;
branches;
next	1.5;
commitid	EWxkkzOKdywodDzB;

1.5
date	2019.08.12.11.45.53;	author skrll;	state Exp;
branches;
next	1.4;
commitid	JRMEvaCWufPIsJyB;

1.4
date	2019.07.30.06.52.57;	author hkenken;	state Exp;
branches;
next	1.3;
commitid	ibPhWkfoH5deg2xB;

1.3
date	2019.07.30.06.26.31;	author hkenken;	state Exp;
branches;
next	1.2;
commitid	yi8biTwhdHI872xB;

1.2
date	2019.07.27.08.02.04;	author skrll;	state Exp;
branches;
next	1.1;
commitid	xbuWsPhYcH9SJEwB;

1.1
date	2019.07.24.13.12.33;	author hkenken;	state Exp;
branches;
next	;
commitid	8Czd4BCeR35pyiwB;

1.14.2.1
date	2021.01.03.16.34.52;	author thorpej;	state dead;
branches;
next	;
commitid	hSJGvbJZNH5wFiCC;

1.8.6.1
date	2020.01.15.01.09.56;	author martin;	state dead;
branches;
next	1.8.6.2;
commitid	X01YhRUPVUDaec4C;

1.8.6.2
date	2020.04.13.08.03.35;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.7.2.1
date	2020.01.17.21.47.24;	author ad;	state Exp;
branches;
next	;
commitid	T9pwLWote7xbI5TB;


desc
@@


1.15
log
@Tidyup the i.MX SoC support by

- Moving the  FDTised code to sys/arch/arm/nxp to match the
  sys/arch/{cpu}/{vendor} convention
- FDTise some more drivers
	- Secure Non-Volatile Storage
	- watchdog driver
	- On chip OTP
- Match fsl,imx6dl
- Add some more drivers to GENERIC that will be supported by i.MX 6
  boards
@
text
@#	$NetBSD: files.imx6,v 1.14 2020/06/10 19:30:23 jmcneill Exp $
#
# Configuration info for the Freescale i.MX6
#

file	arch/arm/imx/fdt/imx6_platform.c	soc_imx

# SOC parameters
defflag	opt_soc.h			SOC_IMX
defflag	opt_soc.h			SOC_IMX6DL: SOC_IMX
defflag	opt_soc.h			SOC_IMX6Q: SOC_IMX
defflag	opt_soc.h			SOC_IMX6QDL: SOC_IMX
defflag	opt_soc.h			SOC_IMX7D: SOC_IMX

# Clock
device	imx6ccm: clk
attach	imx6ccm at fdt
file	arch/arm/imx/imx6_ccm.c		imx6ccm
file	arch/arm/imx/fdt/imx6_clk.c	imx6ccm

# Common FDT clock framework
define	imx_ccm: clk
file	arch/arm/imx/fdt/imx_ccm.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_composite.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_div.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_extclk.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed_factor.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_gate.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_mux.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_pll.c		imx_ccm

# CCM (iMX7D)
device	imx7dccm: imx_ccm
attach	imx7dccm at fdt with imx7d_ccm
file	arch/arm/imx/fdt/imx7d_ccm.c	imx7d_ccm

# CCM (iMX8MQ)
device	imx8mqccm: imx_ccm
attach	imx8mqccm at fdt with imx8mq_ccm
file	arch/arm/imx/fdt/imx8mq_ccm.c	imx8mq_ccm

# GPC
device	imxgpc
attach	imxgpc at fdt
file	arch/arm/imx/fdt/imx6_gpc.c	imxgpc

device	imx7gpc
attach	imx7gpc at fdt
file	arch/arm/imx/fdt/imx7_gpc.c	imx7gpc

# IOMUX
device	imxiomux
attach	imxiomux at fdt
file	arch/arm/imx/fdt/imx6_iomux.c	imxiomux

# GPIO controller
device	imxgpio: gpiobus
attach	imxgpio at fdt
file	arch/arm/imx/imxgpio.c		imxgpio		needs-flag
file	arch/arm/imx/fdt/imx6_gpio.c	imxgpio

# UART
device	imxuart: tty
attach	imxuart at fdt with imx6_com
file	arch/arm/imx/imxuart.c		imxuart	needs-flag
file	arch/arm/imx/fdt/imx6_com.c	imx6_com needs-flag
defflag opt_imxuart.h			IMXUARTCONSOLE

# FEC
device	enet: ether, ifnet, arp, mii, bus_dma_generic
attach	enet at fdt with enet_fdt
file	arch/arm/imx/if_enet.c		enet
file	arch/arm/imx/fdt/if_enet_imx.c	enet_fdt

# SATA
attach	ahcisata at fdt with imx6_ahcisata
file	arch/arm/imx/fdt/imx6_ahcisata.c	imx6_ahcisata

# USB Controller
device	imxusbc { [unit=-1], [irq=-1] } : bus_dma_generic
attach	imxusbc at fdt with imxusbc_fdt
file	arch/arm/imx/fdt/imx6_usb.c		imxusbc_fdt

attach	ehci at imxusbc with imxehci
file	arch/arm/imx/imxusb.c			imxehci

# USB PHY
device	imxusbphy
attach	imxusbphy at fdt
file	arch/arm/imx/fdt/imx6_usbphy.c	imxusbphy

device	imx8mqusbphy
attach	imx8mqusbphy at fdt
file	arch/arm/imx/fdt/imx8mq_usbphy.c	imx8mqusbphy

# SDMMC
attach	sdhc at fdt with imx6_sdhc
file	arch/arm/imx/fdt/imx6_sdhc.c	imx6_sdhc

device	imxpcie: pcibus, clk
attach	imxpcie at fdt with imxpcie_fdt
file	arch/arm/imx/imxpcie.c			imxpcie
file	arch/arm/imx/fdt/imx6_pcie.c		imxpcie_fdt

# iMX iic controller
device	imxi2c: motoi2c, i2cbus, i2cexec
attach	imxi2c at fdt
file	arch/arm/imx/imxi2c.c			imxi2c
file	arch/arm/imx/fdt/imx6_i2c.c		imxi2c

# SPI bus controller
device  imxspi: spibus
attach	imxspi at fdt with imxspi_fdt
file	arch/arm/imx/imxspi.c			imxspi
file	arch/arm/imx/fdt/imx6_spi.c		imxspi_fdt
defparam opt_imxspi.h                   	IMXSPINSLAVES

# PWM
device	imxpwm: pwm, clk
attach	imxpwm at fdt with imxpwm_fdt
file	arch/arm/imx/imxpwm.c			imxpwm
file	arch/arm/imx/fdt/imx6_pwm.c		imxpwm_fdt

# HDMI TX (Designware based)
attach	dwhdmi at fdt with imx6_dwhdmi
file	arch/arm/imx/fdt/imx6_dwhdmi.c		imx6_dwhdmi
@


1.14
log
@Use generic platform definition for i.MX7
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.13 2020/06/10 17:57:50 jmcneill Exp $
@


1.14.2.1
log
@Sync w/ HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.14 2020/06/10 19:30:23 jmcneill Exp $
@


1.13
log
@FDT-ize i.MX7. I don't have a board so this has only been tested on QEMU.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.12 2020/06/03 13:14:01 jmcneill Exp $
a6 1
file	arch/arm/imx/fdt/imx7_platform.c	soc_imx
@


1.12
log
@defflag SOC_IMX6DL and SOC_IMX6Q
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.11 2020/05/23 13:39:24 rin Exp $
d7 1
d14 1
d17 4
a20 4
device	imxccm: clk
attach	imxccm at fdt
file	arch/arm/imx/imx6_ccm.c		imxccm
file	arch/arm/imx/fdt/imx6_clk.c	imxccm
d25 2
a27 2
file	arch/arm/imx/fdt/imx_ccm_gate.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_composite.c	imx_ccm
d30 8
@


1.11
log
@Oops, two more missing clk dependencies...
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.10 2020/05/23 13:24:08 skrll Exp $
d10 2
@


1.10
log
@imx6 kernels are part of GENERIC now
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.9 2020/05/20 09:18:25 hkenken Exp $
d19 1
a19 1
define	imx_ccm
d109 1
a109 1
device	imxpwm: pwm
@


1.9
log
@i.MX support merged into GENERIC kernel.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.8 2020/01/15 01:09:56 jmcneill Exp $
d90 1
a90 2
# PCIe
device	imxpcie: pcibus
@


1.8
log
@Add support for NXP i.MX 8M Dual/8M QuadLite/8M Quad family SoCs.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.7 2019/10/12 06:46:13 skrll Exp $
d13 1
a13 1
device	imxccm : clk
a17 1

d53 1
a53 1
device	imxuart { } : bus_space_generic
a85 1

d103 1
a103 1
device  imxspi : spibus
d105 1
a105 1
file    arch/arm/imx/imxspi.c			imxspi
d109 9
@


1.8.6.1
log
@file files.imx6 was added on branch phil-wifi on 2020-04-13 08:03:35 +0000
@
text
@d1 110
@


1.8.6.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@a0 110
#	$NetBSD: files.imx6,v 1.8 2020/01/15 01:09:56 jmcneill Exp $
#
# Configuration info for the Freescale i.MX6
#

file	arch/arm/imx/fdt/imx6_platform.c	soc_imx

# SOC parameters
defflag	opt_soc.h			SOC_IMX
defflag	opt_soc.h			SOC_IMX6QDL: SOC_IMX

# Clock
device	imxccm : clk
attach	imxccm at fdt
file	arch/arm/imx/imx6_ccm.c		imxccm
file	arch/arm/imx/fdt/imx6_clk.c	imxccm


# Common FDT clock framework
define	imx_ccm
file	arch/arm/imx/fdt/imx_ccm.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_extclk.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_gate.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_composite.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed_factor.c	imx_ccm

# CCM (iMX8MQ)
device	imx8mqccm: imx_ccm
attach	imx8mqccm at fdt with imx8mq_ccm
file	arch/arm/imx/fdt/imx8mq_ccm.c	imx8mq_ccm

# GPC
device	imxgpc
attach	imxgpc at fdt
file	arch/arm/imx/fdt/imx6_gpc.c	imxgpc

device	imx7gpc
attach	imx7gpc at fdt
file	arch/arm/imx/fdt/imx7_gpc.c	imx7gpc

# IOMUX
device	imxiomux
attach	imxiomux at fdt
file	arch/arm/imx/fdt/imx6_iomux.c	imxiomux

# GPIO controller
device	imxgpio: gpiobus
attach	imxgpio at fdt
file	arch/arm/imx/imxgpio.c		imxgpio		needs-flag
file	arch/arm/imx/fdt/imx6_gpio.c	imxgpio

# UART
device	imxuart { } : bus_space_generic
attach	imxuart at fdt with imx6_com
file	arch/arm/imx/imxuart.c		imxuart	needs-flag
file	arch/arm/imx/fdt/imx6_com.c	imx6_com needs-flag
defflag opt_imxuart.h			IMXUARTCONSOLE

# FEC
device	enet: ether, ifnet, arp, mii, bus_dma_generic
attach	enet at fdt with enet_fdt
file	arch/arm/imx/if_enet.c		enet
file	arch/arm/imx/fdt/if_enet_imx.c	enet_fdt

# SATA
attach	ahcisata at fdt with imx6_ahcisata
file	arch/arm/imx/fdt/imx6_ahcisata.c	imx6_ahcisata

# USB Controller
device	imxusbc { [unit=-1], [irq=-1] } : bus_dma_generic
attach	imxusbc at fdt with imxusbc_fdt
file	arch/arm/imx/fdt/imx6_usb.c		imxusbc_fdt

attach	ehci at imxusbc with imxehci
file	arch/arm/imx/imxusb.c			imxehci

# USB PHY
device	imxusbphy
attach	imxusbphy at fdt
file	arch/arm/imx/fdt/imx6_usbphy.c	imxusbphy

device	imx8mqusbphy
attach	imx8mqusbphy at fdt
file	arch/arm/imx/fdt/imx8mq_usbphy.c	imx8mqusbphy


# SDMMC
attach	sdhc at fdt with imx6_sdhc
file	arch/arm/imx/fdt/imx6_sdhc.c	imx6_sdhc

# PCIe
device	imxpcie: pcibus
attach	imxpcie at fdt with imxpcie_fdt
file	arch/arm/imx/imxpcie.c			imxpcie
file	arch/arm/imx/fdt/imx6_pcie.c		imxpcie_fdt

# iMX iic controller
device	imxi2c: motoi2c, i2cbus, i2cexec
attach	imxi2c at fdt
file	arch/arm/imx/imxi2c.c			imxi2c
file	arch/arm/imx/fdt/imx6_i2c.c		imxi2c

# SPI bus controller
device  imxspi : spibus
attach	imxspi at fdt with imxspi_fdt
file    arch/arm/imx/imxspi.c			imxspi
file	arch/arm/imx/fdt/imx6_spi.c		imxspi_fdt
defparam opt_imxspi.h                   	IMXSPINSLAVES

@


1.7
log
@Spell controller correctly
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.6 2019/08/19 11:41:36 hkenken Exp $
d18 15
d38 4
d83 5
@


1.7.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.8 2020/01/15 01:09:56 jmcneill Exp $
a17 15

# Common FDT clock framework
define	imx_ccm
file	arch/arm/imx/fdt/imx_ccm.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_extclk.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_gate.c		imx_ccm
file	arch/arm/imx/fdt/imx_ccm_composite.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed.c	imx_ccm
file	arch/arm/imx/fdt/imx_ccm_fixed_factor.c	imx_ccm

# CCM (iMX8MQ)
device	imx8mqccm: imx_ccm
attach	imx8mqccm at fdt with imx8mq_ccm
file	arch/arm/imx/fdt/imx8mq_ccm.c	imx8mq_ccm

a22 4
device	imx7gpc
attach	imx7gpc at fdt
file	arch/arm/imx/fdt/imx7_gpc.c	imx7gpc

a63 5
device	imx8mqusbphy
attach	imx8mqusbphy at fdt
file	arch/arm/imx/fdt/imx8mq_usbphy.c	imx8mqusbphy


@


1.6
log
@Add support SPI driver for i.MX6.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.5 2019/08/12 11:45:53 skrll Exp $
d74 1
a74 1
# iMX iic Controler
d80 1
a80 1
# SPI bus controlloer
@


1.5
log
@Rearrange so that sys/arch/arm/imx/fdt/files.imx6 can be included by
sys/arch/evbarm/conf/files.generic
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.4 2019/07/30 06:52:57 hkenken Exp $
d79 8
@


1.4
log
@Add IIC support.
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.3 2019/07/30 06:26:31 hkenken Exp $
a5 8
file	arch/arm/arm32/arm32_boot.c
file	arch/arm/arm32/arm32_kvminit.c
file	arch/arm/arm32/arm32_reboot.c
file	arch/arm/arm32/irq_dispatch.S
file	arch/arm/arm32/armv7_generic_space.c
file	arch/arm/arm/arm_generic_dma.c
file	arch/arm/arm/bus_space_a4x.S

@


1.3
log
@Remove fdtbus_gpio_release() from enet_phy_reset().
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.2 2019/07/27 08:02:04 skrll Exp $
d81 6
@


1.2
log
@Fix builds properly
@
text
@d1 1
a1 1
#	$NetBSD: files.imx6,v 1.1 2019/07/24 13:12:33 hkenken Exp $
d51 1
a51 1
attach	enet at fdt
d53 1
a53 1
file	arch/arm/imx/fdt/if_enet_imx.c	enet
@


1.1
log
@Add support for device tree.

+ CCM (clk)
+ COM (uart)
+ GPIO
+ IOMUX (pin control)
+ PCIe
+ SDHC
+ USB Host
+ USB phy
@
text
@d1 1
a1 1
#	$NetBSD$
d39 1
a39 1
file	arch/arm/imx/imxgpio.c		imxgpio
@

