Commit Graph

221099 Commits

Author SHA1 Message Date
prlw1 dc76b0b003 Add defaults for pkg_info and pkg_admin variables in case pkgpath.conf
is not installed.
2013-09-08 08:19:40 +00:00
skrll c03ab98a67 Add sc->sc_bus.use_polling || to a couple of KASSERTs
PR/46826
2013-09-08 06:37:23 +00:00
pooka 15344de734 Fool isatty() into thinking we're a tty. 2013-09-08 04:37:17 +00:00
kiyohara 1730fa1769 Fix size of EHCI register space. 2013-09-08 04:10:23 +00:00
matt 45d2ed72c1 Improve phy_init a little. Still doesn't work. 2013-09-08 04:07:45 +00:00
matt 7ff2146a83 Rename awinfe to awe and awinge to awge.
Allow properties in awinio0 to disable devices.
Use such a property to disable probing of gige.
2013-09-08 04:06:44 +00:00
msaitoh 10b245faf0 Remove extra debug message. 2013-09-08 03:17:02 +00:00
matt 40fad00f75 Add more nand #define's 2013-09-08 01:29:42 +00:00
matt 79e6364f42 Move interrupts back to IPL_USB 2013-09-08 01:01:33 +00:00
matt 33ff832239 Make sure to actual push the configuration of the GPIO to its registers.
With this change, USB now works.
2013-09-08 00:55:25 +00:00
matt 0e738d35fd Add mii support and some initialization. 2013-09-08 00:05:27 +00:00
matt b4057f5a8c Add some comments 2013-09-08 00:04:33 +00:00
matt 2aea4d4a26 Add mii attr to ethernet devices 2013-09-08 00:03:59 +00:00
matt febe4991a1 Add rlphy 2013-09-08 00:03:40 +00:00
jmcneill b3d80f01ed correct a typo in awin_gpio_pin_ctl that would have prevented configuring output pins 2013-09-07 23:47:33 +00:00
matt 3b639577a4 Add a machdep.hwdiv_present sysctl (cortex A7 and A15 have hwdiv instructions) 2013-09-07 23:10:02 +00:00
matt 21dbc4bb59 Reenable OHCI 2013-09-07 22:52:12 +00:00
matt 5c28d99f8a Simplify USB initialization. 2013-09-07 22:51:41 +00:00
matt d34a5755d1 start adding NFC registers
fix AWIN_AHB_GATING0_USB_OHCI0
2013-09-07 22:51:03 +00:00
matt e6c711a47f add KASSERT to make sure softints are not NULL 2013-09-07 19:53:24 +00:00
matt 5df3d4b64c Add more initialization code for AHCI and USB.
Alas, neither still is coming up.
2013-09-07 19:48:57 +00:00
matt c5a9cb82c0 Finish off GPIO handler. Add hook for other driver to access a named gpio.
Add two input gpio's for usb0.
2013-09-07 19:47:28 +00:00
chs 18ec38ea7c switch to ELF naming for local labels. 2013-09-07 19:06:29 +00:00
chs c2a70ce464 apply changes from Robert Sprowson in PR 47765 and PR 47788:
- make sure we wait long enough after resetting the chip.
 - add the necessary delay after changing the FIFO pointer.
 - add a missing interrupt ACK.
 - fix padding of short and odd-length packets.

and a few more changes from me:
 - do 2-byte writes in most places even if SMC91CXX_NO_BYTE_WRITE
   is not defined.  the only ones still conditionalized are
   writing to the interrupt ack/mask registers.
 - the only big-endian front-end of this driver (on mac68k) uses
   a bus_space that does all the byte-swapping in that layer,
   so remove the explicit byte-swapping in the MI part.

tested on mac68k.
2013-09-07 18:55:29 +00:00
pooka fbf90abc10 fix -Wuninitialized 2013-09-07 18:17:35 +00:00
pooka 28fc97ca89 Add an initial console device and open fd's 0/1/2 for initproc. This is
again useful in standalone-type environments such as Xen, where all
printf/etc calls go through the rump kernel.
2013-09-07 17:58:00 +00:00
rkujawa 45d149c466 Add forgotten xsh device. 2013-09-07 17:23:55 +00:00
skrll b8a293f0ef Some lock comments. 2013-09-07 16:47:23 +00:00
skrll 43ff4efcf0 Typo. 2013-09-07 16:43:48 +00:00
skrll 321324ebc8 Reload the full device descriptor after re-establishing the default pipe
with the new address.

Some HCDs, e.g. dwc2, need wMaxPacketSize to be the value returned from
the device to complete transfers after the set address.  Opening the pipe
again gives the HCD access to the correct value.
2013-09-07 16:39:15 +00:00
skrll 823b4b5f3b Deal with control transfers better by
- removing the UHCI_PTR_VF flag for the setup and status stages
	  which means they are scheduled less aggressively.  Some devices
	  appear to require this (blymn@ has one).  The flag was
	  introduced as a performance improvement for bulk transfers.

	- Checking for short reads and making sure the status stage runs
	  if they're encountered.

PR/47522 Enumeration of LUFA/Atmel devices on UHCI fails

Thanks to jak@ and blymn@ for testing and mlelstv@ for comments.
2013-09-07 16:17:12 +00:00
tsutsui 8f3d6d39ad Whitespace cleanup. 2013-09-07 15:56:11 +00:00
jmcneill 209e8daf3b ECHI -> EHCI in printf 2013-09-07 10:46:18 +00:00
jmcneill ce02c0de21 usb irq handler should be IPL_SCHED 2013-09-07 10:45:53 +00:00
skrll 53914b01fc Disable USE_ARM_SIMD for now. It crashes Xorg. 2013-09-07 09:22:37 +00:00
matt 25fcead210 Change two KASSERTs to KASSERTMSG 2013-09-07 03:34:59 +00:00
matt b880990f59 Fix comment. 2013-09-07 03:34:20 +00:00
matt 26ece6925f Only configure awiniic0 for now 2013-09-07 02:46:26 +00:00
matt 6bb0ecb12c correct twi -> awiniic entries 2013-09-07 02:46:06 +00:00
matt b384585b87 Add an INSTALL kernel for CUBIEBOARD 2013-09-07 02:36:59 +00:00
matt d2a02f3137 Comment out ohci 2013-09-07 02:34:01 +00:00
matt cd2eff09a7 Allow either ohci or ehci to be missing. 2013-09-07 02:32:53 +00:00
matt 9687362fa5 Make sure to turn on the phys and clocks and crap. 2013-09-07 02:10:37 +00:00
matt d1e1e0984b Move awin_ahci_set_clear to awin_var.h and rename to awin_reg_set_clear. 2013-09-07 02:10:02 +00:00
matt 7541a57671 Add #ifdef VERBOSE_INIT_ARM 2013-09-07 02:09:23 +00:00
matt ef1cc6c998 Add awingpio 2013-09-07 02:08:56 +00:00
matt f037bcbc97 This uses an EDGE interrupt. (D'oh) 2013-09-07 01:50:12 +00:00
matt bee3a2d7cc Fix some bugs. 2013-09-07 01:42:44 +00:00
matt f85d39dabc Flesh out allwinner support. 2013-09-07 00:35:52 +00:00
matt 8bfbe2803e Remove brain fart with TTBCR 2013-09-07 00:33:32 +00:00