Commit Graph

62405 Commits

Author SHA1 Message Date
christos
92de9d75ce scsibus at scsi should work; if it does not... 2016-01-10 04:09:28 +00:00
christos
8f042a8186 PR/50636: Ryo ONODERA: Add scsibus to vioscsi 2016-01-10 03:19:36 +00:00
msaitoh
68a809a11f Add CLFLUSHOPT bit. 2016-01-08 03:26:35 +00:00
msaitoh
083b66ecbf Add x86 FPU Data Pointer Updated Only bit from Intel SDM. 2016-01-08 02:27:07 +00:00
msaitoh
30fc93dfd1 Index 0x6c is not 126 entries but 128 entries. The old value was from
previous SDM.
2016-01-08 02:25:15 +00:00
marty
d973601a09 exynos mct -- snapshot
This code is still a mess, but at least it uses an interrupt-map so I can
use it to test whether interrupt-map handling in fdt_intr_ is working
properly.

Need to get some real documentation and redo this so it works. :(
2016-01-07 04:45:10 +00:00
marty
0d08bb6498 Exynos WDT - change the compatible string to match the current dts 2016-01-07 04:41:46 +00:00
bouyer
13ee92e7ec Apply patch from xsa155: make sure that the backend won't read parts of the
request again (possibly because of compiler optimisations), by using
copies and barrier.
From XSA155:
The compiler can emit optimizations in the PV backend drivers which
can lead to double fetch vulnerabilities. Specifically the shared
memory between the frontend and backend can be fetched twice (during
which time the frontend can alter the contents) possibly leading to
arbitrary code execution in backend.
2016-01-06 15:28:40 +00:00
marty
5cba62781b FDT: Interrupts -- add support for interrupt maps
The mct on exynos uses an interrupt map so we add support now.  Devices
represent their interrupts either through a combination of interrupt-parent
and interrupts properties, where the 'interrupts' property is an array of
one or more interrupt specifiers; or through a combination of an
interrupt-parent that points to an interrupt-map, where the interrupt-map
contains 2 or more entries consisting of an index, a pointer to an
interrupt-controller, and a specifier for that controller.

This code adds the ability to walk the interrupt-map and return a specifier.
Unfortunately, the addition requires changing the interface to the
interrupt-controllers' _establish and _intstr functions, so this check in
contains a rototill of the three existing fdt interrupt controllers to use
the new interface.
2016-01-05 21:53:48 +00:00
msaitoh
0c27f9bb62 Add ismt(4). 2016-01-05 11:33:18 +00:00
hannken
fdc67f6924 Adapt prototypes and usage of rdmsr_locked() and wrmsr_locked() to
their implementation.  Both functions don't take the passcode as
argument.

As wrmsr_locked() no longer writes the passcode to the msr the
erratum 721 on my Opteron 2356 really gets patched and cc1 no longer
crashes with SIGSEGV.
2016-01-05 10:20:22 +00:00
ozaki-r
01554394be Fix #endif; it should be after __END_DECLS
This unbreaks the build of sun2.
2016-01-05 00:47:08 +00:00
christos
8b50aec9fa revert, this has to do with the bootloader protocol version and should
stay the same until there is a reason for it to change.
2016-01-04 18:17:31 +00:00
phx
7a71b65cf8 Make the -p option work, like with loadbsd.
Otherwise the kernel could load into a low-priority 512MB Z3 RAM segment.
2016-01-04 14:10:15 +00:00
christos
c4c05f8e97 change 60 to 70 which is the current release. Noticed by Rares Aioanei. 2016-01-03 20:59:47 +00:00
jdc
2415217316 Remove duplicate register definitions and merge them all into pcf8584reg.h.
No functional change.
2016-01-03 17:32:17 +00:00
macallan
6a9f064d48 comment out ukphy 2016-01-03 06:23:25 +00:00
marty
6965913be9 XU4 interrupt combiner / fake sysmmu
Add sysmmu to have something that calls through to the combiner's establish
routine.  Debug the combiner with it.

At this point the combiner is mostly done, but the interrupt handler has not
been tested.  This may never happen as we may never support any of the
devices that use the combiner for interrupts.  (Or maybe mct)
2016-01-03 04:10:58 +00:00
macallan
bdb6cefb4c enable ehci, now that it works properly 2016-01-02 16:55:46 +00:00
macallan
1ae1c2335b properly initialize the EHCI
from Alexander Kabaev ( kan at freebsd.org )
2016-01-02 16:50:52 +00:00
marty
aab26c1761 XU4 FDT pinctrl
Rewrite the use of pinctrl to reflect the new model from Jared.
2016-01-01 22:37:07 +00:00
tls
e4dd39cedc Enable second noise source on newer VIA CPUs 2016-01-01 19:46:48 +00:00
ryo
66f8646dd2 use armv7_generic_space 2015-12-31 12:14:01 +00:00
ryo
1fc390a6bc add support iMX6 uSDHC
- some UHS-I/SDR104 card are not stable
- eMMC doesn't work yet
2015-12-31 11:53:18 +00:00
marty
2de605cb9d XU4 gpio - get rid of annoying printf 2015-12-31 03:50:34 +00:00
jdc
aa22af27ce Restrict the check for fully specified interrupts to machines with psycho
controllers only, and adjust comments to note this.

See also the mail thread starting at:
  http://mail-index.NetBSD.org/port-sparc64/2015/12/03/msg002488.html
2015-12-30 09:16:17 +00:00
marty
9c676a63b6 XU4 i2c, gpio & pinctrl changes
modify exynos_gpio.c to support the new pinctrl model.
set up the new pinctrl model in exynos_pinctrl.c

Flesh out exynos_i2c.c and set it up to use the new pinctrl model.  NOTE:
exynos_i2c.c is still incomplete.  I need to figure out what to set the
prescaler and scaler to.
2015-12-30 04:30:27 +00:00
christos
d075aff38a disable code that does not work for sun2/coldfire 2015-12-29 16:02:37 +00:00
christos
ed74e51b8a Holiday food satiation. 2015-12-29 14:51:38 +00:00
jmcneill
ec8413de65 get fifo depth from fdt, use default clock parent for biu 2015-12-27 20:49:01 +00:00
jmcneill
34bb36fc87 make exynos_gpio_fdt_acquire actually work, now dwcmmc properly does card detect for micro SD slot 2015-12-27 12:42:14 +00:00
jmcneill
6f8a66951d wildcard attachments to fdtbus 2015-12-27 12:26:42 +00:00
jmcneill
6e0b285f04 handle active low flag, simplify bank / pin name parsing, no need to panic if bank lookup fails 2015-12-27 12:22:28 +00:00
jmcneill
e2450495a5 update compatible string to match exynos5422-odroidxu3.dts 2015-12-27 12:21:37 +00:00
jmcneill
484b5995c7 update exynosfdt_init to match the devices in exynos5422-odroidxu3.dts 2015-12-27 12:21:12 +00:00
macallan
0d755f15d0 add awiniic* and tve 2015-12-27 06:24:25 +00:00
marty
ae03e518e3 XU4 USB snapshot: Reorganize source files
This is just a skeleton,  not a set of drivers, but the pieces are now
more or less in the right places.
2015-12-27 02:54:12 +00:00
marty
73be4c1664 XU4 gpio clean up acquire code
properly locate the bank in the acquire code.  This may even work.
2015-12-27 02:43:42 +00:00
jmcneill
aef4a7dee1 add dwcmmc 2015-12-26 23:14:08 +00:00
jmcneill
430edbd247 Add dwcmmc glue 2015-12-26 23:13:50 +00:00
jmcneill
74b53f6e7b hook exynos5422 clock support into fdtbus 2015-12-26 22:57:09 +00:00
jmcneill
01c706f76f tag kernel as type linux so we get the fdt address in r2 2015-12-26 22:53:52 +00:00
macallan
c1cfa97a05 driver for cubietruck's VGA port. Not quite finished but enough to be useful 2015-12-26 16:56:41 +00:00
macallan
d7c9e3d9d2 add access function to get the i2c_controller, awiniic2 is the VGA output's
DDC2 port on cubietruck
2015-12-26 16:54:41 +00:00
macallan
593ac207e3 add registers for TV encoder / VGA output 2015-12-26 16:48:54 +00:00
christos
3f78fc62e3 make this compile for c++ 2015-12-25 16:19:38 +00:00
christos
3feb613f34 get rid of dup fenv. 2015-12-25 06:03:06 +00:00
christos
522db2ab36 move fenv inside ifdef 2015-12-25 06:02:10 +00:00
christos
94ed82768d remove dup fenv 2015-12-25 06:01:38 +00:00
marty
a8082a0bd6 XU4 I2C snapshot
This is a complete, but untested, driver; except that it needs to be able
to configure gpios and, afaict, we don't yet have an fdtbus_gpio_* function
that will do that.
2015-12-24 21:30:05 +00:00