head	1.38;
access;
symbols
	perseant-exfatfs-base-20250801:1.38
	perseant-exfatfs-base-20240630:1.38
	perseant-exfatfs:1.38.0.14
	perseant-exfatfs-base:1.38
	netbsd-8-3-RELEASE:1.37
	bouyer-sunxi-drm:1.38.0.12
	bouyer-sunxi-drm-base:1.38
	cjep_sun2x:1.38.0.10
	cjep_sun2x-base:1.38
	cjep_staticlib_x-base1:1.38
	cjep_staticlib_x:1.38.0.8
	cjep_staticlib_x-base:1.38
	thorpej-futex-base:1.38
	bouyer-xenpvh-base2:1.38
	phil-wifi-20200421:1.38
	bouyer-xenpvh-base1:1.38
	phil-wifi-20200411:1.38
	bouyer-xenpvh:1.38.0.6
	bouyer-xenpvh-base:1.38
	phil-wifi-20200406:1.38
	netbsd-8-2-RELEASE:1.37
	ad-namecache-base3:1.38
	ad-namecache-base2:1.38
	ad-namecache-base1:1.38
	ad-namecache:1.38.0.4
	ad-namecache-base:1.38
	netbsd-8-1-RELEASE:1.37
	netbsd-8-1-RC1:1.37
	isaki-audio2:1.38.0.2
	isaki-audio2-base:1.38
	pgoyette-compat-merge-20190127:1.37.8.1
	pgoyette-compat-20190127:1.38
	pgoyette-compat-20190118:1.38
	pgoyette-compat-1226:1.38
	pgoyette-compat-1126:1.38
	pgoyette-compat-1020:1.38
	pgoyette-compat-0930:1.38
	pgoyette-compat-0906:1.38
	netbsd-7-2-RELEASE:1.8.10.5
	pgoyette-compat-0728:1.38
	netbsd-8-0-RELEASE:1.37
	pgoyette-compat-0625:1.38
	netbsd-8-0-RC2:1.37
	pgoyette-compat-0521:1.38
	pgoyette-compat-0502:1.38
	pgoyette-compat-0422:1.38
	netbsd-8-0-RC1:1.37
	pgoyette-compat-0415:1.38
	pgoyette-compat-0407:1.37
	pgoyette-compat-0330:1.37
	pgoyette-compat-0322:1.37
	pgoyette-compat-0315:1.37
	netbsd-7-1-2-RELEASE:1.8.10.5
	pgoyette-compat:1.37.0.8
	pgoyette-compat-base:1.37
	netbsd-7-1-1-RELEASE:1.8.10.5
	tls-maxphys-base-20171202:1.37
	matt-nb8-mediatek:1.37.0.6
	matt-nb8-mediatek-base:1.37
	nick-nhusb-base-20170825:1.37
	perseant-stdc-iso10646:1.37.0.4
	perseant-stdc-iso10646-base:1.37
	netbsd-8:1.37.0.2
	netbsd-8-base:1.37
	prg-localcount2-base3:1.36
	prg-localcount2-base2:1.36
	prg-localcount2-base1:1.36
	prg-localcount2:1.36.0.8
	prg-localcount2-base:1.36
	pgoyette-localcount-20170426:1.36
	bouyer-socketcan-base1:1.36
	jdolecek-ncq:1.36.0.6
	jdolecek-ncq-base:1.36
	pgoyette-localcount-20170320:1.36
	netbsd-7-1:1.8.10.5.0.4
	netbsd-7-1-RELEASE:1.8.10.5
	netbsd-7-1-RC2:1.8.10.5
	nick-nhusb-base-20170204:1.36
	netbsd-7-nhusb-base-20170116:1.8.10.5
	bouyer-socketcan:1.36.0.4
	bouyer-socketcan-base:1.36
	pgoyette-localcount-20170107:1.36
	netbsd-7-1-RC1:1.8.10.5
	nick-nhusb-base-20161204:1.36
	pgoyette-localcount-20161104:1.36
	netbsd-7-0-2-RELEASE:1.8.10.4
	nick-nhusb-base-20161004:1.36
	localcount-20160914:1.36
	netbsd-7-nhusb:1.8.10.5.0.2
	netbsd-7-nhusb-base:1.8.10.5
	pgoyette-localcount-20160806:1.36
	pgoyette-localcount-20160726:1.36
	pgoyette-localcount:1.36.0.2
	pgoyette-localcount-base:1.36
	nick-nhusb-base-20160907:1.36
	nick-nhusb-base-20160529:1.36
	netbsd-7-0-1-RELEASE:1.8.10.4
	nick-nhusb-base-20160422:1.34
	nick-nhusb-base-20160319:1.34
	nick-nhusb-base-20151226:1.33
	netbsd-7-0:1.8.10.4.0.2
	netbsd-7-0-RELEASE:1.8.10.4
	nick-nhusb-base-20150921:1.32
	netbsd-7-0-RC3:1.8.10.4
	netbsd-7-0-RC2:1.8.10.4
	netbsd-7-0-RC1:1.8.10.4
	nick-nhusb-base-20150606:1.31
	nick-nhusb-base-20150406:1.29
	nick-nhusb:1.26.0.2
	nick-nhusb-base:1.26
	tls-maxphys-base:1.8
	tls-maxphys:1.8.0.12
	netbsd-7:1.8.0.10
	netbsd-7-base:1.8
	yamt-pagecache:1.8.0.8
	rmind-smpnet-base:1.8
	rmind-smpnet:1.8.0.6
	rmind-smpnet-nbase:1.8
	yamt-pagecache-base9:1.8
	tls-earlyentropy:1.8.0.4
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	matt-nb5-mips64:1.8.0.2
	riastradh-drm2-base3:1.8;
locks; strict;
comment	@# @;


1.38
date	2018.04.08.13.19.17;	author jmcneill;	state dead;
branches;
next	1.37;
commitid	q5EGfoYzQIhbLDxA;

1.37
date	2017.05.27.21.02.55;	author bouyer;	state Exp;
branches
	1.37.8.1;
next	1.36;
commitid	5Vp3aAWVaRrdt4Tz;

1.36
date	2016.05.27.20.01.49;	author bouyer;	state Exp;
branches
	1.36.4.1;
next	1.35;
commitid	KsPQRycGX9yQQ98z;

1.35
date	2016.04.25.20.15.46;	author bouyer;	state Exp;
branches;
next	1.34;
commitid	rtV91qtItACdY24z;

1.34
date	2015.12.26.16.56.41;	author macallan;	state Exp;
branches;
next	1.33;
commitid	psChJhHUusJGLtOy;

1.33
date	2015.11.22.17.50.48;	author aymeric;	state Exp;
branches;
next	1.32;
commitid	ITTHIoG8NvFJ97Ky;

1.32
date	2015.07.25.15.19.54;	author jmcneill;	state Exp;
branches;
next	1.31;
commitid	meI0rjnGOdaobGuy;

1.31
date	2015.04.20.01.33.22;	author matt;	state Exp;
branches;
next	1.30;
commitid	XnqnYQlQEOdqHgiy;

1.30
date	2015.04.19.21.25.19;	author matt;	state Exp;
branches;
next	1.29;
commitid	ODMZL7ga9tk4kfiy;

1.29
date	2014.12.21.17.40.59;	author jmcneill;	state Exp;
branches;
next	1.28;
commitid	4WhonM5jAy9BUV2y;

1.28
date	2014.12.05.18.54.35;	author jmcneill;	state Exp;
branches;
next	1.27;
commitid	1cMRKYljZtFJPS0y;

1.27
date	2014.12.04.11.16.38;	author jmcneill;	state Exp;
branches;
next	1.26;
commitid	Fdq2hgTP2hFDjI0y;

1.26
date	2014.11.18.01.53.53;	author jmcneill;	state Exp;
branches
	1.26.2.1;
next	1.25;
commitid	yzLglJbxx4jsJBYx;

1.25
date	2014.11.11.19.22.32;	author jmcneill;	state Exp;
branches;
next	1.24;
commitid	UcAapNH6Z8H9LNXx;

1.24
date	2014.11.11.17.00.59;	author jmcneill;	state Exp;
branches;
next	1.23;
commitid	5Cs2afSjai3BYMXx;

1.23
date	2014.11.09.14.30.55;	author jmcneill;	state Exp;
branches;
next	1.22;
commitid	4oqw6QngpXbYcwXx;

1.22
date	2014.11.09.14.10.54;	author jmcneill;	state Exp;
branches;
next	1.21;
commitid	K41bqTW40Rme6wXx;

1.21
date	2014.11.08.00.48.06;	author jmcneill;	state Exp;
branches;
next	1.20;
commitid	i7uMDi3BlcXOGjXx;

1.20
date	2014.11.07.23.00.56;	author matt;	state Exp;
branches;
next	1.19;
commitid	M6BBeZroB0G06jXx;

1.19
date	2014.11.05.15.05.20;	author jmcneill;	state Exp;
branches;
next	1.18;
commitid	EPgNRg5yCxhSw0Xx;

1.18
date	2014.11.02.23.55.48;	author jmcneill;	state Exp;
branches;
next	1.17;
commitid	4MoJS0F0NGWPyFWx;

1.17
date	2014.10.13.12.34.00;	author jmcneill;	state Exp;
branches;
next	1.16;
commitid	nxJfcixLpYYAq2Ux;

1.16
date	2014.10.12.23.57.58;	author jmcneill;	state Exp;
branches;
next	1.15;
commitid	z7EexzmAZmZqfYTx;

1.15
date	2014.10.10.17.48.30;	author jmcneill;	state Exp;
branches;
next	1.14;
commitid	zQTwYoelbbGFgGTx;

1.14
date	2014.09.13.17.48.52;	author jmcneill;	state Exp;
branches;
next	1.13;
commitid	bgKGr4ZxWRhB8dQx;

1.13
date	2014.09.11.02.21.19;	author jmcneill;	state Exp;
branches;
next	1.12;
commitid	gkrxkNfTv2Fn4SPx;

1.12
date	2014.09.08.14.26.16;	author martin;	state Exp;
branches;
next	1.11;
commitid	zxFoipfbykUPayPx;

1.11
date	2014.09.07.17.49.39;	author jmcneill;	state Exp;
branches;
next	1.10;
commitid	96megdH7uJhPkrPx;

1.10
date	2014.09.06.00.15.34;	author jmcneill;	state Exp;
branches;
next	1.9;
commitid	4nwOLtxqnsOcxdPx;

1.9
date	2014.09.04.02.38.18;	author jmcneill;	state Exp;
branches;
next	1.8;
commitid	z8jbYH53JFjaoYOx;

1.8
date	2014.02.25.02.51.52;	author matt;	state Exp;
branches
	1.8.2.1
	1.8.6.1
	1.8.8.1
	1.8.10.1
	1.8.12.1;
next	1.7;
commitid	LkkCfgqUINskBqqx;

1.7
date	2014.02.25.00.08.29;	author jmcneill;	state Exp;
branches;
next	1.6;
commitid	cCan4obXymxlHpqx;

1.6
date	2013.09.08.04.06.44;	author matt;	state Exp;
branches;
next	1.5;
commitid	8Ge88XYhkDiytA4x;

1.5
date	2013.09.08.00.03.59;	author matt;	state Exp;
branches;
next	1.4;
commitid	vD8SBVFkaxdC8z4x;

1.4
date	2013.09.07.00.35.52;	author matt;	state Exp;
branches;
next	1.3;
commitid	i7T89bC8GN6plr4x;

1.3
date	2013.09.04.17.45.40;	author matt;	state Exp;
branches;
next	1.2;
commitid	oSrk5ljJn1EI894x;

1.2
date	2013.09.04.02.39.01;	author matt;	state Exp;
branches;
next	1.1;
commitid	nOIg7YF0NiOg744x;

1.1
date	2013.09.03.18.02.26;	author matt;	state Exp;
branches;
next	;
commitid	H1NfvTJ9TbRug14x;

1.37.8.1
date	2018.04.16.01.59.52;	author pgoyette;	state dead;
branches;
next	;
commitid	qk3nktk0szmTIByA;

1.36.4.1
date	2017.04.18.21.30.38;	author bouyer;	state Exp;
branches;
next	;
commitid	RCPTnE1m4bTdT3Oz;

1.26.2.1
date	2015.04.06.15.17.51;	author skrll;	state Exp;
branches;
next	1.26.2.2;
commitid	pz01Zhy7RP6iGxgy;

1.26.2.2
date	2015.06.06.14.39.54;	author skrll;	state Exp;
branches;
next	1.26.2.3;
commitid	O6LVO5i6UulOvnoy;

1.26.2.3
date	2015.09.22.12.05.36;	author skrll;	state Exp;
branches;
next	1.26.2.4;
commitid	CpNWKp3ozVNTafCy;

1.26.2.4
date	2015.12.27.12.09.29;	author skrll;	state Exp;
branches;
next	1.26.2.5;
commitid	BTSqUD4SdJ5k7AOy;

1.26.2.5
date	2016.03.19.11.29.55;	author skrll;	state Exp;
branches;
next	1.26.2.6;
commitid	2PHKtPSg1vDV9fZy;

1.26.2.6
date	2016.05.29.08.44.16;	author skrll;	state Exp;
branches;
next	1.26.2.7;
commitid	8mlnPW6uSaJU1m8z;

1.26.2.7
date	2017.08.28.17.51.29;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.8.2.1
date	2014.02.25.02.51.52;	author matt;	state dead;
branches;
next	1.8.2.2;
commitid	VbpxIjCucY3YZYtx;

1.8.2.2
date	2014.03.24.18.43.15;	author matt;	state Exp;
branches;
next	;
commitid	VbpxIjCucY3YZYtx;

1.8.6.1
date	2014.02.25.02.51.52;	author rmind;	state dead;
branches;
next	1.8.6.2;
commitid	mL5ZYSzpqK6QS2Bx;

1.8.6.2
date	2014.05.18.17.44.56;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.8.8.1
date	2014.02.25.02.51.52;	author yamt;	state dead;
branches;
next	1.8.8.2;
commitid	VUUXuyNWnt3AKwBx;

1.8.8.2
date	2014.05.22.11.39.30;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.8.10.1
date	2014.11.09.14.42.33;	author martin;	state Exp;
branches;
next	1.8.10.2;
commitid	QysrePhXKUhKgwXx;

1.8.10.2
date	2014.11.14.13.26.46;	author martin;	state Exp;
branches;
next	1.8.10.3;
commitid	BhRxoXogOrV7H9Yx;

1.8.10.3
date	2014.11.14.13.37.39;	author martin;	state Exp;
branches;
next	1.8.10.4;
commitid	27lXzgYHTqjRK9Yx;

1.8.10.4
date	2014.11.23.13.07.04;	author martin;	state Exp;
branches;
next	1.8.10.5;
commitid	ThGsI6145pgqijZx;

1.8.10.5
date	2016.06.22.08.26.05;	author snj;	state Exp;
branches;
next	;
commitid	R8TfWM367U4Sbrbz;

1.8.12.1
date	2014.02.25.02.51.52;	author tls;	state dead;
branches;
next	1.8.12.2;
commitid	jTnpym9Qu0o4R1Nx;

1.8.12.2
date	2014.08.20.00.02.44;	author tls;	state Exp;
branches;
next	1.8.12.3;
commitid	jTnpym9Qu0o4R1Nx;

1.8.12.3
date	2017.12.03.11.35.51;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;


desc
@@


1.38
log
@Remove old Allwinner port.
@
text
@#	$NetBSD: files.awin,v 1.37 2017/05/27 21:02:55 bouyer Exp $
#
# Configuration info for Allwinner ARM Peripherals
#

include "arch/arm/pic/files.pic"
include "arch/arm/cortex/files.cortex"

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/allwinner/awin_board.c
file	arch/arm/arm32/armv7_generic_space.c
file	arch/arm/arm/bus_space_a4x.S

# Console parameters
defparam opt_allwinner.h			CONADDR
defparam opt_allwinner.h			CONSPEED
defparam opt_allwinner.h			CONMODE
defparam opt_allwinner.h			MEMSIZE
defparam opt_allwinner.h			AWIN_WDT_DEFAULT_PERIOD
defflag opt_allwinner.h				AWIN_CONSOLE_EARLY
defflag opt_allwinner.h				AWINETH_COUNTERS
defflag opt_allwinner.h				ALLWINNER_A10: CPU_CORTEXA8
defflag opt_allwinner.h				ALLWINNER_A20: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A31: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A80: CPU_CORTEXA7
defflag opt_allwinner.h				AWIN_GPIO_IGNORE_FW
defflag opt_allwinner.h				AWIN_HDMI_DEBUG
defflag opt_allwinner.h				AWIN_TCON_DEBUG
defflag opt_allwinner.h				AWIN_DEBE_DEBUG
defflag opt_allwinner.h				AWIN_DEBE_FWINIT
defparam opt_allwinner.h			AWIN_DEBE_VIDEOMEM

# SoC I/O attach point
device	awinio { [port=-1] } : bus_space_generic
attach	awinio at mainbus with awin_io
file	arch/arm/allwinner/awin_io.c		awin_io

# A10 Interrupt Controller
device	awinicu
attach	awinicu at awinio with awin_icu
file	arch/arm/allwinner/awin_icu.c		awin_icu

# A10/A20 Watchdog
device	awinwdt : sysmon_wdog
attach	awinwdt at awinio with awin_wdt
file	arch/arm/allwinner/awin_wdt.c		awin_wdt | awin_io needs-flag

# A10/A20 RTC
device	awinrtc
attach	awinrtc at awinio with awin_rtc
file	arch/arm/allwinner/awin_rtc.c		awin_rtc

# A10 Timers
device	awintmr
attach	awintmr at awinio with awin_tmr
file	arch/arm/allwinner/awin_tmr.c		awin_tmr

# A20/A31 64-bit counter
device	awincnt
attach	awincnt at awinio with awin_cnt
file	arch/arm/allwinner/awin_cnt.c		awin_cnt

# A10/A20 UART
options 	COM_AWIN			# for IIR_BUSY
attach	com at awinio with awin_com
file	arch/arm/allwinner/awin_com.c		awin_com

# A10/A20 GPIO
device	awingpio : gpiobus
attach	awingpio at awinio with awin_gpio
file	arch/arm/allwinner/awin_gpio.c		awin_gpio | awin_io  needs-flag

# A10/A20 DMA
device	awindma
attach	awindma at awinio with awin_dma
file	arch/arm/allwinner/awin_dma.c		awin_dma
file	arch/arm/allwinner/awin_dma_a10.c	awin_dma & (allwinner_a10 | allwinner_a20)
file	arch/arm/allwinner/awin_dma_a31.c	awin_dma & (allwinner_a31 | allwinner_a80)

# A10/A20 TWI (IIC)
device	awiniic : i2cbus, i2cexec, mvi2c
attach	awiniic at awinio with awin_twi
file	arch/arm/allwinner/awin_twi.c		awin_twi

# A31 P2WI
device	awinp2wi : i2cbus, i2cexec
attach	awinp2wi at awinio with awin_p2wi
file	arch/arm/allwinner/awin_p2wi.c		awin_p2wi

# A10/A20 NAND controller
device	awinnand : nandbus
attach	awinnand at awinio with awin_nand
file	arch/arm/allwinner/awin_nand.c		awin_nand

# A10/A20 Security System
device	awincrypto : opencrypto
attach	awincrypto at awinio with awin_crypto
file	arch/arm/allwinner/awin_crypto.c	awin_crypto

# A10/A20 EMAC
device	awe { } : ether, ifnet, arp, mii
attach	awe at awinio with awin_eth
file	arch/arm/allwinner/awin_eth.c		awin_eth

# A20 GMAC
attach	awge at awinio with awin_gige
file	arch/arm/allwinner/awin_gige.c		awin_gige

# A20 CAN
device	awincan { } : ifnet
attach	awincan at awinio with awin_can
file	arch/arm/allwinner/awin_can.c		awin_can

# USB2 OTG Controller
attach	motg at awinio with awin_otg
file	arch/arm/allwinner/awin_otg.c		awin_otg

# USB2 Host Controller (EHCI/OHCI)
device	awinusb { }
attach	awinusb at awinio with awin_usb
attach	ohci at awinusb with ohci_awinusb
attach	ehci at awinusb with ehci_awinusb
file	arch/arm/allwinner/awin_usb.c		awin_usb

# A10/A20 SD/MMC Controller (SD/MMC)
device	awinmmc: sdmmcbus
attach	awinmmc at awinio with awin_mmc
file	arch/arm/allwinner/awin_mmc.c		awin_mmc

# A10 WDC Controller (PATA)
attach	wdc at awinio with awin_wdc
file	arch/arm/allwinner/awin_wdc.c		awin_wdc

# A20 AHCI Controller (SATA)
attach	ahcisata at awinio with awin_ahcisata
file	arch/arm/allwinner/awin_ahcisata.c	awin_ahcisata

# A10/A20 Audio Codec (AC)
device	awinac: audiobus, auconv, mulaw, aurateconv
attach	awinac at awinio with awin_ac
file	arch/arm/allwinner/awin_ac.c		awin_ac

# A20/A31 HDMI
device	awinhdmi: edid, videomode
attach	awinhdmi at awinio with awin_hdmi
file	arch/arm/allwinner/awin_hdmi.c		awin_hdmi

# A20 TV Encoder / VGA output
device	awintve: edid, videomode
attach	awintve at awinio with awin_tve
file	arch/arm/allwinner/awin_tve.c		awin_tve

# A20/A31 HDMI audio (HDMIAUDIO)
device	awinhdmiaudio: audiobus, auconv, mulaw, aurateconv, auvolconv
attach	awinhdmiaudio at awinio with awin_hdmiaudio
file	arch/arm/allwinner/awin_hdmiaudio.c	awin_hdmiaudio

# A10/A20/A31 LCD/TV timing controller (TCON)
device	awintcon
attach	awintcon at awinio with awin_tcon
file	arch/arm/allwinner/awin_tcon.c		awin_tcon | awin_hdmi	needs-flag

# A10/A20/A31 Display engine backend (DE-BE)
device	awindebe { }
attach	awindebe at awinio with awin_debe
file	arch/arm/allwinner/awin_debe.c		awin_debe | awin_hdmi

# A10/A20/A31 Mixer processor (MP)
device	awinmp
attach	awinmp at awinio with awin_mp
file	arch/arm/allwinner/awin_mp.c		awin_mp		needs-flag

# Framebuffer
attach	genfb at awindebe with awin_fb: edid
file	arch/arm/allwinner/awin_fb.c		awin_fb		needs-flag

# A10/A20/A31 Consumer IR (CIR)
device	awinir: irbus
attach	awinir at awinio with awin_ir
file	arch/arm/allwinner/awin_ir.c		awin_ir

# A20 LRADC
device	awinlradc
attach	awinlradc at awinio with awin_lradc
file	arch/arm/allwinner/awin_lradc.c		awin_lradc
@


1.37
log
@merge the bouyer-socketcan branch to HEAD.

CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.36 2016/05/27 20:01:49 bouyer Exp $
@


1.37.8.1
log
@Sync with HEAD, resolve some conflicts
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.37 2017/05/27 21:02:55 bouyer Exp $
@


1.36
log
@The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.35 2016/04/25 20:15:46 bouyer Exp $
d113 5
@


1.36.4.1
log
@First draft of a driver for the CAN controller found in the
Allwinner A20 SoC.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.36 2016/05/27 20:01:49 bouyer Exp $
a112 5
# A20 CAN
device	awincan { } : ifnet
attach	awincan at awinio with awin_can
file	arch/arm/allwinner/awin_can.c		awin_can

@


1.35
log
@Add a driver for the lradc device found in allwinner SoCs.
The events are reported as hotkeys press/release to sysmon_power(9).
The levels and associated event names are configured in the fex script
(the channels remain disabled if no appropriate fex script is provided).
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.34 2015/12/26 16:56:41 macallan Exp $
d68 1
a68 1
options 	COM_16750			# for IIR_BUSY
@


1.34
log
@driver for cubietruck's VGA port. Not quite finished but enough to be useful
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.33 2015/11/22 17:50:48 aymeric Exp $
d180 5
@


1.33
log
@do not fail if no awintcon is present so that ALLWINNER_A80 compiles again
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.32 2015/07/25 15:19:54 jmcneill Exp $
d147 5
@


1.32
log
@For DDC, we don't have a real I2C bus, but instead read an EDID block at
a time. Read the blocks ourselves instead of pulling in ddc_read_edid.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.31 2015/04/20 01:33:22 matt Exp $
d155 1
a155 1
file	arch/arm/allwinner/awin_tcon.c		awin_tcon | awin_hdmi
@


1.31
log
@Switch to armv7_generic bus_space.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.30 2015/04/19 21:25:19 matt Exp $
d143 1
a143 1
device	awinhdmi: edid, ddc_read_edid, videomode
@


1.30
log
@Let the ALLWINNER_Axx define the CPU they use
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.29 2014/12/21 17:40:59 jmcneill Exp $
d15 1
a15 1
file	arch/arm/allwinner/awin_space.c
@


1.29
log
@add support for re-using a display mode setup by the bootloader
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.28 2014/12/05 18:54:35 jmcneill Exp $
d26 4
a29 4
defflag opt_allwinner.h				ALLWINNER_A10
defflag opt_allwinner.h				ALLWINNER_A20
defflag opt_allwinner.h				ALLWINNER_A31
defflag opt_allwinner.h				ALLWINNER_A80
@


1.28
log
@A80 DMA controller support
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.27 2014/12/04 11:16:38 jmcneill Exp $
d34 1
@


1.27
log
@Add awinmp(4) glue.

It won't compile (uses nonexistent ioctls) but adding this for posterity.
In my testing, 2D accel for solid fill and copy is considerably slower than
with software rendering, so no sense in turning this on.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26 2014/11/18 01:53:53 jmcneill Exp $
d81 1
a81 1
file	arch/arm/allwinner/awin_dma_a31.c	awin_dma & allwinner_a31
@


1.26
log
@add software volume controls
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.25 2014/11/11 19:22:32 jmcneill Exp $
d161 5
@


1.26.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.29 2014/12/21 17:40:59 jmcneill Exp $
a33 1
defflag opt_allwinner.h				AWIN_DEBE_FWINIT
d81 1
a81 1
file	arch/arm/allwinner/awin_dma_a31.c	awin_dma & (allwinner_a31 | allwinner_a80)
a160 5
# A10/A20/A31 Mixer processor (MP)
device	awinmp
attach	awinmp at awinio with awin_mp
file	arch/arm/allwinner/awin_mp.c		awin_mp		needs-flag

@


1.26.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.1 2015/04/06 15:17:51 skrll Exp $
d15 1
a15 1
file	arch/arm/arm32/armv7_generic_space.c
d26 4
a29 4
defflag opt_allwinner.h				ALLWINNER_A10: CPU_CORTEXA8
defflag opt_allwinner.h				ALLWINNER_A20: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A31: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A80: CPU_CORTEXA7
@


1.26.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.2 2015/06/06 14:39:54 skrll Exp $
d143 1
a143 1
device	awinhdmi: edid, videomode
@


1.26.2.4
log
@Sync with HEAD (as of 26th Dec)
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.3 2015/09/22 12:05:36 skrll Exp $
d155 1
a155 1
file	arch/arm/allwinner/awin_tcon.c		awin_tcon | awin_hdmi	needs-flag
@


1.26.2.5
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.4 2015/12/27 12:09:29 skrll Exp $
a146 5
# A20 TV Encoder / VGA output
device	awintve: edid, videomode
attach	awintve at awinio with awin_tve
file	arch/arm/allwinner/awin_tve.c		awin_tve

@


1.26.2.6
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.5 2016/03/19 11:29:55 skrll Exp $
d68 1
a68 1
options 	COM_AWIN			# for IIR_BUSY
a179 5

# A20 LRADC
device	awinlradc
attach	awinlradc at awinio with awin_lradc
file	arch/arm/allwinner/awin_lradc.c		awin_lradc
@


1.26.2.7
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.26.2.6 2016/05/29 08:44:16 skrll Exp $
a112 5
# A20 CAN
device	awincan { } : ifnet
attach	awincan at awinio with awin_can
file	arch/arm/allwinner/awin_can.c		awin_can

@


1.25
log
@defflag AWIN_HDMI_DEBUG, AWIN_TCON_DEBUG, AWIN_DEBE_DEBUG, and defparam AWIN_DEBE_VIDEOMEM
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.24 2014/11/11 17:00:59 jmcneill Exp $
d147 1
a147 1
device	awinhdmiaudio: audiobus, auconv, mulaw, aurateconv
@


1.24
log
@add HDMI audio driver
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.23 2014/11/09 14:30:55 jmcneill Exp $
d31 4
@


1.23
log
@If we can't determine the preferred display mode for some reason, fallback
to 640x480.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.22 2014/11/09 14:10:54 jmcneill Exp $
d137 1
a137 1
# A10/A20/A31 HDMI
d142 5
@


1.22
log
@awin framebuffer support, not sure if this works yet because hdmi is not working yet
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.21 2014/11/08 00:48:06 jmcneill Exp $
d138 1
a138 1
device	awinhdmi: edid, ddc_read_edid
@


1.21
log
@Note that HDMI is for A31 too
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.20 2014/11/07 23:00:56 matt Exp $
d142 14
@


1.20
log
@Add ALLWINNER_A80
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.19 2014/11/05 15:05:20 jmcneill Exp $
d137 1
a137 1
# A10/A20 HDMI
@


1.19
log
@add 64-bit counter driver; it is certainly slower than gtmr (mutexes involved, etc) but at least it is monotonic with > 1 cpu
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.18 2014/11/02 23:55:48 jmcneill Exp $
d29 1
@


1.18
log
@work in progress CIR driver
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.17 2014/10/13 12:34:00 jmcneill Exp $
d56 5
@


1.17
log
@Split awindma into a frontend and A10/A20 backend; add an A31 DMA backend.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.16 2014/10/12 23:57:58 jmcneill Exp $
d135 5
@


1.16
log
@add A31 P2WI (Push-Pull Two Wire Interface) driver
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.15 2014/10/10 17:48:30 jmcneill Exp $
d70 2
@


1.15
log
@add an option for awin_gpio to ignore firmware pin reservations
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.14 2014/09/13 17:48:52 jmcneill Exp $
d76 5
@


1.14
log
@motg glue (host mode) for allwinner, not quite working yet
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.13 2014/09/11 02:21:19 jmcneill Exp $
d29 1
@


1.13
log
@work in progress HDMI driver, so far it can detect display presence and read the display EDID
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.12 2014/09/08 14:26:16 martin Exp $
d94 4
@


1.12
log
@Config glue for the Designware GMAC core.
Switch allwinner specific awge driver over to use it.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.11 2014/09/07 17:49:39 jmcneill Exp $
d118 5
@


1.11
log
@a10/a20 rtc driver
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.10 2014/09/06 00:15:34 jmcneill Exp $
a90 1
device	awge { } : ether, ifnet, arp, mii
@


1.10
log
@add driver for DMA controller
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.9 2014/09/04 02:38:18 jmcneill Exp $
d45 5
@


1.9
log
@Driver for "Audio Codec" block of A10/A13/A20, not tested.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.8 2014/02/25 02:51:52 matt Exp $
d60 5
@


1.8
log
@Add options COM_16750 to handle the IIR_BUSY interrupt.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.7 2014/02/25 00:08:29 jmcneill Exp $
d104 5
@


1.8.10.1
log
@Catch up to -current as of ~1 hour ago for sys/arch/arm/allwinner and
sys/arch/evbarm/awin. Requested by skrll in ticket #203.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.21 2014/11/08 00:48:06 jmcneill Exp $
a28 2
defflag opt_allwinner.h				ALLWINNER_A80
defflag opt_allwinner.h				AWIN_GPIO_IGNORE_FW
a44 5
# A10/A20 RTC
device	awinrtc
attach	awinrtc at awinio with awin_rtc
file	arch/arm/allwinner/awin_rtc.c		awin_rtc

a49 5
# A20/A31 64-bit counter
device	awincnt
attach	awincnt at awinio with awin_cnt
file	arch/arm/allwinner/awin_cnt.c		awin_cnt

a59 7
# A10/A20 DMA
device	awindma
attach	awindma at awinio with awin_dma
file	arch/arm/allwinner/awin_dma.c		awin_dma
file	arch/arm/allwinner/awin_dma_a10.c	awin_dma & (allwinner_a10 | allwinner_a20)
file	arch/arm/allwinner/awin_dma_a31.c	awin_dma & allwinner_a31

a64 5
# A31 P2WI
device	awinp2wi : i2cbus, i2cexec
attach	awinp2wi at awinio with awin_p2wi
file	arch/arm/allwinner/awin_p2wi.c		awin_p2wi

d81 1
a84 4
# USB2 OTG Controller
attach	motg at awinio with awin_otg
file	arch/arm/allwinner/awin_otg.c		awin_otg

a103 15

# A10/A20 Audio Codec (AC)
device	awinac: audiobus, auconv, mulaw, aurateconv
attach	awinac at awinio with awin_ac
file	arch/arm/allwinner/awin_ac.c		awin_ac

# A10/A20/A31 HDMI
device	awinhdmi: edid, ddc_read_edid
attach	awinhdmi at awinio with awin_hdmi
file	arch/arm/allwinner/awin_hdmi.c		awin_hdmi

# A10/A20/A31 Consumer IR (CIR)
device	awinir: irbus
attach	awinir at awinio with awin_ir
file	arch/arm/allwinner/awin_ir.c		awin_ir
@


1.8.10.2
log
@Pull up following revision(s) (requested by jmcneill in ticket #210):
	sys/arch/arm/allwinner/awin_board.c: revisions 1.26-1.27
	sys/arch/arm/allwinner/awin_debe.c: revisions 1.1-1.6
	sys/arch/arm/allwinner/awin_fb.c: revisions 1.1-1.4
	sys/arch/arm/allwinner/awin_hdmi.c: revisions 1.3-1.6,1.9-1.12
	sys/arch/arm/allwinner/awin_io.c: revision 1.27
	sys/arch/arm/allwinner/awin_reg.h: revisions 1.46-1.47,1.49
	sys/arch/arm/allwinner/awin_tcon.c: revisions 1.1-1.5
	sys/arch/arm/allwinner/awin_var.h: revisions 1.20-1.22
	sys/arch/arm/allwinner/files.awin: revisions 1.22-1.23,1.25
	sys/arch/evbarm/awin/awin_machdep.c: revision 1.26
	sys/arch/evbarm/conf/BPI: revision 1.10
	sys/arch/evbarm/conf/CUBIEBOARD: revision 1.32
	sys/arch/evbarm/conf/HUMMINGBIRD_A31: revisions 1.17-1.18
	sys/dev/wscons/wsconsio.h: revision 1.109

HDMI framebuffer for Allwinner boards.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.8.10.1 2014/11/09 14:42:33 martin Exp $
a30 4
defflag opt_allwinner.h				AWIN_HDMI_DEBUG
defflag opt_allwinner.h				AWIN_TCON_DEBUG
defflag opt_allwinner.h				AWIN_DEBE_DEBUG
defparam opt_allwinner.h			AWIN_DEBE_VIDEOMEM
d138 1
a138 1
device	awinhdmi: edid, ddc_read_edid, videomode
a141 14
# A10/A20/A31 LCD/TV timing controller (TCON)
device	awintcon
attach	awintcon at awinio with awin_tcon
file	arch/arm/allwinner/awin_tcon.c		awin_tcon | awin_hdmi

# A10/A20/A31 Display engine backend (DE-BE)
device	awindebe { }
attach	awindebe at awinio with awin_debe
file	arch/arm/allwinner/awin_debe.c		awin_debe | awin_hdmi

# Framebuffer
attach	genfb at awindebe with awin_fb: edid
file	arch/arm/allwinner/awin_fb.c		awin_fb		needs-flag

@


1.8.10.3
log
@Pull up following revision(s) (requested by jmcneill in ticket #214):
	sys/arch/evbarm/conf/BPI: revision 1.11
	sys/arch/arm/allwinner/awin_hdmi.c: revision 1.10
	sys/arch/arm/allwinner/awin_hdmiaudio.c: revision 1.1
	sys/arch/arm/allwinner/awin_hdmiaudio.c: revision 1.2
	sys/arch/arm/allwinner/awin_hdmiaudio.c: revision 1.3
	sys/arch/evbarm/conf/CUBIEBOARD: revision 1.34
	sys/arch/arm/allwinner/awin_io.c: revision 1.28
	sys/arch/arm/allwinner/awin_reg.h: revision 1.48
	sys/arch/arm/allwinner/awin_debe.c: revision 1.5
	sys/arch/arm/allwinner/awin_dma_a10.c: revision 1.3
	sys/arch/evbarm/conf/HUMMINGBIRD_A31: revision 1.19
	sys/arch/arm/allwinner/files.awin: revision 1.24
	sys/arch/arm/allwinner/awin_board.c: revision 1.28
	sys/arch/arm/allwinner/awin_hdmi.c: revision 1.7
	sys/arch/arm/allwinner/awin_hdmi.c: revision 1.8
HDMI audio driver for Allwinner boards.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.8.10.2 2014/11/14 13:26:46 martin Exp $
d141 1
a141 1
# A20/A31 HDMI
a145 5
# A20/A31 HDMI audio (HDMIAUDIO)
device	awinhdmiaudio: audiobus, auconv, mulaw, aurateconv
attach	awinhdmiaudio at awinio with awin_hdmiaudio
file	arch/arm/allwinner/awin_hdmiaudio.c	awin_hdmiaudio

@


1.8.10.4
log
@Pull up following revision(s) (requested by jmcneill in ticket #249):
	sys/modules/pad/Makefile: revision 1.2
	sys/arch/arm/allwinner/awin_hdmiaudio.c: revision 1.5
	sys/dev/pad/pad.c: revision 1.22
	sys/dev/pad/padvol.c: file removal
	sys/dev/pad/files.pad: revision 1.5
	sys/dev/auvolconv.c: revision 1.1
	sys/dev/pad/padvol.h: file removal
	sys/dev/audio.c: revision 1.266
	sys/dev/files.audio: revision 1.3 (via patch: sys/conf/files)
	sys/dev/auvolconv.h: revision 1.1
	sys/dev/pad/padvar.h: revision 1.5
	sys/dev/audio_if.h: revision 1.70
	sys/arch/arm/allwinner/files.awin: revision 1.26
Add common audio converters for software volume control. Only supports
slinear16_le and slinear16_be for now.
Convert pad(4) and awin_hdmiaudio to use the new converters.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.8.10.3 2014/11/14 13:37:39 martin Exp $
d147 1
a147 1
device	awinhdmiaudio: audiobus, auconv, mulaw, aurateconv, auvolconv
@


1.8.10.5
log
@Pull up following revision(s) (requested by bouyer in ticket #1178):
	sys/arch/arm/allwinner/files.awin: revision 1.36
	sys/conf/files: revision 1.1159
	sys/dev/ic/com.c: revision 1.339
	sys/dev/ic/comreg.h: revision 1.25
	sys/dev/ic/comvar.h: revision 1.82
	sys/dev/ic/ns16550reg.h: revision 1.11
The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.8.10.4 2014/11/23 13:07:04 martin Exp $
d67 1
a67 1
options 	COM_AWIN			# for IIR_BUSY
@


1.8.12.1
log
@file files.awin was added on branch tls-maxphys on 2014-08-20 00:02:44 +0000
@
text
@d1 103
@


1.8.12.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 103
#	$NetBSD$
#
# Configuration info for Allwinner ARM Peripherals
#

include "arch/arm/pic/files.pic"
include "arch/arm/cortex/files.cortex"

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/allwinner/awin_board.c
file	arch/arm/allwinner/awin_space.c
file	arch/arm/arm/bus_space_a4x.S

# Console parameters
defparam opt_allwinner.h			CONADDR
defparam opt_allwinner.h			CONSPEED
defparam opt_allwinner.h			CONMODE
defparam opt_allwinner.h			MEMSIZE
defparam opt_allwinner.h			AWIN_WDT_DEFAULT_PERIOD
defflag opt_allwinner.h				AWIN_CONSOLE_EARLY
defflag opt_allwinner.h				AWINETH_COUNTERS
defflag opt_allwinner.h				ALLWINNER_A10
defflag opt_allwinner.h				ALLWINNER_A20
defflag opt_allwinner.h				ALLWINNER_A31

# SoC I/O attach point
device	awinio { [port=-1] } : bus_space_generic
attach	awinio at mainbus with awin_io
file	arch/arm/allwinner/awin_io.c		awin_io

# A10 Interrupt Controller
device	awinicu
attach	awinicu at awinio with awin_icu
file	arch/arm/allwinner/awin_icu.c		awin_icu

# A10/A20 Watchdog
device	awinwdt : sysmon_wdog
attach	awinwdt at awinio with awin_wdt
file	arch/arm/allwinner/awin_wdt.c		awin_wdt | awin_io needs-flag

# A10 Timers
device	awintmr
attach	awintmr at awinio with awin_tmr
file	arch/arm/allwinner/awin_tmr.c		awin_tmr

# A10/A20 UART
options 	COM_16750			# for IIR_BUSY
attach	com at awinio with awin_com
file	arch/arm/allwinner/awin_com.c		awin_com

# A10/A20 GPIO
device	awingpio : gpiobus
attach	awingpio at awinio with awin_gpio
file	arch/arm/allwinner/awin_gpio.c		awin_gpio | awin_io  needs-flag

# A10/A20 TWI (IIC)
device	awiniic : i2cbus, i2cexec, mvi2c
attach	awiniic at awinio with awin_twi
file	arch/arm/allwinner/awin_twi.c		awin_twi

# A10/A20 NAND controller
device	awinnand : nandbus
attach	awinnand at awinio with awin_nand
file	arch/arm/allwinner/awin_nand.c		awin_nand

# A10/A20 Security System
device	awincrypto : opencrypto
attach	awincrypto at awinio with awin_crypto
file	arch/arm/allwinner/awin_crypto.c	awin_crypto

# A10/A20 EMAC
device	awe { } : ether, ifnet, arp, mii
attach	awe at awinio with awin_eth
file	arch/arm/allwinner/awin_eth.c		awin_eth

# A20 GMAC
device	awge { } : ether, ifnet, arp, mii
attach	awge at awinio with awin_gige
file	arch/arm/allwinner/awin_gige.c		awin_gige

# USB2 Host Controller (EHCI/OHCI)
device	awinusb { }
attach	awinusb at awinio with awin_usb
attach	ohci at awinusb with ohci_awinusb
attach	ehci at awinusb with ehci_awinusb
file	arch/arm/allwinner/awin_usb.c		awin_usb

# A10/A20 SD/MMC Controller (SD/MMC)
device	awinmmc: sdmmcbus
attach	awinmmc at awinio with awin_mmc
file	arch/arm/allwinner/awin_mmc.c		awin_mmc

# A10 WDC Controller (PATA)
attach	wdc at awinio with awin_wdc
file	arch/arm/allwinner/awin_wdc.c		awin_wdc

# A20 AHCI Controller (SATA)
attach	ahcisata at awinio with awin_ahcisata
file	arch/arm/allwinner/awin_ahcisata.c	awin_ahcisata
@


1.8.12.3
log
@update from HEAD
@
text
@d15 1
a15 1
file	arch/arm/arm32/armv7_generic_space.c
d26 3
a28 10
defflag opt_allwinner.h				ALLWINNER_A10: CPU_CORTEXA8
defflag opt_allwinner.h				ALLWINNER_A20: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A31: CPU_CORTEXA7
defflag opt_allwinner.h				ALLWINNER_A80: CPU_CORTEXA7
defflag opt_allwinner.h				AWIN_GPIO_IGNORE_FW
defflag opt_allwinner.h				AWIN_HDMI_DEBUG
defflag opt_allwinner.h				AWIN_TCON_DEBUG
defflag opt_allwinner.h				AWIN_DEBE_DEBUG
defflag opt_allwinner.h				AWIN_DEBE_FWINIT
defparam opt_allwinner.h			AWIN_DEBE_VIDEOMEM
a44 5
# A10/A20 RTC
device	awinrtc
attach	awinrtc at awinio with awin_rtc
file	arch/arm/allwinner/awin_rtc.c		awin_rtc

a49 5
# A20/A31 64-bit counter
device	awincnt
attach	awincnt at awinio with awin_cnt
file	arch/arm/allwinner/awin_cnt.c		awin_cnt

d51 1
a51 1
options 	COM_AWIN			# for IIR_BUSY
a59 7
# A10/A20 DMA
device	awindma
attach	awindma at awinio with awin_dma
file	arch/arm/allwinner/awin_dma.c		awin_dma
file	arch/arm/allwinner/awin_dma_a10.c	awin_dma & (allwinner_a10 | allwinner_a20)
file	arch/arm/allwinner/awin_dma_a31.c	awin_dma & (allwinner_a31 | allwinner_a80)

a64 5
# A31 P2WI
device	awinp2wi : i2cbus, i2cexec
attach	awinp2wi at awinio with awin_p2wi
file	arch/arm/allwinner/awin_p2wi.c		awin_p2wi

d81 1
a84 9
# A20 CAN
device	awincan { } : ifnet
attach	awincan at awinio with awin_can
file	arch/arm/allwinner/awin_can.c		awin_can

# USB2 OTG Controller
attach	motg at awinio with awin_otg
file	arch/arm/allwinner/awin_otg.c		awin_otg

a103 49

# A10/A20 Audio Codec (AC)
device	awinac: audiobus, auconv, mulaw, aurateconv
attach	awinac at awinio with awin_ac
file	arch/arm/allwinner/awin_ac.c		awin_ac

# A20/A31 HDMI
device	awinhdmi: edid, videomode
attach	awinhdmi at awinio with awin_hdmi
file	arch/arm/allwinner/awin_hdmi.c		awin_hdmi

# A20 TV Encoder / VGA output
device	awintve: edid, videomode
attach	awintve at awinio with awin_tve
file	arch/arm/allwinner/awin_tve.c		awin_tve

# A20/A31 HDMI audio (HDMIAUDIO)
device	awinhdmiaudio: audiobus, auconv, mulaw, aurateconv, auvolconv
attach	awinhdmiaudio at awinio with awin_hdmiaudio
file	arch/arm/allwinner/awin_hdmiaudio.c	awin_hdmiaudio

# A10/A20/A31 LCD/TV timing controller (TCON)
device	awintcon
attach	awintcon at awinio with awin_tcon
file	arch/arm/allwinner/awin_tcon.c		awin_tcon | awin_hdmi	needs-flag

# A10/A20/A31 Display engine backend (DE-BE)
device	awindebe { }
attach	awindebe at awinio with awin_debe
file	arch/arm/allwinner/awin_debe.c		awin_debe | awin_hdmi

# A10/A20/A31 Mixer processor (MP)
device	awinmp
attach	awinmp at awinio with awin_mp
file	arch/arm/allwinner/awin_mp.c		awin_mp		needs-flag

# Framebuffer
attach	genfb at awindebe with awin_fb: edid
file	arch/arm/allwinner/awin_fb.c		awin_fb		needs-flag

# A10/A20/A31 Consumer IR (CIR)
device	awinir: irbus
attach	awinir at awinio with awin_ir
file	arch/arm/allwinner/awin_ir.c		awin_ir

# A20 LRADC
device	awinlradc
attach	awinlradc at awinio with awin_lradc
file	arch/arm/allwinner/awin_lradc.c		awin_lradc
@


1.8.8.1
log
@file files.awin was added on branch yamt-pagecache on 2014-05-22 11:39:30 +0000
@
text
@d1 103
@


1.8.8.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 103
#	$NetBSD$
#
# Configuration info for Allwinner ARM Peripherals
#

include "arch/arm/pic/files.pic"
include "arch/arm/cortex/files.cortex"

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/allwinner/awin_board.c
file	arch/arm/allwinner/awin_space.c
file	arch/arm/arm/bus_space_a4x.S

# Console parameters
defparam opt_allwinner.h			CONADDR
defparam opt_allwinner.h			CONSPEED
defparam opt_allwinner.h			CONMODE
defparam opt_allwinner.h			MEMSIZE
defparam opt_allwinner.h			AWIN_WDT_DEFAULT_PERIOD
defflag opt_allwinner.h				AWIN_CONSOLE_EARLY
defflag opt_allwinner.h				AWINETH_COUNTERS
defflag opt_allwinner.h				ALLWINNER_A10
defflag opt_allwinner.h				ALLWINNER_A20
defflag opt_allwinner.h				ALLWINNER_A31

# SoC I/O attach point
device	awinio { [port=-1] } : bus_space_generic
attach	awinio at mainbus with awin_io
file	arch/arm/allwinner/awin_io.c		awin_io

# A10 Interrupt Controller
device	awinicu
attach	awinicu at awinio with awin_icu
file	arch/arm/allwinner/awin_icu.c		awin_icu

# A10/A20 Watchdog
device	awinwdt : sysmon_wdog
attach	awinwdt at awinio with awin_wdt
file	arch/arm/allwinner/awin_wdt.c		awin_wdt | awin_io needs-flag

# A10 Timers
device	awintmr
attach	awintmr at awinio with awin_tmr
file	arch/arm/allwinner/awin_tmr.c		awin_tmr

# A10/A20 UART
options 	COM_16750			# for IIR_BUSY
attach	com at awinio with awin_com
file	arch/arm/allwinner/awin_com.c		awin_com

# A10/A20 GPIO
device	awingpio : gpiobus
attach	awingpio at awinio with awin_gpio
file	arch/arm/allwinner/awin_gpio.c		awin_gpio | awin_io  needs-flag

# A10/A20 TWI (IIC)
device	awiniic : i2cbus, i2cexec, mvi2c
attach	awiniic at awinio with awin_twi
file	arch/arm/allwinner/awin_twi.c		awin_twi

# A10/A20 NAND controller
device	awinnand : nandbus
attach	awinnand at awinio with awin_nand
file	arch/arm/allwinner/awin_nand.c		awin_nand

# A10/A20 Security System
device	awincrypto : opencrypto
attach	awincrypto at awinio with awin_crypto
file	arch/arm/allwinner/awin_crypto.c	awin_crypto

# A10/A20 EMAC
device	awe { } : ether, ifnet, arp, mii
attach	awe at awinio with awin_eth
file	arch/arm/allwinner/awin_eth.c		awin_eth

# A20 GMAC
device	awge { } : ether, ifnet, arp, mii
attach	awge at awinio with awin_gige
file	arch/arm/allwinner/awin_gige.c		awin_gige

# USB2 Host Controller (EHCI/OHCI)
device	awinusb { }
attach	awinusb at awinio with awin_usb
attach	ohci at awinusb with ohci_awinusb
attach	ehci at awinusb with ehci_awinusb
file	arch/arm/allwinner/awin_usb.c		awin_usb

# A10/A20 SD/MMC Controller (SD/MMC)
device	awinmmc: sdmmcbus
attach	awinmmc at awinio with awin_mmc
file	arch/arm/allwinner/awin_mmc.c		awin_mmc

# A10 WDC Controller (PATA)
attach	wdc at awinio with awin_wdc
file	arch/arm/allwinner/awin_wdc.c		awin_wdc

# A20 AHCI Controller (SATA)
attach	ahcisata at awinio with awin_ahcisata
file	arch/arm/allwinner/awin_ahcisata.c	awin_ahcisata
@


1.8.6.1
log
@file files.awin was added on branch rmind-smpnet on 2014-05-18 17:44:56 +0000
@
text
@d1 103
@


1.8.6.2
log
@sync with head
@
text
@a0 103
#	$NetBSD$
#
# Configuration info for Allwinner ARM Peripherals
#

include "arch/arm/pic/files.pic"
include "arch/arm/cortex/files.cortex"

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/allwinner/awin_board.c
file	arch/arm/allwinner/awin_space.c
file	arch/arm/arm/bus_space_a4x.S

# Console parameters
defparam opt_allwinner.h			CONADDR
defparam opt_allwinner.h			CONSPEED
defparam opt_allwinner.h			CONMODE
defparam opt_allwinner.h			MEMSIZE
defparam opt_allwinner.h			AWIN_WDT_DEFAULT_PERIOD
defflag opt_allwinner.h				AWIN_CONSOLE_EARLY
defflag opt_allwinner.h				AWINETH_COUNTERS
defflag opt_allwinner.h				ALLWINNER_A10
defflag opt_allwinner.h				ALLWINNER_A20
defflag opt_allwinner.h				ALLWINNER_A31

# SoC I/O attach point
device	awinio { [port=-1] } : bus_space_generic
attach	awinio at mainbus with awin_io
file	arch/arm/allwinner/awin_io.c		awin_io

# A10 Interrupt Controller
device	awinicu
attach	awinicu at awinio with awin_icu
file	arch/arm/allwinner/awin_icu.c		awin_icu

# A10/A20 Watchdog
device	awinwdt : sysmon_wdog
attach	awinwdt at awinio with awin_wdt
file	arch/arm/allwinner/awin_wdt.c		awin_wdt | awin_io needs-flag

# A10 Timers
device	awintmr
attach	awintmr at awinio with awin_tmr
file	arch/arm/allwinner/awin_tmr.c		awin_tmr

# A10/A20 UART
options 	COM_16750			# for IIR_BUSY
attach	com at awinio with awin_com
file	arch/arm/allwinner/awin_com.c		awin_com

# A10/A20 GPIO
device	awingpio : gpiobus
attach	awingpio at awinio with awin_gpio
file	arch/arm/allwinner/awin_gpio.c		awin_gpio | awin_io  needs-flag

# A10/A20 TWI (IIC)
device	awiniic : i2cbus, i2cexec, mvi2c
attach	awiniic at awinio with awin_twi
file	arch/arm/allwinner/awin_twi.c		awin_twi

# A10/A20 NAND controller
device	awinnand : nandbus
attach	awinnand at awinio with awin_nand
file	arch/arm/allwinner/awin_nand.c		awin_nand

# A10/A20 Security System
device	awincrypto : opencrypto
attach	awincrypto at awinio with awin_crypto
file	arch/arm/allwinner/awin_crypto.c	awin_crypto

# A10/A20 EMAC
device	awe { } : ether, ifnet, arp, mii
attach	awe at awinio with awin_eth
file	arch/arm/allwinner/awin_eth.c		awin_eth

# A20 GMAC
device	awge { } : ether, ifnet, arp, mii
attach	awge at awinio with awin_gige
file	arch/arm/allwinner/awin_gige.c		awin_gige

# USB2 Host Controller (EHCI/OHCI)
device	awinusb { }
attach	awinusb at awinio with awin_usb
attach	ohci at awinusb with ohci_awinusb
attach	ehci at awinusb with ehci_awinusb
file	arch/arm/allwinner/awin_usb.c		awin_usb

# A10/A20 SD/MMC Controller (SD/MMC)
device	awinmmc: sdmmcbus
attach	awinmmc at awinio with awin_mmc
file	arch/arm/allwinner/awin_mmc.c		awin_mmc

# A10 WDC Controller (PATA)
attach	wdc at awinio with awin_wdc
file	arch/arm/allwinner/awin_wdc.c		awin_wdc

# A20 AHCI Controller (SATA)
attach	ahcisata at awinio with awin_ahcisata
file	arch/arm/allwinner/awin_ahcisata.c	awin_ahcisata
@


1.8.2.1
log
@file files.awin was added on branch matt-nb5-mips64 on 2014-03-24 18:43:15 +0000
@
text
@d1 103
@


1.8.2.2
log
@Merge cubie support from HEAD
@
text
@a0 103
#	$NetBSD: files.awin,v 1.8 2014/02/25 02:51:52 matt Exp $
#
# Configuration info for Allwinner ARM Peripherals
#

include "arch/arm/pic/files.pic"
include "arch/arm/cortex/files.cortex"

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/allwinner/awin_board.c
file	arch/arm/allwinner/awin_space.c
file	arch/arm/arm/bus_space_a4x.S

# Console parameters
defparam opt_allwinner.h			CONADDR
defparam opt_allwinner.h			CONSPEED
defparam opt_allwinner.h			CONMODE
defparam opt_allwinner.h			MEMSIZE
defparam opt_allwinner.h			AWIN_WDT_DEFAULT_PERIOD
defflag opt_allwinner.h				AWIN_CONSOLE_EARLY
defflag opt_allwinner.h				AWINETH_COUNTERS
defflag opt_allwinner.h				ALLWINNER_A10
defflag opt_allwinner.h				ALLWINNER_A20
defflag opt_allwinner.h				ALLWINNER_A31

# SoC I/O attach point
device	awinio { [port=-1] } : bus_space_generic
attach	awinio at mainbus with awin_io
file	arch/arm/allwinner/awin_io.c		awin_io

# A10 Interrupt Controller
device	awinicu
attach	awinicu at awinio with awin_icu
file	arch/arm/allwinner/awin_icu.c		awin_icu

# A10/A20 Watchdog
device	awinwdt : sysmon_wdog
attach	awinwdt at awinio with awin_wdt
file	arch/arm/allwinner/awin_wdt.c		awin_wdt | awin_io needs-flag

# A10 Timers
device	awintmr
attach	awintmr at awinio with awin_tmr
file	arch/arm/allwinner/awin_tmr.c		awin_tmr

# A10/A20 UART
options 	COM_16750			# for IIR_BUSY
attach	com at awinio with awin_com
file	arch/arm/allwinner/awin_com.c		awin_com

# A10/A20 GPIO
device	awingpio : gpiobus
attach	awingpio at awinio with awin_gpio
file	arch/arm/allwinner/awin_gpio.c		awin_gpio | awin_io  needs-flag

# A10/A20 TWI (IIC)
device	awiniic : i2cbus, i2cexec, mvi2c
attach	awiniic at awinio with awin_twi
file	arch/arm/allwinner/awin_twi.c		awin_twi

# A10/A20 NAND controller
device	awinnand : nandbus
attach	awinnand at awinio with awin_nand
file	arch/arm/allwinner/awin_nand.c		awin_nand

# A10/A20 Security System
device	awincrypto : opencrypto
attach	awincrypto at awinio with awin_crypto
file	arch/arm/allwinner/awin_crypto.c	awin_crypto

# A10/A20 EMAC
device	awe { } : ether, ifnet, arp, mii
attach	awe at awinio with awin_eth
file	arch/arm/allwinner/awin_eth.c		awin_eth

# A20 GMAC
device	awge { } : ether, ifnet, arp, mii
attach	awge at awinio with awin_gige
file	arch/arm/allwinner/awin_gige.c		awin_gige

# USB2 Host Controller (EHCI/OHCI)
device	awinusb { }
attach	awinusb at awinio with awin_usb
attach	ohci at awinusb with ohci_awinusb
attach	ehci at awinusb with ehci_awinusb
file	arch/arm/allwinner/awin_usb.c		awin_usb

# A10/A20 SD/MMC Controller (SD/MMC)
device	awinmmc: sdmmcbus
attach	awinmmc at awinio with awin_mmc
file	arch/arm/allwinner/awin_mmc.c		awin_mmc

# A10 WDC Controller (PATA)
attach	wdc at awinio with awin_wdc
file	arch/arm/allwinner/awin_wdc.c		awin_wdc

# A20 AHCI Controller (SATA)
attach	ahcisata at awinio with awin_ahcisata
file	arch/arm/allwinner/awin_ahcisata.c	awin_ahcisata
@


1.7
log
@Add Allwinner SD/MMC driver. No DMA yet.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.6 2013/09/08 04:06:44 matt Exp $
d51 1
@


1.6
log
@Rename awinfe to awe and awinge to awge.
Allow properties in awinio0 to disable devices.
Use such a property to disable probing of gige.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.5 2013/09/08 00:03:59 matt Exp $
d91 4
a94 3
# A10/A20 SD/MMC Controller (SDHC)
attach	sdhc at awinio with awin_sdhc
file	arch/arm/allwinner/awin_sdhc.c		awin_sdhc
@


1.5
log
@Add mii attr to ethernet devices
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.4 2013/09/07 00:35:52 matt Exp $
d75 2
a76 2
device	awinfe { } : ether, ifnet, arp, mii
attach	awinfe at awinio with awin_eth
d80 2
a81 2
device	awinge { } : ether, ifnet, arp, mii
attach	awinge at awinio with awin_gige
@


1.4
log
@Flesh out allwinner support.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.3 2013/09/04 17:45:40 matt Exp $
d75 1
a75 1
device	awinfe { } : ether, ifnet, arp
d80 1
a80 1
device	awinge { } : ether, ifnet, arp
@


1.3
log
@Add wdog support.  Use wdog to do reset (works for both A10 & A20).
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.2 2013/09/04 02:39:01 matt Exp $
d57 1
a57 1
file	arch/arm/allwinner/awin_gpio.c		awin_gpio
d60 1
a60 1
device	awiniic : i2cbus, i2cexec
@


1.2
log
@Very very very prelimnary support for cubieboard 1 & 2 based on the
Allwinner A10 & A20 SoCs.  It links and that's about all it does.
Many drivers are stubs with autoconf glue.
com, ahcisata, sdhc, usb might have a chance of working.
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.1 2013/09/03 18:02:26 matt Exp $
d23 1
d41 1
a41 1
device	awinwdt
d43 1
a43 1
file	arch/arm/allwinner/awin_wdt.c		awin_wdt
@


1.1
log
@Files for allwinner a20/a10 (need to compile stuff in evbarm/cubie)
@
text
@d1 1
a1 1
#	$NetBSD: files.awin,v 1.3 2012/12/07 22:18:45 matt Exp $
d15 1
a15 2
file	arch/arm/allwinner/awingen_space.c
file	arch/arm/allwinner/awin_a4x_space.c
d31 2
a32 2
attach	awinio at mainbus
file	arch/arm/allwinner/awinio.c		awinio
d36 2
a37 2
attach	awinicu at awinio
file	arch/arm/allwinner/awinicu.c		awinicu
d41 2
a42 2
attach	awinwdt at awinio
file	arch/arm/allwinner/awinwdt.c		awinwdt
d46 2
a47 2
attach	awintmr at awinio
file	arch/arm/allwinner/awintmr.c		awintmr
d50 2
a51 2
attach	com at awinio with com_awinio
file	arch/arm/allwinner/awin_com.c		com_awinio
d55 2
a56 2
attach	awingpio at awinio
file	arch/arm/allwinner/awin_gpio.c		awingpio
d60 2
a61 2
attach	awiniic at awinio
file	arch/arm/allwinner/awin_twi.c		awiniic
d65 2
a66 2
attach	awinnand at awinio
file	arch/arm/allwinner/awin_nand.c		awinnand
d70 2
a71 2
attach	awincrypto at awinio
file	arch/arm/allwinner/awin_rng.c		awinrng		needs-flag
d75 2
a76 2
attach	awinfe at awinio
file	arch/arm/allwinner/awin_eth.c		awinfe
d80 2
a81 2
attach	awinge at awinio
file	arch/arm/allwinner/awin_gige.c		awinge
d85 1
a85 1
attach	awinusb at awinio
d88 1
a88 1
file	arch/arm/allwinner/awin_usb.c		awinusb
d91 2
a92 2
attach	sdhc at awinio with sdhc_awin
file	arch/arm/allwinner/awin_sdhc.c		sdhc_awin
d95 2
a96 2
attach	wdc at awinio with wdc_awin
file	arch/arm/allwinner/awin_wdc.c		wdc_awin
d99 2
a100 2
attach	ahcisata at awinio with ahcisata_awin
file	arch/arm/allwinner/awin_ahcisata.c	ahcisata_awin
@

