summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2016-07-11Hook up imxgpio(4) to the FDT gpio framework.Mark Kettenis
ok visa@, jsg@
2016-07-10Not all i.MX6 devices have a pinctrl property in their device nodes.Patrick Wildt
In that case, soft fail and return instead of allocating buffer with a bogus size. ok kettenis@
2016-07-10Fix typo. Pointed out by patrick@Mark Kettenis
2016-07-10Dynamically attach imxgpio(4) using the FDT.Mark Kettenis
2016-07-10Add support for handling pinctrl device tree bindings to imxiomuxc(4).Mark Kettenis
These are used to do board-specific setup of mux settings and pad configuration. ok jsg@, patrick@
2016-07-10Use the synciobdma instruction instead of the sync instruction forVisa Hankala
flushing any pending local IOBDMA operations. The sync instruction is overkill because it implies a full memory barrier. ok jasper@ (long time ago)
2016-07-10Instead of attaching the omap device based on board ids follow imxJonathan Gray
and match based on the compatible property of the root node in the fdt. Each of am33xx, omap3, and omap4 have their own list of devices to attach.
2016-07-10Remove now unused definitions for drivers that have been converted toJonathan Gray
use the fdt.
2016-07-09Simplify the i.MX6 platform code. The list of board devices is nowMark Kettenis
(essentially) the same for all boards, so we can use a single list and match based on the compatible property of the root node in the device tree. ok jsg@
2016-07-09Perform PHY-specific initialization based on the PHY ID instead of theMark Kettenis
board ID for the AR8031/AR8035. ok jsg@
2016-07-09Dynamically attach i.MX6 ehci(4) using the FDT.Mark Kettenis
ok jsg@
2016-07-09Use mac address and phy id from the fdt. Store settings for a secondJonathan Gray
port as well, though we still only handle a single port for now. ok kettenis@
2016-07-05Remove debug code that slipped in.Visa Hankala
2016-07-05Add openprom(4) for octeon.Visa Hankala
ok kettenis@ deraadt@ jasper@
2016-07-04Add nep(4).Mark Kettenis
2016-07-04DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSPhilip Guenther
contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
2016-07-04On Quad-G5 make hpb(4) attach first when iterating PCI buses.Martin Pieuchot
This allows openpic(4) to properly map interrupt for the devices instead of possibly dereferencing garbage. Found the hardway by and ok jmatthew@
2016-07-02Get 'AOAShasta' soundchip working found on PowerMac9,1.Marcus Glocker
ok deraadt
2016-07-01Add fdt init for octeon.Visa Hankala
2016-07-01add a simple keyboard backlight driver for some chromebooks,Joshua Stein
adjustable with wsconsctl keyboard.backlight ok bmercer, kettenis
2016-07-01SolidRun's HummingBoards and CuBoxes are also available withPatrick Wildt
the i.MX6 Solo and DualLite SoCs. Those are slightly different to the bigger versions and thus have a different FDT compatible name. To be able for us to boot on those machines, add those compatible names to the list and re-use the board ids. ok kettenis@
2016-06-29Don't write a 1 to the RIRR bit in the IOAPIC redirection register. This bitMike Larkin
is R/O, and although it should not matter what value is written there, Hyper-V's emulated IOAPIC interprets a write of 1 in some unexpected way and subsequently blocks interrupt delivery. This primarily manifests itself as de(4) timeouts when using Hyper-V VMs with the "Legacy Network Adapter" interface. This diff has been in snaps for almost a month with no reported fallout. Based on an idea originally from mikeb with further input from kettenis and deraadt.
2016-06-28Don't panic on null vmxon region or vmxon failure - this will be handledMike Larkin
in the calling function which will return EIO back up the stack to vmd(8). Fixes a panic when CPUs fail to spin up for other reasons during boot, noticed by reyk.
2016-06-28Enable UMIP feature if present. miod originally pointed this out to me.Mike Larkin
ok deraadt@
2016-06-28enable ure(4) where we already have url(4)Jonathan Matthew
2016-06-26Dynamically attach cpsw(4) with the FDT.Jonathan Gray
2016-06-26Dynamically attach tiiic using the FDT.Jonathan Gray
Only match on omap4 compatible controllers such as the one in the am335x on bbb. omap3 has different register offsets and a different compatible string. This reuses kettenis' fdt i2c scan function from imxiic(4).
2016-06-26Oups, remove '#define I2S_DEBUG' again.Marcus Glocker
2016-06-26Make i2s compile with I2S_DEBUG; %x -> %p.Marcus Glocker
2016-06-26add a missing argument specified in format string so this builds againJonathan Gray
2016-06-26destaticJonathan Gray
2016-06-26Dynamically attach omdog(4) using the FDT.Jonathan Gray
2016-06-22Fetch MAC address from FDT.Mark Kettenis
ok jsg@, patrick@
2016-06-22Add support for the second GMX interface on Octeon II. This enablesVisa Hankala
ports eth[0-3] on 8-port EdgeRouters. Currently, port eth0 maps to network interface cnmac4, eth1 to cnmac5 etc. ok dlg@, tested by martijn@
2016-06-22Identify UMIP feature, if available.Mike Larkin
ok millert, kettenis, deraadt
2016-06-22dont need a traliing \ on a line in c code, it's not a macro definition.David Gwynne
from patrick keshishian
2016-06-22Main Hyper-V nexus driver, work in progress.Mike Belopuhov
ok mlarkin, deraadt
2016-06-22Setup Hyper-V hypercall page and an IDT vector.Mike Belopuhov
ok mlarkin, kettenis, deraadt
2016-06-21Remove code to generate uboot tags. It hardcoded information for a singleMark Kettenis
board and a device tree is required by our kernel now. ok patrick@, jsg@
2016-06-21add support to efifb for drawing a console on a coreboot framebufferJoshua Stein
if coreboot's memory table is found, it has a framebuffer entry, and there is no previously attached efi, vga, or serial console. useful on chromebooks that have no legacy vga device to get an early console before inteldrm(4) attaches or, for newer chipsets, a full console and X with wsfb(4). ok kettenis
2016-06-21Add sc_cookie in sigcontext, as same as other ports.Kenji Aoyama
From Miod Vallat, tested by him and me. ok deraadt@
2016-06-20rework the splfoo implementation so it can provide splraise.David Gwynne
sparc was like sparc64 (or more likely sparc64 was like sparc) in that the spl api was build with macros that created inline functions that the spl were implemented as. this rework provides an splraise that the splfoo macros are defined to. because the code sequences for spl0, splraise, and splx are relatively long, ive turned them into functions. tested by (and thanks go to) miod@ tobiasu@
2016-06-19omap4 uart is compatible with omap3 uart but has it's own compatible stringJonathan Gray
2016-06-19dynamically attach omap uart with fdtJonathan Gray
2016-06-18Make the 1 Gbps SGMII settings the default to define a consistent set ofVisa Hankala
parameters even if a link is down.
2016-06-18Fix PCS block size.Visa Hankala
2016-06-18Stop setting the 4-bit mode capability flag for now.Jonathan Gray
Writing to the bbb emmc (but not reading) gives errors otherwise. This does not occur with an sd card on bbb but apparently does on panda.
2016-06-18Dynamically attach ommmc with fdt. Offset the start of the memory regionJonathan Gray
by 0x100 for nodes compatible with "ti,omap4-hsmmc" to get the same offsets as omap3. Handle both the nintr 1 (omap3/am335x) and nintr 3 (omap4) cases in attach. Ideally the "interrupts" property will be handled by the interrupt controller drivers directly in future.
2016-06-16Replace uvm_km_valloc(9) with a km_alloc(9) call that doesn't allocate anyMark Kettenis
physical pages. Recent canges to uvm_map(9) mean that we now assume that memory in interrupt safe maps is not pageable, and while we made sure all mappings were backed by physical pages, a mapping allocated with uvm_km_valloc(9) appears to pageable and triggered an assertion. ok miod@
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)Gerhard Roth
The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@