summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/imx
AgeCommit message (Collapse)Author
2018-06-11Split out the PHY initialization code and add a "no-op" implementation forMark Kettenis
i.MX7. ok patrick@
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-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-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-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-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@
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-10-27Remove duplicated function prototypes.Kevin Lo
ok patrick@
2017-10-23Replace imxocotp(4) with a regmap-based approach.Mark Kettenis
ok patrick@
2017-09-22Remove unused code.Mark Kettenis
2017-09-20Raise match priority such that imxocotp(4) wins over syscon(4).Mark Kettenis
ok patrick@
2017-08-29remove uneeded includes after recent fdt header changesJonathan Gray
2017-07-18Add sdmmc support for the i.MX6UL variant of the i.MX6 series. ThisPatrick Wildt
variant is essentially the same in regards to sdmmc as the i.MX6SX variant, which is why the device tree specifies that version. The i.MX6SX has a few quirks. One of these is related to tuning, which we don't do, the other one to the CAP1 register, which we don't use, and the third is for high speed support, where the "support bit" is missing for HS200. Of all these, only the one where the CAP1 register spills into the CAP register seems relevant to us. With this I can mount and newfs on the SD card. ok kettenis@
2017-07-18Add clock support for the i.MX6UL variant of the i.MX6 series. ThePatrick Wildt
device tree uses completely differently numbered indices compared to the i.MX6QDL variant. This means we have to add another clock list and use the right one depending on the compatible. Also, on the UL variant there is another mux in front of the perclk divider, so we have to cope with that as well. With feedback from and "looks reasonable" kettenis@
2017-06-22Fix the remaining ';;'s in sys/Tom Cosgrove
2017-04-30Unifdef KGDB.Martin Pieuchot
It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@
2017-03-06Remove unused unit number from softc.Mark Kettenis
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
struct proc to struct process. ok deraadt@ kettenis@
2016-12-31Add missing $OpenBSD$ marker.Mark Kettenis
2016-12-28Use the generic clock framework.Mark Kettenis
ok jsg@, patrick@
2016-12-26Fix typo.Mark Kettenis
2016-10-21Stop setting MIIF_AUTOTSLEEP in fec(4)Jonathan Gray
This can lead to tsleep in an interrupt context, which resulted in the following panic: kernel diagnostic assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/kern/kern_sched.c", line 333 TID PPID PGRP UID S FLAGS WAIT COMMAND 86009 0 0 0 2 0x40014200 miiaut idle0 Reported by matthieu@ with sabre lite, analysis by guenther@ ok kettenis@
2016-10-05Make imxdog(4) set cpuresetfn, and remove all the imx platform that is noMark Kettenis
longer needed, including the imx board IDs. ok patrick@, jsg@