Commit Graph

253146 Commits

Author SHA1 Message Date
jmcneill
301a139239 Add sun5i touchscreen driver. 2017-08-27 02:19:46 +00:00
jmcneill
ae2cfe2a2a Try to use standard wsdisplay ioctls when HPCFBIO_GCONF is not available. 2017-08-27 02:19:08 +00:00
ryo
959e15971f DCZID_EL0:BS[0:3] is log2 of the block size in *words*, or 4. Not 16. 2017-08-27 00:29:57 +00:00
jmcneill
0d97882d9f wscons is not mpsafe, so take kernel lock for intr handler 2017-08-26 22:31:02 +00:00
jmcneill
f18c30acee Add a basic sun5i FB driver. This assumes that firmware (U-Boot) has
already setup the chip and re-uses the same settings / FB memory.
2017-08-26 22:24:50 +00:00
joerg
898eaa0f98 Drop stray .El. 2017-08-26 21:58:31 +00:00
jmcneill
9cc94ca9d8 add WSKBD_TYPE_TCAKP for Texas Instruments TCA8418 2017-08-26 21:16:54 +00:00
jmcneill
ed1131f531 Add driver for Texas Instruments TCA8418 I2C Controller Keypad Scan IC. 2017-08-26 21:02:35 +00:00
palle
ab1cd9089c sun4v: Avoid touching the %tick_cmpr register which is not present on never systems (Oracle SPARC Architecture 2011 and beyond). Based on code from OpenBSD locore.s revision 1.177. Tested on both sun4u (qemu and USIII) and sun4v (qemu and T5-2). ok martin@ 2017-08-26 20:25:00 +00:00
ginsbach
a6da7f121b Support -4 and -6. 2017-08-26 19:26:32 +00:00
ginsbach
6b34aef124 Sort options alphabetically. 2017-08-26 18:16:05 +00:00
jmcneill
54287382d1 Add support for interrupt pins. 2017-08-26 17:59:24 +00:00
jmcneill
679123a458 Add missing eint mappings 2017-08-26 15:06:53 +00:00
jmcneill
0dfdcf8e3c Until config supports multiple 'attach driver at bus with <foo>' lines,
move plfb from common files.fdt to files.vexpress
2017-08-26 15:05:48 +00:00
skrll
2272171131 Fixup CPU_PJ4B for recent armv7 tlb operation changes. 2017-08-26 07:17:12 +00:00
ginsbach
af29f831e2 PR/49003: Ngie Cooper: add <sys/time.h> 2017-08-25 22:59:47 +00:00
macallan
a9c7e04328 Radeon PLLs can't have odd post dividers when used with digital outputs -
add a flag to track this in relevant functions.
Now DVI output works properly on my Mini 2
Needs testing on Mini 1 and other hardware...
2017-08-25 22:45:33 +00:00
nisimura
00c8625994 - reorder faultbuf member.
- introduce trap() and interrupt(). now brk insn work.
-
2017-08-25 22:23:59 +00:00
jmcneill
68cff0d7de Use the 64-bit counter as timecounter, and only use it in UP configs. 2017-08-25 21:52:01 +00:00
nisimura
87f97bed64 make them better shape 2017-08-25 21:43:49 +00:00
jmcneill
b94d3a5e4c The assertion at the bottom of intr_ipi_send is invalid for UP configs; add
a text for arm_cpu_max == 1
2017-08-25 20:36:16 +00:00
christos
966796110f fix the build (rump does not have opt_foo.h) 2017-08-25 17:43:33 +00:00
joerg
8f662c9fbd matt-timespec never saw any actual commits, so it has been removed. 2017-08-25 15:06:51 +00:00
riastradh
d65bfa516e Fix lockdebug_locked annotations.
When thread A grants ownership to thread B waiting with a context,
thread B needs to assert lockdebug_locked; otherwise, when it
releases, lockdebug_unlocked thinks it's releasing an unlocked
ww_mutex.

Fixes LOCKDEBUG failure with radeon noticed by martin@.
2017-08-25 14:14:44 +00:00
jmcneill
51b8db601b Lookup reg resources by name instead of index; fixes USB on non-H3/A64 SoCs 2017-08-25 12:28:51 +00:00
jmcneill
a285dbd20c Add fdtbus_get_reg_byname 2017-08-25 12:28:10 +00:00
maxv
1e8c214fd2 Move incq outside of the copy section. No functional change, reduces
my smap diff.
2017-08-25 11:35:03 +00:00
maxv
d0a6b93a16 Split comment, otherwise it is misleading. kcopy operates on kernel
memory, and must *not* be used with userland pages.
2017-08-25 11:05:46 +00:00
jmcneill
69b44ac77b Add initial support for Allwinner A13 and R8 SoCs. 2017-08-25 00:07:02 +00:00
mrg
71aeb93642 mips_emul_daddi and mips_emul_daddiu don't exist, but there are
bcemul_daddi and bcemul_daddiu here that should be used.  however,
bcemul_daddi needed to be changed to use dadd not daddui.

fixes FPEMUL and N64 kernels.  ok simonb.
2017-08-24 23:45:08 +00:00
simonb
055feefb0f Remove the NOFPU option. The main MALTA config file has this now. 2017-08-24 22:48:06 +00:00
simonb
e569402485 Re-enable the NOFPU and (renamed) FPEMUL options. None of the Malta
CPU daughter cards currently supported by NetBSD have an FPU.

Detected on real hardware.  gxemul wrongly supports an FPU on the
4Kc and 5Kc CPUs.
2017-08-24 22:46:54 +00:00
kre
968e76ebe6 Build fix attempt ... changes affect !KERNEL (ie: userland, rump) version
of this file only.

Rather than adding meaningless {} around all uses of functions that
are #defined to nothing for userland, #define the funcs to something
that is functionally equivalent (but which appeases gcc).

Also, define KASSERT() to nothing for userland, which avoids the need
to add a #definee for mutex_owned which would otherwise be needed,
and simmultaneoiusly stops gcc from complaining about a lack of a prototype.
2017-08-24 17:18:55 +00:00
maya
eba32283bc Eliminate redundant load delays.
Machines that need load delays do not have ll/sc instructions.
2017-08-24 14:26:16 +00:00
jmcneill
91a285accd Do runtime detection of MP extensions to allow using a MULTIPROCESSOR
kernel on CPUs without the MP extensions feature (like Cortex-A8).
2017-08-24 14:19:36 +00:00
jmcneill
8ae9876451 Add __HAVE_GENERIC_CPU_INITCLOCKS option. If set, don't export
cpu_initclocks from device drivers as common code (in this case FDT) will
provide its own copy.
2017-08-24 13:06:23 +00:00
skrll
78070145bc Whitespace fix 2017-08-24 11:37:25 +00:00
jmcneill
7de85ed29e Add EX_EARLY flag for extent_create, which skips locking. Required for
using extent subsystem in early bootstrap code, before caches are enabled.
From skrll@
2017-08-24 11:33:28 +00:00
maya
7bdf8d594a Initialize error also in the case where len=0, which just succeeds.
while here, assert that the len is indeed non-negative. this is already
confirmed by sys_fdiscard, but let's be sure.

reported by: GCC, but with different compile flags
2017-08-24 11:26:32 +00:00
msaitoh
0a15ee0de7 Remove unused counters. 2017-08-24 10:43:42 +00:00
kre
9f2931ceb6 Get rid of the arg sorting - it doesn't work properly, and makes it
impossible to support component names containing embedded \n's (the
similar embedded space problem would have been trivial to fix.)
Deleting the sorting makes those issues moot, the args are no longer
processed, hence can be anything.

An alternative would be to sort the results - but that would separate
the -v output from the real output (-v stuff is not rationally sortable)
and also makes it much more difficult to get the error code for an
unknown component (like one containing an embedded \n !) as the pipe
to strt that would be used would cause the while loop to run in a sub-shell
(effectively.)
2017-08-24 01:43:42 +00:00
ginsbach
8f3f249e43 The military/nautical time zones were added following RFC 822 and RFC
2822 specifications.  Unfortunately they are specified incorrectly in
RFC-822 and not very clearly in RFC 2822. RFC 1123 clearly states they
are specified incorrectly - counting the wrong way from UTC - in RFC
822.  RFC 2822 just states they were implemented in a non-standard way.
Mea culpa for not noticing when originally implemented.  Fix them so
the correct calculations are made.
2017-08-24 01:01:09 +00:00
pgoyette
dd839657cd Add locking(9) and psref(9) summaries to locking(9).
PR misc/52504

XXX Pull-up to -8 ?
2017-08-23 22:27:55 +00:00
agc
da4a8c85c5 Move back to a simple version string for sys_info. The way of using
CVS's $ Date $ expansion to calculate the date, whilst being more
accurate, runs into issues with reproducible builds, and alternate
repository software. Simplicity wins here.

Add yacc to the list of utilities to report on
2017-08-23 21:18:57 +00:00
macallan
3f623854c7 Mac Mini WIP:
- plug the external TMDS into the right CRTC when in use
- use the right output types for Mini configs
now VGA works properly ( and not just by accident ) on my Mini 2. DVI is still
garbled but at least produces output.
2017-08-23 19:47:39 +00:00
macallan
e0975726cb consistency... 2017-08-23 19:21:14 +00:00
kre
fa98c4d014 Add a \ -- allows sys_info -v pkg_install to tell us who the version info
is obtained, rather than just how we go about printing the result.
2017-08-23 19:18:38 +00:00
agc
dc6cab8695 add pkg_install to the list of programs reported
don't throw a warning if tcsh is not found in the path
2017-08-23 18:15:53 +00:00
skrll
bbb1be6283 Always perform code previously code under #ifdef DIAGNOSTIC - it appears
that the read is needed to help make the chip work.  Someone with time and
a datasheet can hopefully work out why.

Fixes John D. Baker's boot problem reported on port-arm here:

	http://mail-index.netbsd.org/port-arm/2017/07/27/msg004323.html
2017-08-23 14:14:59 +00:00
christos
13a9a3bb6f now that we are processing SIGINFO write can be interrupted and return
partial results (well, it could before too but it was harder to trigger);
provide write_fully like we have read_fully already.
2017-08-23 13:04:17 +00:00