summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-04-02Have imxahci(4) make use of the clock framework by implementing the sataPatrick Wildt
and sata ref clock in imxccm(4).
2018-04-02Have imxehci(4) make use of the clock framework by implementing the phyPatrick Wildt
clock in imxccm(4). ok kettenis@
2018-04-02Enable dwpcie(4).Mark Kettenis
2018-04-02Add dwpcie(4), a (minimal) driver for the Synopsys Designware PCIe core inMark Kettenis
Root Complex mode. In its current state it probably only works on the Marvell Armada 7K and 8K SoCs, but the same core is used on many other cores as well.
2018-04-02Do not add 32 to the "base" SPI number. Apparently the offset of the firstMark Kettenis
SPI is already included and adding 32 means we skip the first 32 available MSI vectors, which is quite disastous if we only have 32 vectors like on the Marvell Armada 8040. ok patrick@
2018-04-02Add size to free()David Hill
OK millert@ visa@
2018-04-02Use memcpy on freshly allocated memory and add the free size.David Hill
OK millert@
2018-04-02Pay attention to the "reg-io-width" and "reg-shift" properties and avoidMark Kettenis
using the "a4x" bus tag for the non-console code in the fdt glue. ok patrick@
2018-04-02Remove I2C iomux descriptions from the time before we set those upPatrick Wildt
using the device tree.
2018-04-02enable snooping on Intel Apollo Lake HD Audio, pt out & ok jsgHenning Brauer
2018-04-02attach on Intel Apollo Lake SMBus, ok jsgHenning Brauer
2018-04-02regenHenning Brauer
2018-04-02add a bunch of Intel Apollo Lake devices found on NUC6CAYH / Celeron J3455Henning Brauer
input & ok jsg
2018-04-02Add support for register shift/io-width. This allows us to support UARTsMark Kettenis
that are mostly NS16550 compatible but use 32-bit instead of 8-bit registers such as the Synopsys Designware UARTs found on many armv7, arm64 and amd64 SoCs. tested by florian@, blum@ ok deraadt@
2018-04-01Pull out the regmap lookup from the switch. This way we can stillPatrick Wildt
enable the PLL even if the (optional) "fsl,anatop" property is not available or if the regmap cannot be found. Suggested by kettenis@
2018-04-01Disable the USB charging detection using a regmap instead of cross-Patrick Wildt
calling imxccm using a special function. ok kettenis@
2018-04-01Enable imxanatop(4) on RAMDISK as well so we can use it to disablePatrick Wildt
the USB charging detect so that we can replace the current code in imxccm(4).
2018-04-01Stop using a global softc variable in most functions that are calledPatrick Wildt
from the clock framework, and instead always pass the driver's softc as function parameter.
2018-04-01Retrieve AHB clock from clock framework.Patrick Wildt
2018-04-01Remove unfinished PCIe support from imxccm(4). We can do better thanPatrick Wildt
that when we tackle it again.
2018-04-01In an attempt to OFW-ify fec(4) it turns out that the MII speedPatrick Wildt
has currently not been set correctly. The phy speed is based on IPG clock, not the Ethernet PLL divisor. Also when we bumped the frequency base from kHz to Hz, we missed to update the divisor as well. Clarify the formula being used to calculate the phy speed and make use of the clock framework. ok kettenis@
2018-04-01Store the size of dinode contents union.David Hill
Fixes softdep+UFS2. Found out the hard way by naddy@ ok visa@ naddy@ deraadt@
2018-03-31Change ci_dev.dv_xname to ci_dev->dv_xname in debugging printf()Alexander Bluhm
to make it compile when enabled. from hshoexer@
2018-03-31Port arm64's network boot efforts to armv7 as well now that there isPatrick Wildt
support for using U-Boot's network layer. Since arm64 and armv7's efiboot(8) have the same heritance the diffs from arm64 simply applied to armv7.
2018-03-31Add CVS Ids.Patrick Wildt
2018-03-31Bump version number so that we can see if efiboot(8) supports EFI's SimplePatrick Wildt
Network protocol or not.
2018-03-31In addition to using EFI's PXE protocol implement a network driver thatPatrick Wildt
makes use of EFI's Simple Network protocol. This allows us to speak raw network on U-Boot based machines so we can do TFTP boot on those as well. ok kettenis@
2018-03-31Stop converting UDP and IP header values from network endianness to hostPatrick Wildt
endianness for convenience reasons. Especially in code pathes like TFTP where the source port is read from the received UDP packet and used as destination port in a new UDP packet this can be very harmful. Luckily this issue has had no effect on our architectures since they never use any of the code paths that could be harmful. ok visa@
2018-03-31Enable mvtemp(4).Mark Kettenis
2018-03-31Add mvtemp(4), a driver for the temperature sensors found on Marvell ArmadaMark Kettenis
SoCs.
2018-03-31When reusing an mbuf to send an ARP response, don't forget to clearStefan Sperling
the mbuf packet header. Otherwise, stale mbuf state related to the ARP request packet might affect the fate of the ARP reply packet. For example, I observed that for an ARP request to a carp IP, where the underlying carpdev interface is part of a bridge, ARP replies were always sent out on the carpdev interface, even if the corresponding ARP request was received not on the carpdev but on a different bridge member interface. This happened because the M_PROTO1 mbuf flag was set on the ARP request mbuf when it left the bridge towards carp, and was still set on the ARP reply, which reused the same mbuf, sent back towards the bridge. The bridge's loop detection saw the M_PROTO1 flag and prevented the ARP reply from entering the bridge, so the reply was instead sent out directly on the carpdev... ok bluhm@ mpi@
2018-03-31Fix a hang on i386 vmware guest that was happening on copyout() ofAlexander Bluhm
arguments for /sbin/init. For CPU 0 identifycpu() originally got called twice, once very early from cpu_startup(), then again from cpu_attach(). Now we call identifycpu() only from cpu_attach() with CPUF_PRIMARY set. So make sure, that for CPU 0 nothing is skipped. Otherwise, cpu_info might have different features set for CPU 0 than for all other CPUs. This is similar to what amd64 does. from hshoexer@; reported and fix tested by Emilio Perea; OK mlarkin@
2018-03-31Recommit preparation for i386 Meltdown fix after OpenBSD 6.3 release.Alexander Bluhm
Switching from per PCB TSS to per CPU TSS broke kvm86 calls to the BIOS. This change fixes the issues. from hshoexer@; reported and tested by semarie@; OK deraadt@
2018-03-31Recommit preparation for i386 Meltdown fix after OpenBSD 6.3 release.Alexander Bluhm
- provide a cpu_softc for cpu_attach() etc. - replace per PCB TSS with per CPU TSS The first change prepares for cpu_info being embedded in a cpu_full_info. Therefore during autoconf/cpu_attach we hand down a softc. The second change removes the per PCB TSS. We now have one TSS per CPU, thus in cpu_switchto() we only have to patch the ring 0 stack pointer instead of loading a new TSS. This also allows for cleaning up the GDT, so we only have a single slot for the TSS. from hshoexer@; OK deraadt@
2018-03-31r1.7 of xhci_fdt.c pulls in the regulator API.Visa Hankala
Add ofw_regulator.c and its dependencies to fix build.
2018-03-30Enable imxanatop(4).Patrick Wildt
2018-03-30Move imxanatop(4) to sys/dev/fdt.Patrick Wildt
2018-03-30No need to include armv7var.h.Patrick Wildt
2018-03-30No need to include armv7var.h and imxccmvar.h.Patrick Wildt
2018-03-30Remove unused PCIe code from imxiomuxc(4). I'm sure we can do thisPatrick Wildt
better now with the FDT framework when we actually tackle PCIe.
2018-03-30Enable imxiic(4).Patrick Wildt
2018-03-30Move imxiic(4) to sys/dev/fdt.Patrick Wildt
2018-03-30Attach imxesdhc(4) to i.MX8M as well.Patrick Wildt
2018-03-30Enable imxesdhc(4).Patrick Wildt
2018-03-30Move imxesdhc(4) to sys/dev/fdt.Patrick Wildt
2018-03-30Enable imxgpio(4).Patrick Wildt
2018-03-30Move imxgpio(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
2018-03-30Replace MD disable/restore interrupt in the establish and disestablishPatrick Wildt
code in imxgpio(4) with splhigh() and splx() which is MI and should be good enough for the job. Discussed with kettenis@
2018-03-30Cut down imxgpio(4) with a big axe. There were plenty of pieces thatPatrick Wildt
were not needed anymore since we switched to the FDT-based GPIO code.
2018-03-30Add sizes to some free() calls.David Hill
OK visa@