The NetBSD Project

CVS log for src/sys/arch/arm/allwinner/Attic/awin_gpio.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.22.16.1
Mon Apr 16 01:59:52 2018 UTC (6 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
FILE REMOVED
Changes since revision 1.22: +1 -1 lines
Sync with HEAD, resolve some conflicts

Revision 1.23
Sun Apr 8 13:19:17 2018 UTC (6 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-futex-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, isaki-audio2-base, isaki-audio2, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
FILE REMOVED
Changes since revision 1.22: +1 -1 lines
Remove old Allwinner port.

Revision 1.8.12.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:35:51 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.8.12.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.12.2: +408 -28 lines
update from HEAD

Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:16 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.3: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.3: +182 -17 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu May 26 07:45:51 2016 UTC (8 years, 8 months ago) by bouyer
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -3 lines
Remove a KASSERT() which is A20-specific, as well as the local variable
used here.
Fix "error: unused variable 'grp'" for non-DIAGNOSTIC kernels,
reported by Rin Okuyama.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 11 18:33:40 2016 UTC (8 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +184 -17 lines
As proposed in
http://mail-index.netbsd.org/tech-kern/2016/04/28/msg020504.html
add gpio interrupt support to the gpio framework, and an implementation
for the allwinner gpio backend (tested on A20 only).
gpio(4) has new public functions:
- gpio_intr() called by backends when an interrupt condition for
  a gpio pin is present
- gpio_find_device() and gpio_get_name(), support functions for
  gpio(4) users, wich respectively returns a void * cookie for a gpio device
  given its name, and returns the name given the cookie.
- gpio_pin_ctl_intr(), which is used to configure interrupts on a gpio pin and
  registers a callback.
- gpio_pin_irqen(), which is used to mask/unmask interrupts on a pin.

Nothing in the NetBSD tree uses this yet, but I have a i2c driver
(at https://github.com/mbouyer/marine_chartplotter/tree/master/software/NetBSD/driver) which uses it.

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:29 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.2: +30 -2 lines
Sync with HEAD (as of 26th Dec)

Revision 1.8.10.6: download - view: text, markup, annotated - select for diffs
Sat Nov 7 01:53:43 2015 UTC (9 years, 3 months ago) by riz
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Diff to: previous 1.8.10.5: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.10.5: +30 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #1004):
	sys/arch/arm/allwinner/awin_gpio.c: revision 1.19
	sys/arch/arm/allwinner/awin_gpio.c: revision 1.20
Print the port name when gpio(4) attaches, makes it much easier to find
what port is connected to what gpio instance:
gpio0 at awingpio0: 18 pins
gpio0: port B
gpio1 at awingpio0: 25 pins
gpio1: port C
gpio2 at awingpio0: 28 pins
gpio2: port D
gpio3 at awingpio0: 12 pins
gpio3: port E
gpio4 at awingpio0: 12 pins
gpio4: port G
gpio5 at awingpio0: 28 pins
gpio5: port H
gpio6 at awingpio0: 22 pins
gpio6: port I
Based on suggestion from jared, redo previous using a specific print callback
to avoid the extra line. Now output looks like:
gpio0 at awingpio0 port B: 18 pins
gpio1 at awingpio0 port C: 25 pins
gpio2 at awingpio0 port D: 28 pins
gpio3 at awingpio0 port E: 12 pins
gpio4 at awingpio0 port G: 12 pins
gpio5 at awingpio0 port H: 28 pins
gpio6 at awingpio0 port I: 22 pins

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Oct 2 16:04:40 2015 UTC (9 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +29 -3 lines
Based on suggestion from jared, redo previous using a specific print callback
to avoid the extra line. Now output looks like:
gpio0 at awingpio0 port B: 18 pins
gpio1 at awingpio0 port C: 25 pins
gpio2 at awingpio0 port D: 28 pins
gpio3 at awingpio0 port E: 12 pins
gpio4 at awingpio0 port G: 12 pins
gpio5 at awingpio0 port H: 28 pins
gpio6 at awingpio0 port I: 22 pins

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Oct 2 14:06:02 2015 UTC (9 years, 4 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -2 lines
Print the port name when gpio(4) attaches, makes it much easier to find
what port is connected to what gpio instance:
gpio0 at awingpio0: 18 pins
gpio0: port B
gpio1 at awingpio0: 25 pins
gpio1: port C
gpio2 at awingpio0: 28 pins
gpio2: port D
gpio3 at awingpio0: 12 pins
gpio3: port E
gpio4 at awingpio0: 12 pins
gpio4: port G
gpio5 at awingpio0: 28 pins
gpio5: port H
gpio6 at awingpio0: 22 pins
gpio6: port I

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:39:54 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +20 -20 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Apr 20 01:33:22 2015 UTC (9 years, 9 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Switch to armv7_generic bus_space.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:17:51 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +73 -5 lines
Sync with HEAD

Revision 1.8.10.5: download - view: text, markup, annotated - select for diffs
Sun Mar 15 22:59:39 2015 UTC (9 years, 10 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.8.10.4: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.10.4: +3 -3 lines
Pull up following revision(s) (requested by jmcneill in ticket #595):
	sys/arch/arm/allwinner/awin_eth.c: revision 1.8
	sys/arch/arm/allwinner/awin_gige.c: revision 1.22
	sys/arch/arm/allwinner/awin_gpio.c: revision 1.17
	sys/arch/arm/allwinner/awin_usb.c: revision 1.20
sprinkle __diagused to fix "no options DIAGNOSTIC" build

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 15 13:15:26 2015 UTC (9 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
sprinkle __diagused to fix "no options DIAGNOSTIC" build

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Dec 7 18:32:13 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +40 -7 lines
Add A80 PIO L,M,N and A80 CIR (RX) support.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Dec 5 11:53:43 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +36 -1 lines
A80 gpio and watchdog support

Revision 1.8.10.4: download - view: text, markup, annotated - select for diffs
Tue Nov 25 08:03:06 2014 UTC (10 years, 2 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.8.10.3: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.10.3: +14 -1 lines
Pull up following revision(s) (requested by jmcneill in ticket #260):
	sys/arch/arm/allwinner/awin_var.h: revision 1.26
	sys/arch/arm/allwinner/awin_gige.c: revision 1.19
	sys/arch/arm/allwinner/awin_gpio.c: revision 1.14
Let pinsets override the default multi-driving select level.
--
Set GMAC pin drv level 3 on A31

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 23 23:04:58 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +14 -1 lines
Let pinsets override the default multi-driving select level.

Revision 1.8.10.3: download - view: text, markup, annotated - select for diffs
Mon Nov 10 08:17:45 2014 UTC (10 years, 3 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.8.10.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.10.2: +1 -3 lines
Undo previous "fix" to last pullup - it was completely unneeded, the original
pullup was fine.

Revision 1.8.10.2: download - view: text, markup, annotated - select for diffs
Sun Nov 9 16:25:51 2014 UTC (10 years, 3 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.8.10.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.10.1: +3 -1 lines
Fix pullup mishap in previous

Revision 1.8.10.1: download - view: text, markup, annotated - select for diffs
Sun Nov 9 14:42:33 2014 UTC (10 years, 3 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +114 -8 lines
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.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Nov 2 23:54:16 2014 UTC (10 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +15 -2 lines
fix a kassert for pin group L and M on A31; allow pinset request to pass pin pullup/pulldown flags

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 20 19:05:46 2014 UTC (10 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +94 -18 lines
support PL and PM CPUs-PORT pins on A31

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Oct 15 23:29:24 2014 UTC (10 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -1 lines
A31 support

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 10 17:48:30 2014 UTC (10 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -1 lines
add an option for awin_gpio to ignore firmware pin reservations

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Aug 24 12:42:03 2014 UTC (10 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
pull in opt_arm_debug.h for VERBOSE_INIT_ARM

Revision 1.8.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:44 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.8.12.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.12.1: +625 -0 lines
Rebase to HEAD as of a few days ago.

Revision 1.8.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:30 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.8.8.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.8.1: +625 -0 lines
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")

Revision 1.8.6.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:44:56 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.8.6.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.6.1: +625 -0 lines
sync with head

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 24 18:43:15 2014 UTC (10 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.1: +625 -0 lines
Merge cubie support from HEAD

Revision 1.8.12.1
Thu Feb 20 21:48:38 2014 UTC (10 years, 11 months ago) by tls
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.8: +0 -625 lines
file awin_gpio.c was added on branch tls-maxphys on 2014-08-20 00:02:44 +0000

Revision 1.8.8.1
Thu Feb 20 21:48:38 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.8: +0 -625 lines
file awin_gpio.c was added on branch yamt-pagecache on 2014-05-22 11:39:30 +0000

Revision 1.8.6.1
Thu Feb 20 21:48:38 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
FILE REMOVED
Changes since revision 1.8: +0 -625 lines
file awin_gpio.c was added on branch rmind-smpnet on 2014-05-18 17:44:56 +0000

Revision 1.8.2.1
Thu Feb 20 21:48:38 2014 UTC (10 years, 11 months ago) by matt
Branches: matt-nb5-mips64
FILE REMOVED
Changes since revision 1.8: +0 -625 lines
file awin_gpio.c was added on branch matt-nb5-mips64 on 2014-03-24 18:43:15 +0000

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Feb 20 21:48:38 2014 UTC (10 years, 11 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, netbsd-7, matt-nb5-mips64
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -1 lines
#include <sys/param.h>

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 19 22:13:38 2013 UTC (11 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -1 lines
ist_maps is only used by code in #if 0, so apply it here as well.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Sep 8 00:55:25 2013 UTC (11 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1 lines
Make sure to actual push the configuration of the GPIO to its registers.
With this change, USB now works.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 7 23:47:33 2013 UTC (11 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
correct a typo in awin_gpio_pin_ctl that would have prevented configuring output pins

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Sep 7 19:47:28 2013 UTC (11 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +309 -23 lines
Finish off GPIO handler.  Add hook for other driver to access a named gpio.
Add two input gpio's for usb0.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 7 02:09:23 2013 UTC (11 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -1 lines
Add #ifdef VERBOSE_INIT_ARM

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 7 00:35:52 2013 UTC (11 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +248 -6 lines
Flesh out allwinner support.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Sep 4 02:39:01 2013 UTC (11 years, 5 months ago) by matt
Branches: MAIN
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.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>