summaryrefslogtreecommitdiff
path: root/sys/arch/armv7
AgeCommit message (Collapse)Author
2018-04-02Move imxiomuxc(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Move the code that sets the correct SATA phy settings into imxahc(4)Patrick Wildt
by making use of the iomuxc regmap. While there I realized that the naming definitions for the first two bits of the register are wrong. Thus, update the mask to include all lower bits and rename bit 1 to denote "MPLL enable". This should be flipped last to turn it on. ok kettenis@
2018-04-02Move fec(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Move imxccm(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Have fec(4) make use of the clock framework by implementing the enetPatrick Wildt
ref clock in imxccm(4). We can now also remove the global variable that stored the pointer to the imxccm(4) softc.
2018-04-02No need to include imxccmvar.h anymore.Patrick Wildt
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-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-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-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-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-30Move imxiic(4) to sys/dev/fdt.Patrick Wildt
2018-03-30Move imxesdhc(4) to sys/dev/fdt.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-30Move imxgpc(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
ok kettenis@
2018-03-29Move imxuart(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
Discussed with kettenis@
2018-03-20Make use of the new common bus space tag in imxuart(4) so it does notPatrick Wildt
need to source armv7 headers and can be used on arm64 as well. Also don't hardcode com(4)'s major number. ok kettenis@
2018-03-12Add voltage regulator support.Mark Kettenis
ok jsg@
2018-03-11Wait for ETHEREN bit to clear instead of the RESET bit to prevent anMark Kettenis
infinite loop on some i.MX6 boards. From Artturi Alm.
2018-03-08Rework and cleanup the linker script for armv7. The main feature isPatrick Wildt
that it gives us a read-only data section. In addition the linker script is now easily diffable to arm64 and we also stop mapping some unnecessary space before the kernel. Prompted by deraadt@ ok kettenis@
2018-03-02The UEFI specification states that a watchdog timer should be armed forJonathan Gray
five minutes. Disable the timer to make it possible to use efiboot for more than five minutes. ok patrick@ kettenis@
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
2018-02-16Support card interrupts in imxesdhc(4). The code that was writtenPatrick Wildt
initially was never tested with SDIO, as there had been no user. With bwfm(4) we now have the first SDIO card on that controller. Align the code with the standard sdhc(4), so that it doesn't hang after the first interrupt fires. ok kettenis@
2018-02-14prune files.* entries that refer to files not in treeJonathan Gray
ok krw@ mpi@
2018-02-10Put the ldscript parts into a single file instead of storing it as headPatrick Wildt
and tail and cat(1) it together. It was maybe needed when ports needed different contents, but now it's just a headache. ok deraadt@
2018-02-09Check for the existence of /bsd before trying to back it up to /obsd.Theo Buehler
Fixes 'make install' when /bsd is not present for some reason. ok rob florian, "fine with me" deraadt
2018-01-28typoOtto Moerbeek
2018-01-27Sync the nam2blk entries with the bdevsw table, which is theChristian Weisgerber
definitive list of block devices supported on an architecture. ok kettenis@ deraadt@
2018-01-26Add kernel support for the VFP FPU/SIMD unit. Based on a diff by drahn@.Mark Kettenis
This allows us to use floating-pointer and vector instructions in userland code. The current implementation assumes all 32 VFP registers are present. This should be the case on all armv7 hardware currently supported by OpenBSD. ok patrick@
2018-01-20use virt instructions with clang instead of equivalent raw bytesJonathan Gray
2018-01-06Enable sxits(4).Mark Kettenis
2018-01-06Enable sxitemp(4).Mark Kettenis
2018-01-05Handle resets; needed on Allwinner R40/V40.Mark Kettenis
2017-12-30The generic clock framework expects frequencies in Hz whereas the imx clockMark Kettenis
code was providing them in kHz. Get rid of this discrepancy. Hook up the CPU clock to the generic clock framework and remove the cpuspeed function as it is no longer needed. ok patrick@
2017-12-29Add rktemp(4).Mark Kettenis
2017-12-23Use regmap interface to tweak "SYSREG" PHY configuration registers andMark Kettenis
remove exsysreg(4). The exsysreg(4) driver would no longer attach as syscon(4) would match its node in the device tree. As a result the driver corss-call would panic. Makes te Odroid-XU4 work again.