Add NVIDIA Tegra XHCI driver and coresponding firmware blob.
MFC after: 3 weeks Approved by: core@ (NVIDIA license)
This commit is contained in:
parent
59b591b1b1
commit
ccf5e68e5b
@ -50,7 +50,7 @@ device vlan # 802.1Q VLAN support
|
||||
#device tun # Packet tunnel.
|
||||
device md # Memory "disks"
|
||||
#device gif # IPv6 and IPv4 tunneling
|
||||
#device firmware # firmware assist module
|
||||
device firmware # firmware assist module
|
||||
device ether # Ethernet support
|
||||
device miibus # Required for ethernet
|
||||
device bpf # Berkeley packet filter (required for DHCP)
|
||||
@ -86,6 +86,8 @@ device pass # Passthrough device (direct ATA/SCSI access)
|
||||
# USB support
|
||||
options USB_HOST_ALIGN=64 # Align usb buffers to cache line size.
|
||||
device ehci # EHCI USB interface
|
||||
device xhci # XHCI USB interface
|
||||
device tegra124_xusb_fw # Tegra XUSB firmware
|
||||
device usb # USB Bus (required)
|
||||
device umass # Disks/Mass storage - Requires scbus and da
|
||||
device uhid # "Human Interface Devices"
|
||||
|
@ -24,6 +24,7 @@ arm/nvidia/tegra_uart.c optional uart
|
||||
arm/nvidia/tegra_sdhci.c optional sdhci
|
||||
arm/nvidia/tegra_gpio.c optional gpio
|
||||
arm/nvidia/tegra_ehci.c optional ehci
|
||||
arm/nvidia/tegra_xhci.c optional xhci
|
||||
arm/nvidia/tegra_ahci.c optional ahci
|
||||
arm/nvidia/tegra_pcie.c optional pci
|
||||
arm/nvidia/tegra_i2c.c optional iic
|
||||
@ -45,11 +46,25 @@ arm/nvidia/tegra_mc.c standard
|
||||
#arm/nvidia/drm2/tegra_fb.c optional drm2
|
||||
#arm/nvidia/drm2/tegra_bo.c optional drm2
|
||||
#
|
||||
# Optional devices.
|
||||
# Firmware
|
||||
#
|
||||
|
||||
tegra124_xusb_fw.c optional tegra124_xusb_fw \
|
||||
dependency "$S/arm/nvidia/tegra124/files.tegra124" \
|
||||
compile-with "${AWK} -f $S/tools/fw_stub.awk tegra124_xusb.fw:tegra124_xusb_fw -mtegra124_xusb_fw -c${.TARGET}" \
|
||||
no-implicit-rule before-depend local \
|
||||
clean "tegra124_xusb_fw.c"
|
||||
tegra124_xusb.fwo optional tegra124_xusb_fw \
|
||||
dependency "tegra124_xusb.fw" \
|
||||
compile-with "${NORMAL_FWO}" \
|
||||
no-implicit-rule \
|
||||
clean "tegra124_xusb.fwo"
|
||||
tegra124_xusb.fw optional tegra124_xusb_fw \
|
||||
dependency "$S/contrib/dev/nvidia/tegra124_xusb.bin.uu" \
|
||||
compile-with "${NORMAL_FW}" \
|
||||
no-obj no-implicit-rule \
|
||||
clean "tegra124_xusb.fw"
|
||||
#
|
||||
# Temporary/ to be moved stuff
|
||||
# Temporary/to be moved stuff
|
||||
#
|
||||
arm/nvidia/as3722.c optional iic
|
||||
arm/nvidia/as3722_regulators.c optional iic
|
||||
|
1160
sys/arm/nvidia/tegra_xhci.c
Normal file
1160
sys/arm/nvidia/tegra_xhci.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -42,5 +42,7 @@
|
||||
/* reg = <0x0 0x80000000 0x0 0x80000000>; */
|
||||
reg = <0x0 0x80000000 0x0 0x70000000>;
|
||||
};
|
||||
|
||||
usb@0,70090000 {
|
||||
freebsd,clock-xusb-gate = <&tegra_car 143>;
|
||||
};
|
||||
};
|
||||
|
131
sys/contrib/dev/nvidia/LICENCE.nvidia
Normal file
131
sys/contrib/dev/nvidia/LICENCE.nvidia
Normal file
@ -0,0 +1,131 @@
|
||||
License For Customer Use of NVIDIA Software
|
||||
|
||||
|
||||
IMPORTANT NOTICE -- READ CAREFULLY: This License For Customer Use of
|
||||
NVIDIA Software ("LICENSE") is the agreement which governs use of
|
||||
the software of NVIDIA Corporation and its subsidiaries ("NVIDIA")
|
||||
downloadable herefrom, including computer software and associated
|
||||
printed materials ("SOFTWARE"). By downloading, installing, copying,
|
||||
or otherwise using the SOFTWARE, you agree to be bound by the terms
|
||||
of this LICENSE. If you do not agree to the terms of this LICENSE,
|
||||
do not download the SOFTWARE.
|
||||
|
||||
RECITALS
|
||||
|
||||
Use of NVIDIA's products requires three elements: the SOFTWARE, the
|
||||
hardware, and a personal computer. The SOFTWARE is protected by copyright
|
||||
laws and international copyright treaties, as well as other intellectual
|
||||
property laws and treaties. The SOFTWARE may be protected by various
|
||||
patents, and is not sold, and instead is only licensed for use, strictly
|
||||
in accordance with this document. The hardware is protected by various
|
||||
patents, and is sold, but this agreement does not cover that sale, since
|
||||
it may not necessarily be sold as a package with the SOFTWARE. This
|
||||
agreement sets forth the terms and conditions of the SOFTWARE LICENSE only.
|
||||
|
||||
1. DEFINITIONS
|
||||
|
||||
1.1 Customer. Customer means the entity or individual that
|
||||
downloads or otherwise obtains the SOFTWARE.
|
||||
|
||||
2. GRANT OF LICENSE
|
||||
|
||||
2.1 Rights and Limitations of Grant. NVIDIA hereby grants Customer
|
||||
the following non-exclusive, non-transferable right to use the
|
||||
SOFTWARE, with the following limitations:
|
||||
|
||||
2.1.1 Rights. Customer may install and use multiple copies of the
|
||||
SOFTWARE on a shared computer or concurrently on different computers,
|
||||
and make multiple back-up copies of the SOFTWARE, solely for Customer's
|
||||
use within Customer's Enterprise. "Enterprise" shall mean individual use
|
||||
by Customer or any legal entity (such as a corporation or university)
|
||||
and the subsidiaries it owns by more than fifty percent (50%).
|
||||
|
||||
2.1.2 Open Source Exception. Notwithstanding the foregoing terms
|
||||
of Section 2.1.1, SOFTWARE may be copied and redistributed solely for
|
||||
use on operating systems distributed under the terms of an OSI-approved
|
||||
open source license as listed by the Open Source Initiative at
|
||||
http://opensource.org, provided that the binary files thereof are not
|
||||
modified, and Customer provides a copy of this license with the SOFTWARE.
|
||||
|
||||
2.1.3 Limitations.
|
||||
|
||||
No Reverse Engineering. Customer may not reverse engineer,
|
||||
decompile, or disassemble the SOFTWARE, nor attempt in any other
|
||||
manner to obtain the source code.
|
||||
|
||||
Usage. SOFTWARE is licensed only for use with microprocessor(s) which have
|
||||
been (i) designed by NVIDIA and (ii) either (a) sold by or (b) licensed by
|
||||
NVIDIA. Customer shall not use SOFTWARE in conjunction with, nor cause
|
||||
SOFTWARE to be executed by, any other microprocessor.
|
||||
|
||||
No Translation. Customer shall not translate SOFTWARE, nor cause or permit
|
||||
SOFTWARE to be translated, from the architecture or language in which it is
|
||||
originally provided by NVIDIA, into any other architecture or language.
|
||||
|
||||
No Rental. Customer may not rent or lease the SOFTWARE to someone
|
||||
else.
|
||||
|
||||
3. TERMINATION
|
||||
|
||||
This LICENSE will automatically terminate if Customer fails to
|
||||
comply with any of the terms and conditions hereof. In such event,
|
||||
Customer must destroy all copies of the SOFTWARE and all of its
|
||||
component parts.
|
||||
|
||||
Defensive Suspension. If Customer commences or participates in any legal
|
||||
proceeding against NVIDIA, then NVIDIA may, in its sole discretion,
|
||||
suspend or terminate all license grants and any other rights provided
|
||||
under this LICENSE during the pendency of such legal proceedings.
|
||||
|
||||
4. COPYRIGHT
|
||||
|
||||
All title and copyrights in and to the SOFTWARE (including but
|
||||
not limited to all images, photographs, animations, video, audio,
|
||||
music, text, and other information incorporated into the SOFTWARE),
|
||||
the accompanying printed materials, and any copies of the SOFTWARE,
|
||||
are owned by NVIDIA, or its suppliers. The SOFTWARE is protected
|
||||
by copyright laws and international treaty provisions. Accordingly,
|
||||
Customer is required to treat the SOFTWARE like any other copyrighted
|
||||
material, except as otherwise allowed pursuant to this LICENSE
|
||||
and that it may make one copy of the SOFTWARE solely for backup or
|
||||
archive purposes.
|
||||
|
||||
5. APPLICABLE LAW
|
||||
|
||||
This agreement shall be deemed to have been made in, and shall be
|
||||
construed pursuant to, the laws of the State of California.
|
||||
|
||||
6. DISCLAIMER OF WARRANTIES AND LIMITATION ON LIABILITY
|
||||
|
||||
6.1 No Warranties. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE
|
||||
LAW, THE SOFTWARE IS PROVIDED "AS IS" AND NVIDIA AND ITS SUPPLIERS
|
||||
DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT
|
||||
NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE.
|
||||
|
||||
6.2 No Liability for Consequential Damages. TO THE MAXIMUM
|
||||
EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL NVIDIA OR
|
||||
ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
|
||||
DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS
|
||||
OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT
|
||||
OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF NVIDIA HAS
|
||||
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. MISCELLANEOUS
|
||||
|
||||
The United Nations Convention on Contracts for the International
|
||||
Sale of Goods is specifically disclaimed. If any provision of this
|
||||
LICENSE is inconsistent with, or cannot be fully enforced under,
|
||||
the law, such provision will be construed as limited to the extent
|
||||
necessary to be consistent with and fully enforceable under the law.
|
||||
This agreement is the final, complete and exclusive agreement between
|
||||
the parties relating to the subject matter hereof, and supersedes
|
||||
all prior or contemporaneous understandings and agreements relating
|
||||
to such subject matter, whether oral or written. Customer agrees
|
||||
that it will not ship, transfer or export the SOFTWARE into any
|
||||
country, or use the SOFTWARE in any manner, prohibited by the
|
||||
United States Bureau of Export Administration or any export laws,
|
||||
restrictions or regulations. This LICENSE may only be modified in
|
||||
writing signed by an authorized officer of NVIDIA.
|
||||
|
2996
sys/contrib/dev/nvidia/tegra124_xusb.bin.uu
Normal file
2996
sys/contrib/dev/nvidia/tegra124_xusb.bin.uu
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user