The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sunxi_gpio.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 28 05:19:03 2022 UTC (21 months, 2 weeks ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.37: +6 -2 lines
Diff to previous 1.37 (colored)

Add support for Lichee Pi Zero from Rui-Xiang Guo on port-arm

Revision 1.37 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:45 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Merge thorpej-cfargs2.

Revision 1.36.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 16:51:29 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Adapt to CFARGS().

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:28 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:19 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.28: +46 -28 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Mar 23 07:14:45 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:20 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jan 27 02:09:39 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Use DEVICE_COMPAT_EOL.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 25 14:20:39 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jan 18 13:29:37 2021 UTC (3 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Trailing whitespace

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 18 02:35:49 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +42 -23 lines
Diff to previous 1.30 (colored)

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 15 22:47:32 2021 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

use fdtbus_intr_establish_xname

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 15 00:38:23 2021 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 27 16:35:13 2020 UTC (3 years, 7 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Avoid undefined behaviour as detected by KUBSAN

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:38 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.21.2.1: +2 -4 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Thu Oct 3 17:23:11 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.26: +2 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #276):

	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.14
	sys/arch/arm/rockchip/rk3399_iomux.c: revision 1.6
	sys/dev/fdt/fdtvar.h: revision 1.54
	sys/arch/arm/broadcom/bcm2835_gpio.c: revision 1.14
	sys/dev/i2c/axppmic.c: revision 1.26
	sys/arch/arm/nvidia/tegra_pinmux.c: revision 1.4
	sys/arch/arm/rockchip/rk3328_iomux.c: revision 1.3
	sys/dev/fdt/fdt_pinctrl.c: revision 1.10
	sys/arch/arm/amlogic/meson_pinctrl.c: revision 1.6
	sys/dev/fdt/fdtbus.c: revision 1.30
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.27

Add support for devices with separate "init" and "default" pinctrl states.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 1 23:32:52 2019 UTC (4 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.26: +2 -4 lines
Diff to previous 1.26 (colored)

Add support for devices with separate "init" and "default" pinctrl states.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:56 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.21: +241 -76 lines
Diff to previous 1.21 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 4 19:49:43 2019 UTC (4 years, 10 months ago) by tnn
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.25: +8 -2 lines
Diff to previous 1.25 (colored)

sunxi_gpio: set interrupt debounce filter to HOSC instead of LOSC

This improves gpio ISR response time from ~1.5ms to ~5us.

The hardware debounce filter is of limited value anyway because if we
at some point want to support interrupts from mechanical switches in
gpiobutton(4) it will still need a software debounce filter to be portable
to devices without hardware debouncing capability.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 30 18:19:36 2019 UTC (4 years, 10 months ago) by tnn
Branch: MAIN
Changes since 1.24: +149 -59 lines
Diff to previous 1.24 (colored)

sunxi_gpio: implement the interrupt API in gpio_chipset_tag

- advertise GPIO pins as interrupt capable via pin_intrcaps
- split establish/disestablish code into fdt attach specific,
  gpio attach specific and shared parts, similar to the BCM2835 GPIO driver

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 27 23:26:20 2019 UTC (4 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +75 -4 lines
Diff to previous 1.23 (colored)

Fix support for Allwinner-specific pin bindings and add support for pink bank regulators

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:01 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.19.2.2: +20 -22 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 26 14:38:30 2019 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, isaki-audio2-base, isaki-audio2
Changes since 1.22: +7 -7 lines
Diff to previous 1.22 (colored)

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings.  Use these defined constants rather than magic numbers.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 23 04:21:54 2019 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +15 -17 lines
Diff to previous 1.21 (colored)

Implement subroutines for parsing out some of the generic properties
specified in the pinctrl bindings, and adapt Meson, Rockchip, and
Allwinner pinctrl back-ends to use them.

Ok jmcneill@

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:40 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.19.2.1: +5 -2 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 31 20:52:53 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored)

sunxi_gpio_release: hold lock around call to sunxi_gpio_ctl

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:12 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 3 16:01:25 2018 UTC (6 years ago) by bouyer
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Consistently name the interrupt function "irq" and use this name
in sunxi_gpio_establish(). This is the name used by linux.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 3 01:19:07 2018 UTC (6 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.18: +6 -2 lines
Diff to previous 1.18 (colored)

Attach H6 gpio

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:56 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.18.2.1: +881 -0 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

update from HEAD

Revision 1.18.2.1, Tue Nov 7 07:19:13 2017 UTC (6 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.18: +0 -881 lines
FILE REMOVED

file sunxi_gpio.c was added on branch tls-maxphys on 2017-12-03 11:35:56 +0000

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 7 07:19:13 2017 UTC (6 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Trailing whitespace

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 6 21:03:58 2017 UTC (6 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Add support for NextThing GR8.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 11 10:52:54 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (colored)

Add H5 (sun50i) support.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 8 18:00:36 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +52 -29 lines
Diff to previous 1.14 (colored)

Add Allwinner A80 (sun9i) support.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Oct 6 21:20:59 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +8 -2 lines
Diff to previous 1.13 (colored)

Add sun4i (A10) and sun7i (A20) GPIO support.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 12 10:46:33 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Fix non-MULTIPROCESSOR builds

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:32 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.12.2.1: +635 -0 lines
Diff to previous 1.12.2.1 (colored) next main 1.13 (colored)

Sync with HEAD

Revision 1.12.2.1, Sat Aug 26 17:59:24 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.12: +0 -846 lines
FILE REMOVED

file sunxi_gpio.c was added on branch nick-nhusb on 2017-08-28 17:51:32 +0000

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 26 17:59:24 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Branch point for: nick-nhusb
Changes since 1.11: +213 -2 lines
Diff to previous 1.11 (colored)

Add support for interrupt pins.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 25 00:07:03 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

Add initial support for Allwinner A13 and R8 SoCs.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Aug 12 23:42:52 2017 UTC (6 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +90 -18 lines
Diff to previous 1.9 (colored)

Add support for deprecated pin configuration and multiplex bindings.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 23 10:16:08 2017 UTC (6 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

Add sun50i gpio and platform support.

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Tue Jul 18 19:13:08 2017 UTC (6 years, 8 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.8.4.1: +556 -0 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #114):
	sys/arch/arm/samsung/exynos_intr.h: revision 1.3
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_gates.c: revision 1.1
	distrib/utils/embedded/mkimage: revision 1.66
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_rsb.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.6
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.7
	sys/dev/gpio/gpio.c: revision 1.59
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.1
	sys/conf/Makefile.kern.inc: revision 1.257
	sys/arch/evbarm/conf/ODROID-XU_INSTALL: file removal
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.2
	sys/conf/Makefile.kern.inc: revision 1.258
	sys/arch/arm/fdt/psci_fdt.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_resets.c: revision 1.1
	sys/arch/evbarm/conf/files.sunxi: revision 1.1
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.8
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.9
	sys/arch/arm/samsung/files.exynos: revision 1.22
	distrib/utils/embedded/conf/armv7.conf: revision 1.13
	sys/arch/arm/samsung/files.exynos: revision 1.23
	sys/arch/evbarm/conf/std.tegra: revision 1.15
	distrib/utils/embedded/conf/armv7.conf: revision 1.14
	sys/arch/arm/samsung/files.exynos: revision 1.24
	distrib/utils/embedded/conf/armv7.conf: revision 1.15
	sys/arch/evbarm/sunxi/genassym.cf: revision 1.1
	sys/arch/arm/samsung/exynos_fdt.c: file removal
	sys/dev/fdt/fdt_pinctrl.c: revision 1.4
	sys/arch/arm/samsung/exynos_sysmmu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.1
	sys/dev/usb/ehci.c: revision 1.255
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_ccu.h: revision 1.1
	sys/dev/ic/dwc_mmc.c: revision 1.11
	sys/arch/arm/cortex/gic.c: revision 1.24
	distrib/evbarm/instkernel/ramdisk/Makefile: revision 1.17
	etc/etc.evbarm/Makefile.inc: revision 1.87
	etc/etc.evbarm/Makefile.inc: revision 1.88
	sys/arch/arm/fdt/gic_fdt.c: revision 1.5
	etc/Makefile: revision 1.429
	sys/arch/arm/fdt/gic_fdt.c: revision 1.6
	sys/arch/arm/fdt/gic_fdt.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.2
	sys/arch/evbarm/conf/std.sunxi: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.3
	sys/arch/evbarm/conf/std.sunxi: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.4
	sys/arch/evbarm/conf/std.sunxi: revision 1.3
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu_div.c: revision 1.1
	sys/dev/gpio/gpiovar.h: revision 1.17
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.8
	sys/arch/arm/sunxi/sunxi_rsb.h: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.12
	sys/dev/fdt/fdtvar.h: revision 1.21
	sys/arch/evbarm/sunxi/sunxi_start.S: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.13
	sys/dev/fdt/fdtvar.h: revision 1.22
	sys/arch/evbarm/conf/SUNXI: revision 1.10
	sys/dev/fdt/fdtvar.h: revision 1.23
	sys/arch/evbarm/conf/SUNXI: revision 1.11
	sys/dev/fdt/gpioleds.c: revision 1.1
	sys/dev/fdt/fdtvar.h: revision 1.24
	sys/arch/evbarm/conf/SUNXI: revision 1.12
	sys/arch/evbarm/conf/SUNXI: revision 1.13
	sys/arch/arm/cortex/gic.c: revision 1.30
	sys/arch/evbarm/conf/SUNXI: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.16
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.1
	etc/Makefile: revision 1.430
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.2
	etc/Makefile: revision 1.431
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.17
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.4
	sys/arch/arm/samsung/exynos5422_clock.c: revision 1.6
	sys/arch/arm/samsung/exynos_platform.c: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.29
	sys/arch/arm/samsung/exynos_platform.c: revision 1.2
	sys/arch/evbarm/conf/mk.vexpress: revision 1.3
	sys/arch/arm/samsung/exynos_platform.c: revision 1.3
	sys/arch/evbarm/conf/mk.vexpress: revision 1.4
	sys/arch/arm/samsung/exynos_platform.c: revision 1.4
	sys/arch/arm/arm/psci.h: revision 1.1
	sys/arch/arm/samsung/exynos_platform.c: revision 1.5
	sys/arch/arm/samsung/exynos_platform.c: revision 1.6
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.10
	external/bsd/mdocml/bin/mandoc/Makefile: revision 1.12
	sys/dev/fdt/files.fdt: revision 1.17
	sys/dev/fdt/files.fdt: revision 1.18
	sys/dev/fdt/files.fdt: revision 1.19
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.8
	sys/arch/arm/sunxi/sun8i_a83t_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_mmc.c: revision 1.1
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.9
	sys/arch/arm/conf/files.arm: revision 1.133
	sys/arch/arm/samsung/mct_var.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.2
	sys/arch/evbarm/conf/std.vexpress: revision 1.6
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.3
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.4
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.30
	sys/arch/arm/sunxi/files.sunxi: revision 1.2
	sys/dev/ofw/openfirm.h: revision 1.35
	sys/arch/arm/sunxi/files.sunxi: revision 1.3
	sys/dev/ofw/openfirm.h: revision 1.36
	sys/arch/arm/sunxi/files.sunxi: revision 1.4
	sys/arch/arm/sunxi/files.sunxi: revision 1.5
	sys/arch/evbarm/exynos/exynos_machdep.c: file removal
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.1
	sys/arch/arm/samsung/sscom.c: revision 1.9
	sys/arch/arm/sunxi/files.sunxi: revision 1.6
	sys/dev/fdt/ohci_fdt.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.7
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.8
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.9
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.10
	sys/arch/evbarm/conf/mk.tegra: revision 1.5
	sys/arch/arm/samsung/exynos_dwcmmc.c: revision 1.4
	sys/arch/evbarm/conf/mk.tegra: revision 1.6
	sys/arch/evbarm/conf/EXYNOS: revision 1.15
	sys/arch/evbarm/conf/EXYNOS: revision 1.16
	sys/arch/evbarm/conf/EXYNOS: revision 1.17
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.19
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_emac.h: revision 1.1
	sys/arch/evbarm/conf/mk.sunxi: revision 1.1
	sys/arch/evbarm/include/bootconfig.h: revision 1.7
	sys/arch/evbarm/conf/TEGRA: revision 1.24
	sys/arch/arm/arm/psci.c: revision 1.1
	sys/dev/led.c: revision 1.1
	sys/dev/led.c: revision 1.2
	sys/arch/arm/arm/psci_arm.S: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.2
	sys/dev/fdt/ehci_fdt.c: revision 1.1
	sys/dev/fdt/ehci_fdt.c: revision 1.2
	sys/arch/arm/sunxi/sun6i_a31_ccu.h: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.21
	sys/arch/arm/sunxi/files.sunxi: revision 1.10
	sys/arch/arm/sunxi/files.sunxi: revision 1.11
	sys/dev/fdt/fdtbus.c: revision 1.14
	sys/arch/arm/sunxi/sunxi_mmc.h: revision 1.1
	sys/arch/arm/samsung/exynos5422_dma.c: file removal
	usr.bin/config/mkmakefile.c: revision 1.69
	sys/conf/files: revision 1.1178
	sys/arch/arm/sunxi/sunxi_platform.h: revision 1.1
	sys/arch/evbarm/exynos/exynos_start.S: revision 1.4
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.11
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_rtc.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.h: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.2
	sys/arch/evbarm/conf/SUNXI: revision 1.1
	external/bsd/elftosb/usr.sbin/elftosb/Makefile: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.2
	sys/arch/arm/fdt/psci_fdt.c: revision 1.1
	sys/arch/evbarm/conf/SUNXI: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.4
	sys/arch/evbarm/conf/files.exynos: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.6
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.1
	sys/dev/fdt/fixedfactorclock.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.7
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_gpio.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.8
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.3
	sys/dev/ic/dwc_mmc_reg.h: revision 1.6
	sys/dev/fdt/fdt_subr.c: revision 1.16
	sys/arch/evbarm/conf/SUNXI: revision 1.9
	usr.bin/config/mkmakefile.c: revision 1.70
	sys/dev/fdt/fdt_phy.c: revision 1.1
	sys/arch/evbarm/conf/ODROID-XU: file removal
	sys/arch/arm/fdt/arm_fdt.c: revision 1.4
	sys/arch/arm/samsung/exynos_reg.h: revision 1.14
	sys/conf/files: revision 1.1180
	sys/arch/arm/samsung/exynos_reg.h: revision 1.15
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.6
	sys/dev/ic/dwc_mmc_var.h: revision 1.6
	sys/arch/arm/samsung/exynos_combiner.c: revision 1.7
	sys/arch/evbarm/exynos/platform.h: revision 1.2
	sys/arch/arm/fdt/files.fdt: revision 1.12
	sys/arch/evbarm/conf/std.exynos: revision 1.2
	sys/arch/evbarm/conf/std.exynos: revision 1.3
	sys/arch/arm/rockchip/rockchip_dwcmmc.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.1
	sys/dev/led.h: revision 1.1
	sys/arch/evbarm/conf/std.exynos: revision 1.5
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.2
	sys/arch/evbarm/conf/files.evbarm: revision 1.26
	usr.bin/config/defs.h: revision 1.99
	sys/arch/arm/fdt/arm_fdtvar.h: revision 1.6
	sys/arch/arm/samsung/exynos_soc.c: revision 1.32
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.2
	sys/arch/arm/samsung/mct.c: revision 1.11
	sys/arch/evbarm/conf/ODROID-U: file removal
	sys/arch/arm/samsung/mct.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.4
Get the EXYNOS kernel building again with recent FDT changes. Untested.
Use arm_fdt_cpu_hatch and add mmu entry for DTB
Fix exynos5 devmap, bootstrap, and implement early_putchar.
Calculate UART frequency based on bootloader config.
Fix KERNEL_BASE_PHYS (how did this ever work?)
Avoid divide-by-zero for unconfigured PLLs
Correctly initialize i2cbus attach args.
Add delay and enable mct timecounter.
Fix build w/o VERBOSE_INIT_ARM
Remove ODROID-U and ODROID-XU kernel configs as they no longer work.
- Replace CONSADDR with SSCOM2CONSOLE in example
- Remove gtmr (Exynos5422 uses mct)
- cinclude EXYNOS.local instead of TEGRA.local
Use fdtbus_intr_establish to hook in block interrupts instead of
intr_establish.
Simplify MCT; just enable it and then attach an ARMv7 generic timer.
Add support for building DTB files during kernel build, from christos.
build vexpress-v2p-ca15-tc1.dtb with the kernel
build tegra124-apalis-eval.dtb, tegra124-jetson-tk1.dtb, tegra124-nyan-big.dtb, tegra124-nyan-blaze.dtb, and tegra124-venice2.dtb with the kernel
Allow multiline makeoptions to work by quoting the newline..
Bump for quoting makeoptions with multiple lines.
un-c99
bump required config version for multiline makeoptions feature
Set DTS makeoption in kernel config
Assign DTB files to a variable so we can make -V DTB
put the dtb files with their kernels.
no need for debug printing.
Don't assume that CPU index = GIC CPU interface number. We can determine
the current CPU interface number by reading from the read-only
GICD_ITARGETSR0 through GICD_ITARGETSR7 registers.
This gets interrupts working on Exynos 5422, where the boot processor has
GIC CPU interface #4.
use -v to get the expanded variable.
Use -v to get the expanded variables.
Get baud rate from sclk_uartN instead of uartN. Print IRQ number at attach.
Fix PLL con0 register locations and add uart clocks
Disable exyortc for now, it doesn't work.
More or less a rewrite of dwc_mmc, based on awin_mmc, adding DMA support.
Update for new dwc_mmc driver
Fix dmesg
Add Exynos 5410 clock controller driver.
Fix a few typos in clock parent names for mmc clocks.
From jmcneill@
Update for new dwc_mmc driver
Implement platform reset for exynos5
Attach fdtbus to a /clocks node with no compatible string.
Add support for ARM Power State Coordination Interface (PSCI).
Support interrupt sharing.
Add initial support for Allwinner H3 SoC.
ARM Trusted Firmware reserves SGIs 8-15 for secure use. Even without ATF,
U-Boot on some platforms may use SGIs in this range for the PSCI
implementation.
Change ARMGIC_IPI_BASE to 0 from (16 - NIPI) and add a compile-time assert
to ensure that we don't end up with a conflict.
Add H3 MMC support
SD/MMC clock fixes
Add FDT PHY interface.
Add glue for generic ehci/ohci bindings.
Rename a variable, NFC.
Support parents in different clock domains.
Add USB stuff. Doesn't quite work yet.
Synopsys DesignWare APB UART needs "options COM_AWIN" for now.
Add i2c glue.
Add RTC driver.
PHY registers start at index 1. Now USB works.
Don't allow sharing edge and level triggered interrupts.
Add arm_fdt_memory_dump helper for dumping physical addresses from ddb
Print clocks with aprint_debug
Remove unused defines
Add fdtbus_get_string helper
Add of_search_compatible, which searches an array of compat_data structures
for a matching "compatible" entry matching the supplied OFW node. This
allows us to associate data with compatible strings.
Add driver for Allwinner Gigabit Ethernet (EMAC) as found in sun8i and
later family SoCs.
This is a port of my FreeBSD driver which has been confirmed to work on
Allwinner H3, A83T, and A64 SoCs.
Fix dmesg
Add basic support for Allwinner A31.
Add basic FDT GPIO support.
Fix the pinctrl api to match the spec. A pinctrl config can have more
than one xref, and an xref may have specifier data associated with it.
Enable sunxi pinctrl support
Adjust to new pinctrl API
Add P2WI/RSB driver, based on awin_p2wi.c.
Fix typo in a compat string.
Configure pin defaults at attach
No need to explicitly set pinctrl config 0 now
Fix some register definitions.
Disallow sharing between MPSAFE and non-MPSAFE handlers.
Add of_match_compat_data.
This routine searches an array of compat_data structures for a
matching "compatible" entry matching the supplied OFW node.
Add options __HAVE_CPU_UAREA_ALLOC_IDLELWP
Add support for reserved memory and MEMORY_DISK_DYNAMIC for FDT-based
kernels.
the extent code cannot use the full range of u_long,
so ignore the last page before 4GB too.  ok jmcneill@
Copy install ramdisk to releasedir. Provide both a raw ffs and
Legacy U-Boot version of it.
Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
Let the controller provide a default name for pins. This makes pins easier
to locate when we have multiple banks and a variable number of pins per
bank.
Attach gpio(4) to sunxigpio
Test for kernel build directory before reading DTB list
Add support for Allwinner A83T SoC.
Add A83T files
Fixup busdma sync and locking in the RX path. Disable batch RX/TX ints.
Fix AHB2 register definition and explicitly set AHB2 parent to PLL_PERIPH0/2 -- this gives us 50% more bus bandwidth for emac
Restore TX_INTERVAL_DEFAULT to 64
Drop the sunxi_emac_rx_batch feature. It was originally designed to
reduce the amount of mutex unlock/lock cycles during the RX path on
FreeBSD and if_input, but it is not required to drop the lock before
calling if_percpuq_enqueue on NetBSD.
Write back the data value instead of mask in sunxi_gpio_write
Add a helper for exposing LED controls via sysctl.
Add GPIO LED driver.
add gpioleds
Add misc. gates and resets driver, and explicitly enable PIO clocks
at attach.
Add fdtbus_get_string_index helper.
Add driver for fixed-factor clocks.
Add ffclock
Remove the requirement for ehci to attach after companion devices.
"go for it" - skrll@
Remove the hack to find companion devices and just assume 1 companion if
ETTF flag is not set.
Remove pass numbers for ehci/ohci now that the attach order no longer matters
Use unsigned char for ctype functions, suggested by christos
Add : to body of populate_sunxi to appease bash.
port-evbarm/52388: Fix number of args to a debug printf.

Revision 1.8.4.1, Sat Jul 8 11:12:24 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-8
Changes since 1.8: +0 -556 lines
FILE REMOVED

file sunxi_gpio.c was added on branch netbsd-8 on 2017-07-18 19:13:08 +0000

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 8 11:12:24 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Branch point for: netbsd-8
Changes since 1.7: +16 -2 lines
Diff to previous 1.7 (colored)

Add misc. gates and resets driver, and explicitly enable PIO clocks
at attach.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jul 8 00:26:19 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Write back the data value instead of mask in sunxi_gpio_write

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 6 22:10:14 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

Add support for Allwinner A83T SoC.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 6 10:44:19 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +118 -3 lines
Diff to previous 1.4 (colored)

Attach gpio(4) to sunxigpio

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 2 21:13:06 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +20 -15 lines
Diff to previous 1.3 (colored)

Fix some register definitions.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 2 18:19:26 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Fix typo in a compat string.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 2 15:28:25 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +128 -2 lines
Diff to previous 1.1 (colored)

Enable sunxi pinctrl support

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 2 13:36:46 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN

Add basic FDT GPIO support.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>