summaryrefslogtreecommitdiffstats
path: root/sys/dev/terasic
Commit message (Collapse)AuthorAgeFilesLines
* Merge from CheriBSD:brooks2014-11-217-20/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 6d3c4c09226ad6bdd662e3e52489ef294a6ce298 Add terasic_mtl vt(4) framebuffer driver terasic_mtl can be built with syscons(4) and vt(4) attachments, selected at compile time. commit 33240259b47a7c990a5a88a19f133a5600432a4c Clear terasic_mtl text buffer on attach commit d188c2d2412953f949624aa35cd07082830943c9 Update terasic vt(4) driver for FreeBSD r269783 commit d1cc54eee852fa4fc9d359d5bb2171d24ec73369 Safety belt to ensure vt(4) fb parameters are correct commit 76e6d468ef45711d7952786095fc4791289ebb4b Improve terasic_mtl_vt fdt parsing - Use OF_getencprop to avoid need for explicit endian handling (submitted by ray@freebsd.org) - Check for expected length and correct pointer type commit 3e2524b8995ab66e8a9295e4c87cbc7126eeddf4 Correct device_printf usage commit 9e53e3c8e0766414e25662c95b09cc51c92443b0 Switch framebuffer to match host endianness Xorg and xf86-video-scfb work much better with a native-endian framebuffer. commit 0f49259d596321ed85288ac0e1fb4ee1c966df48 Switch DE4 to vt(4) and enable kbdmux commit 5bc96ebc89db7d134ad478335090c8477c1677c7 Add missing \n in device_printf calls Submitted by: emaste Sponsored by: DARPA, AFRL
* Correct typo in commentemaste2014-07-291-1/+1
|
* Follow r261352 by updating all drivers which are children of simplebusian2014-02-022-0/+6
| | | | | | | | | | | | | to check the status property in their probe routines. Simplebus used to only instantiate its children whose status="okay" but that was improper behavior, fixed in r261352. Now that it doesn't check anymore and probes all its children; the children all have to do the check because really only the children know how to properly interpret their status property strings. Right now all existing drivers only understand "okay" versus something- that's-not-okay, so they all use the new ofw_bus_status_okay() helper.
* Hints-only devices should have BUS_PROBE_NOWILDCARD set. We probably neednwhitehorn2013-10-292-2/+2
| | | | a better flag for this (in the driver metadata, for example).
* Merge Perforce changeset 219952 to head:rwatson2013-01-138-8/+9
| | | | | | | Make different bus attachments for Altera and Terasice device drivers share the same devclass_t. Sponsored by: DARPA, AFRL
* Partially merge Perforce changeset 219944 to head:rwatson2013-01-132-2/+2
| | | | | | | Consistently use the vendor name "sri-cambridge" for device compatibility strings on the BERI platform. Sponsored by: DARPA, AFRL
* Partially merge Perforce changeset 219938 to head:rwatson2013-01-131-69/+75
| | | | | | | | | | | | Write FDT attachment for the Terasic MTL (multitouch LCD) driver. Exploit the fact that FDT allows multiple memory ranges to be assigned to a device, giving us a cleaner description than device.hints does. Portions of this changeset that remove mtl from BERI device.hints and add to DTS will be merged separately. Sponsored by: DARPA, AFRL
* Merge Perforce changeset 219937 to head:rwatson2013-01-131-0/+196
| | | | | | | Copy Terasic MTL nexus bus attachment as a starting point for an FDT attachment for the same driver. Sponsored by: DARPA, AFRL
* Merge Perforce changeset 219922 to head:rwatson2013-01-131-12/+20
| | | | | | Update nexus parts in copied DE4LED attachment to use FDT. Sponsored by: DARPA, AFRL
* Merge Perforce changeset 219921 to head:rwatson2013-01-131-0/+112
| | | | | | | Copy DE4 LED nexus bus attachment as a starting point for an FDT attachment. Sponsored by: DARPA, AFRL
* Add terasic_de4led, a led(4) driver for the on-board 8-element LED on therwatson2012-08-263-0/+375
| | | | | | | | | | Terasic DE-4 board. Allow LED configuration to be set using loader tunables, not just from userspace, and preconfigure LED 8 as a kernel heartbeat. For now, this is a Nexus-attached, BERI-only driver, but it could be used with other hard and soft cores on Altera FPGAs as well, in principle. Sponsored by: DARPA, AFRL
* Add terasic_mtl(4), a device driver for the Terasic Multi-Touch LCD,rwatson2012-08-257-0/+1632
used with Terasic's DE-4 and other similar FPGA boards. This display is 800x480 and includes a capacitive touch screen, multi-touch gesture recognition, etc. This device driver depends on a Cambridge- provided IP core that allows the MTL device to be hooked up to the Altera Avalon SoC bus, and also provides a VGA-like text frame buffer. Although it is compiled as a single device driver, it actually implements a number of different device nodes exporting various aspects of this multi-function device to userspace: - Simple memory-mapped driver for the MTL 24-bit pixel frame buffer. - Simple memory-mapped driver for the MTL control register set. - Simple memory-mapped driver for the MTL text frame buffer. - syscons attachment for the MTL text frame buffer. This driver attaches directly to Nexus as is common for SoC device drivers, and for the time being is considered BERI-specific, although in principle it might be used with other hard and soft cores on Altera FPGAs. Control registers, including touchscreen input, are simply memory mapped; in the future it would be desirable to hook up a more conventional device node that can stream events, support kqueue(2)/ poll(2)/select(2), etc. This is the first use of syscons on MIPS, as far as I can tell, and there are some loose ends, such as an inability to use the hardware cursor. More fundamentally, it appears that syscons(4) assumes that either a host is PC-like (i386, amd64) *or* it must be using a graphical frame buffer. While the MTL supports a graphical frame buffer, using the text frame buffer is preferable for console use. Fixing this issue in syscons(4) requires non-trivial changes, as the text frame buffer support assumes that direct memory access can be done to the text frame buffer without using bus accessor methods, which is not the case on MIPS. As a workaround for this, we instead double-buffer and pretend to be a graphical frame buffer exposing text accessor methods, leading to some quirks in syscons behaviour. Sponsored by: DARPA, AFRL
OpenPOWER on IntegriCloud