The NetBSD Project

CVS log for src/sys/arch/arm/nvidia/tegra_xusb.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:44 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, 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.27: +4 -4 lines
Diff to previous 1.27 (colored)

Merge thorpej-cfargs2.

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

Adapt to CFARGS().

Revision 1.27 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:27 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.26: +5 -4 lines
Diff to previous 1.26 (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.21.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:17 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.21: +14 -14 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:08:55 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Give config_found() the same variadic arguments treatment as
config_search().  This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls.  Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:19 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.25: +4 -4 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Wed Jan 27 01:58:15 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Use DEVICE_COMPAT_EOL.

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

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

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 18 02:35:48 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Fri Jan 15 23:11:59 2021 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.21: +7 -6 lines
Diff to previous 1.21 (colored)

use fdtbus_intr_establish_xname

Revision 1.21 / (download) - annotate - [select for diffs], Thu Oct 15 09:33:17 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Initialise xhci_softc sc_ios

Revision 1.20 / (download) - annotate - [select for diffs], Sat Aug 29 19:06:17 2020 UTC (3 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.19: +24 -6 lines
Diff to previous 1.19 (colored)

tegra_xusb: fix xusb static firmware build

To work around objcopy and ld now being unable to create a EABI5 object
from a binary, use the assembler directive .incbin in inline assembly
to pull in the firmware blob.

This also probably makes TEGRA210_XUSB_BIN_STATIC actually work.

Revision 1.12.6.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:36 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.12.6.1: +8 -11 lines
Diff to previous 1.12.6.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sat Nov 16 16:30:09 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.6: +25 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1443:

	sys/arch/arm/nvidia/tegra_xusb.c	1.13-1.14 via patch
	sys/dev/pci/xhci_pci.c			1.13
	sys/dev/usb/usb.c			1.169
	sys/dev/usb/usbdivar.h			1.116
	sys/dev/usb/xhci.c			1.93, 1.95, 1.97
	sys/dev/usb/xhcireg.h			1.11-1.12

Detect USB 3.1

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 13 06:11:31 2019 UTC (4 years, 6 months ago) by skrll
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.18: +5 -5 lines
Diff to previous 1.18 (colored)

Restore %# for PRIxBUSADDR

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 13 05:57:14 2019 UTC (4 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.17: +8 -11 lines
Diff to previous 1.17 (colored)

Use PRIxBUSADDR

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:55 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.12: +95 -47 lines
Diff to previous 1.12 (colored)

Sync with HEAD

Revision 1.12.4.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:15 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.12.4.2: +4 -6 lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Synch with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 8 18:04:00 2019 UTC (5 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.16: +4 -6 lines
Diff to previous 1.16 (colored)

Make TEGRA124_XUSB_BIN_STATIC and TEGRA210_XUSB_BIN_STATIC compile again.

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:33 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.12.4.1: +62 -37 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 14 18:17:36 2018 UTC (5 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.15: +62 -37 lines
Diff to previous 1.15 (colored)

Provide TEGRA210 supplies.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:28 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.12: +33 -8 lines
Diff to previous 1.12 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 16 23:11:47 2018 UTC (5 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.14: +11 -8 lines
Diff to previous 1.14 (colored)

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 1 10:46:02 2018 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +4 -5 lines
Diff to previous 1.13 (colored)

Build fix

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 29 17:48:24 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.12: +25 -2 lines
Diff to previous 1.12 (colored)

 Detect USB 3.1.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:54 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.12.2.1: +944 -0 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

update from HEAD

Revision 1.12.2.1, Tue Sep 26 16:12:45 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.12: +0 -944 lines
FILE REMOVED

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

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 26 16:12:45 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: tls-maxphys, phil-wifi, pgoyette-compat
Changes since 1.11: +11 -3 lines
Diff to previous 1.11 (colored)

More PCIe / XUSBPAD initialization goo for Tegra210.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 25 00:03:34 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +43 -25 lines
Diff to previous 1.10 (colored)

USB works on Tegra X1 now.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 24 20:09:22 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +11 -3 lines
Diff to previous 1.9 (colored)

Enable XUSB power rails at attach

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 22 18:13:36 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +38 -2 lines
Diff to previous 1.8 (colored)

Enable regulators at attach

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 21 23:44:48 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +2 -4 lines
Diff to previous 1.7 (colored)

Enable xusb on tegra210

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 19 20:46:12 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +110 -52 lines
Diff to previous 1.6 (colored)

The xusbpad driver is tegra 124 specific so split it out into a separate
driver. Add (not yet working) tegra 210 support to the xusb driver.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:31 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.4: +104 -113 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:16 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.5: +91 -84 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 28 09:46:49 2017 UTC (6 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, 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
Branch point for: netbsd-8
Changes since 1.5: +91 -84 lines
Diff to previous 1.5 (colored)

Hide the debug output unless either TEGRA_XUSB_DEBUG is defined or
tegra_xusb_debug is set to 1.

Revision 1.1.4.5 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:01 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1.4.4: +15 -31 lines
Diff to previous 1.1.4.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:23 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.2: +17 -31 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 16 12:28:21 2017 UTC (6 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-20170426, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.4: +3 -24 lines
Diff to previous 1.4 (colored)

Add support for multiple clock domains in clk API.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 14 00:19:34 2017 UTC (7 years ago) by jmcneill
Branch: MAIN
Changes since 1.3: +14 -9 lines
Diff to previous 1.3 (colored)

Only route USB ports to XHCI controller after the firmware is loaded
successfully. This gives us working USB (via USB2 controllers) until the
tegra-firmware package is installed.

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:11 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1.4.3: +4 -2 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 27 12:38:00 2017 UTC (7 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Attach the usb2 bus - missed in merge from nick-nhusb

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:04 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.3: +35 -10 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:11 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1.4.2: +35 -10 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 3 12:37:08 2017 UTC (7 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.1: +35 -10 lines
Diff to previous 1.1 (colored)

Do some more error checking.

PR/51551

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Mon Jan 2 16:55:50 2017 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.2: +4 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Parse the extended capabilies to and log each controller port to SS/HS
bus root hub ports.

Create/attach the two buses and adapt the xhci_roothub_ctrl to deal with
both buses and sets of roothub ports.

XXX the roothub ub_devices entry needs work to interact with usbdevs(1)
XXX correctly

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:58 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1.4.1: +800 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:25 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +800 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.4.1, Mon Sep 26 20:05:03 2016 UTC (7 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1: +0 -800 lines
FILE REMOVED

file tegra_xusb.c was added on branch pgoyette-localcount on 2016-11-04 14:48:58 +0000

Revision 1.1.2.1, Mon Sep 26 20:05:03 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -800 lines
FILE REMOVED

file tegra_xusb.c was added on branch nick-nhusb on 2016-10-05 20:55:25 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 26 20:05:03 2016 UTC (7 years, 6 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Branch point for: pgoyette-localcount, nick-nhusb

Add xhci(4) attachment glue and firmware handler for Tegra K1 "XUSB"
xHCI controller.  Adjustments to tegraxusbpad(4) will be needed
to connect the controller to actual USB ports.

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>