Commit graph

2178 commits

Author SHA1 Message Date
cinap_lenrek d1acc58316 kernel: consistently add devbridge and netdevmedium to kernel configs 2022-07-18 17:19:57 +00:00
Sigrid Solveig Haflínudóttir ce2ad9701d imx8: gic: irqenable → intrenable 2022-07-14 01:06:52 +00:00
Sigrid Solveig Haflínudóttir 62a4e64d31 imx8: fix reduced lcdif pix clk workaround by enabling underflow recovery 2022-07-12 16:38:41 +00:00
cinap_lenrek 65bd53b9b8 imx8: load a plan9.ini at CONFADDR 0x40010000 2022-07-10 16:40:36 +00:00
cinap_lenrek 34dab15f40 imx8: reset lcdif and sn65sdi86 bridge before init 2022-07-10 13:03:55 +00:00
cinap_lenrek fe14f67c92 imx8: get mac address from OTP rom 2022-07-10 12:02:00 +00:00
cinap_lenrek fdd3e1808f imx8: cleanup mem.h 2022-07-10 11:42:03 +00:00
cinap_lenrek 32183b1abf imx8: implement /dev/reboot support 2022-07-10 11:35:58 +00:00
cinap_lenrek 414cefcb0b imx8: fix fracpll code, enable 1.4Ghz turbo for arm 2022-07-09 21:12:20 +00:00
cinap_lenrek 90f47fadf8 imx8: detect cpu lcycles() frequency 2022-07-09 16:06:42 +00:00
cinap_lenrek 2b89cdee02 imx8: set virtual timer offset to zero for all cores
we want CNTVCT_EL0 to be the same on all cores,
so we set the offset the same so it effectively
becomes the system counter.
2022-07-09 15:15:55 +00:00
cinap_lenrek 29a6cbf7ee imx8: turn backlight off when blanking 2022-07-09 14:13:07 +00:00
Sigrid Solveig Haflínudóttir 6972974f8d imx8: ccm: fix sai copy-paste typos 2022-07-04 23:51:56 +00:00
cinap_lenrek c5cf9b3e26 imx8: qos magic to avoid interference between pcie and lcdif
when writing to the nvme ssd, the screen can glitch out.

found this in linux lcdif driver (mxcfb) that appears to
resolve the issue.

the QoSc registers are all completely undocumented tho :-(
2022-07-03 16:13:19 +00:00
cinap_lenrek 940e3165d3 imx8: less stupid pci interrupt handler 2022-07-03 12:10:27 +00:00
cinap_lenrek 548a48d156 imx8: pcie and nvme support 2022-07-03 11:36:50 +00:00
cinap_lenrek e39d924907 sdnvme: add dmaflush() instructions, move to port/ 2022-07-03 11:35:20 +00:00
Jacob Moody cac03f355c kernel: revert /srv/clone 2022-06-29 17:35:27 +00:00
Jacob Moody 5ee86cf824 kernel: correct error handling in /srv/clone read
readstr can error, we need to catch the error and unlock.
2022-06-22 15:53:32 +00:00
Jacob Moody fa0c807bfb kernel: add /srv/clone to get seperate /srv bulletin boards. 2022-06-21 13:21:38 +00:00
cinap_lenrek f0fc84aba3 etherimx: fix link negotiation
mdio interrupt command completion handling was broken,
as the interrupt handler would clear the mii status
register before mdiodone() sees it.

handle errors in miistatus() and miiane(), to not get
confused.
2022-06-19 18:07:50 +00:00
cinap_lenrek 2b1ecbe87d imx8/usdhc: work around broken multi-write for now
for unknown reasons, multiwrite is busted in usdhc:

sdhc: write error intr 10 stat ff88858e
usdhccmd: need to reset Datinhibit intr 10 stat ff88858e
usdhc: cmd 193a0027 arg 1e5b6b error intr 18010 stat ff88858f

i'm disabling it for now, adding a flag to the SDio struct.
2022-06-18 20:31:49 +00:00
cinap_lenrek 73b9f7c362 imx8: fix install target 2022-06-18 14:32:51 +00:00
cinap_lenrek e760ded494 imx8/usdhc: implement highspeed mode (50Mhz) 2022-06-18 13:19:55 +00:00
cinap_lenrek 524f8c2d53 imx8/lcd: set iomux pad configuration 2022-06-18 12:49:29 +00:00
cinap_lenrek c14962657c usbxhciimx: set iomux pad configuration 2022-06-18 12:49:04 +00:00
cinap_lenrek a23e9ac65d imx8: add i2c bus driver 2022-06-18 12:48:26 +00:00
cinap_lenrek 476e7341d5 etherimx: set iomux pad configiguration 2022-06-18 12:46:18 +00:00
cinap_lenrek 63092af6a9 imx8/usdhc: cleanup, set pad configuration 2022-06-18 12:45:39 +00:00
Jacob Moody 15140dcce2 kernel: add dev dtracy provider. 2022-06-17 02:25:15 +00:00
Jacob Moody c12022fd8c skel(3) → skelfs(4)
The original intention was to put devskel in to the
kernel to detach what it provides from devsrv.
That is not a good reason, just move it to userspace.

auth/box has been changed to exec skelfs instead
of relying on '#z'.
2022-06-15 06:42:05 +00:00
cinap_lenrek c7c0ff5db6 merge 2022-06-14 23:55:02 +00:00
cinap_lenrek 28f3dc8224 imx8: port usdhc driver (from bcm/sdhc) for external sdcard
this is a total hack, only works up to 25MHz for now.
2022-06-14 23:53:03 +00:00
Jacob Moody be1789d78b kernel: bootrc: add bootloop= 2022-06-14 08:16:57 +00:00
Jacob Moody 28709be9a6 kernel: devwalk: correct debug print
nc is not yet tied to the device that
called us
2022-06-14 07:22:58 +00:00
Jacob Moody 96cc6335db kernel: devskel: use RWlock 2022-06-14 07:02:44 +00:00
cinap_lenrek 176206fb02 imx8/gpio: use u32int for bit mask 2022-06-13 23:26:14 +00:00
cinap_lenrek 04d1e6ffe9 imx8/gpio: allow 0 as "no-op" gpio pin
as the gpio controller number starts at 1,
we can use 0 to mean "no pin", so passing
0 to gpioout() or gpioin() pin argument
will have no effect.
2022-06-13 23:24:14 +00:00
cinap_lenrek fe033ae816 imx8: add gpio helper gpioout()/gpioin() 2022-06-13 23:00:06 +00:00
cinap_lenrek 8dd05d041e imx8: provide iomuxgpr() function to access iomuxc's gpr's 2022-06-13 19:48:01 +00:00
cinap_lenrek 5388575c14 imx8: better syntax for iomuxpad() options using ~ for negation 2022-06-13 19:18:50 +00:00
cinap_lenrek 90428d0561 imx8: add iomuxpad() helper for pad and mux control 2022-06-13 19:06:00 +00:00
cinap_lenrek d35e41424c imx8: make gpc functionality available with a powerup() function 2022-06-12 21:16:47 +00:00
cinap_lenrek 771a93f3b7 imx8/lcd: reduce flicker
increasing the pixel clock to 80% of the edid clock value
reduces flicker and also seems to not trigger the shifting
issue.
2022-06-12 16:15:55 +00:00
Ori Bernstein 306e7ca618 devsrv: revert 'add /srv/clone'
this leaks /srvs, revert until we can fix it.
2022-06-12 15:23:19 +00:00
cinap_lenrek e1a95f5630 merge 2022-06-12 14:43:50 +00:00
cinap_lenrek f1f5045b2e imx8/usbxhci: bring usb out of reset
do all the magic dwc3 specific initalization as well
as reset the hub and power on the phys.

with this, "usb start" command is not needed anymore
from u-boot.
2022-06-12 14:31:55 +00:00
Jacob Moody c3e1346bbc kernel: add /srv/clone
/srv/clone allows a namespace to get their
own private /srv session.
2022-06-12 00:44:10 +00:00
cinap_lenrek 1d81f7eacb imx8/lcd: silly work around for display instability
running at the actual pixel clock causes the screen
to shift horizontally after a while.

using 60% seems to fix it - for now.
2022-06-12 00:21:28 +00:00
cinap_lenrek 931ae0cfeb imx8: mainscreen turn on!
supports the lcd panel and adds alot of infrastructure
like for the ccm clock module and the i2c controllers.
2022-06-11 21:12:04 +00:00