aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_dev_imx.c
Commit message (Collapse)AuthorAgeFilesLines
* clk: Move clock code in dev/clkEmmanuel Vadot2024-01-101-1/+1
| | | | | | | | | | | We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name. Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43191
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* uart_dev_imx: Make ext_resources non-optionalEmmanuel Vadot2022-02-211-1/+1
| | | | | | | | EXT_RESOURCES have been introduced in 12-CURRENT and all supported releases have it enabled in their kernel config. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33826
* Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrightsEd Maste2021-08-081-1/+0
| | | | | | | These ones were unambiguous cases where the Foundation was the only listed copyright holder (in the associated license block). Sponsored by: The FreeBSD Foundation
* Add i.MX 8M Quad supportOleksandr Tymoshenko2020-07-011-4/+57
| | | | | | | | | | | | | | | | | - Add CCM driver and clocks implementations for i.MX 8M - Add GPC driver for iMX8 - Add clock tree for i.MX 8M Quad - Add clocks support and new compat strings (where required) for existing i.MX 6 UART, I2C, and GPIO drivers - Enable aarch64-compatible drivers form i.MX 6 in arm64 GENERIC kernel config - Add dtb/imx8 kernel module with DTBs for Nitrogen8M and iMX8MQ EVK With this patch both Nitrogen8M and iMX8MQ EVK boot with NFS root up to multiuser login prompt Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D25274 Notes: svn path=/head/; revision=362817
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Add support for the uart classes to set their default register shift value.Andrew Turner2015-04-111-1/+2
| | | | | | | | | | | | | | This is needed with the pl011 driver. Before this change it would default to a shift of 0, however the hardware places the registers at 4-byte addresses meaning the value should be 2. This patch fixes this for the pl011 when configured using the fdt. The other drivers have a default value of 0 to keep this a no-op. MFC after: 1 week Notes: svn path=/head/; revision=281438
* Move the uart_class definitions and fdt compat data into the individualIan Lepore2015-03-071-1/+14
| | | | | | | | | | uart implementations, and export them using the new linker-set mechanism. Differential Revision: https://reviews.freebsd.org/D1993 Submitted by: Michal Meloun Notes: svn path=/head/; revision=279724
* Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting onIan Lepore2014-10-121-31/+75
| | | | | | | each byte sent or received. Notes: svn path=/head/; revision=273004
* Return the actual baud rate programmed in the hardware rather than 115200.Ian Lepore2014-09-301-2/+40
| | | | | | | This allows the "3wire" entry in /etc/ttys (with no speed specified) to work. Notes: svn path=/head/; revision=272334
* Reword a comment block a bit; no functional changes.Ian Lepore2014-04-261-7/+8
| | | | Notes: svn path=/head/; revision=264985
* Flesh out imx_uart_init() so that we're not relying on u-boot to initIan Lepore2014-04-261-2/+73
| | | | | | | the hardware (meaning uarts other than the console will work). Notes: svn path=/head/; revision=264983
* The freescale imx uart driver works for the whole i.MX family, so rename theIan Lepore2014-04-261-1/+1
| | | | | | | header file to not have "5xx" in the name. Notes: svn path=/head/; revision=264981
* Use a more professional device description.Rui Paulo2014-04-071-1/+1
| | | | Notes: svn path=/head/; revision=264218
* Introduce grab and ungrab upcalls. When the kernel desires to grab theWarner Losh2014-01-191-13/+27
| | | | | | | | | | | | | | | console, it calls the grab functions. These functions should turn off the RX interrupts, and any others that interfere. This makes mountroot prompt work again. If there's more generalized need other than prompting, many of these routines should be expanded to do those new things. Should have been part of r260889, but waasn't due to command line typo. Reviewed by: bde (with reservations) Notes: svn path=/head/; revision=260890
* Fix crossed fingers output. Only comment changed.Aleksandr Rybalko2013-10-241-1/+1
| | | | Notes: svn path=/head/; revision=257045
* Fix low-level uart drivers that set their fifo sizes in the softc too late.Ian Lepore2013-04-011-3/+3
| | | | | | | | | | | | uart(4) allocates send and receiver buffers in attach() before it calls the low-level driver's attach routine. Many low-level drivers set the fifo sizes in their attach routine, which is too late. Other drivers set them in the probe() routine, so that they're available when uart(4) allocates buffers. This fixes the ones that were setting the values too late by moving the code to probe(). Notes: svn path=/head/; revision=248965
* Integrate Efika MX project back to home.Aleksandr Rybalko2013-03-201-0/+436
Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=248557