Commit Graph

197370 Commits

Author SHA1 Message Date
ian
348b464642 MFC r271143, r271151: Reimport dts from vendor branch after proper trim. 2014-10-26 23:45:33 +00:00
ian
b39020f586 MFC 271140:
Delete old arm dts tree. This was created by cherry picking from a
  full vendor tree. This worked great until it was time to update, but
  now it is time to update. Hit the rest button by removing this branch
  and re-adding it by a full copy of whatever is in the vendor tree.
2014-10-26 23:39:15 +00:00
ian
f145f92958 MFC r262606, r262607, r262608, r262609, r262610, r269528, r269609, r271133:
- Move imported dts source from sys/contrib/dts/ to sys/gnu/dts.
 - Fix some missing properties.
 - Import dts-related header files.
 - Update everything to latest vendor branch representing 3.17-rc2
   level of Linux DTS API.
2014-10-26 23:37:24 +00:00
ian
42ed59292e MFC r272528: Make kevent(2) periodic timer events more reliably periodic. 2014-10-26 18:46:03 +00:00
gjb
e9593a9647 MFC r273653:
Fix a few issues with creating VOLUME_LABEL for the
  installation ISOs:

   - TYPE, BRANCH, and REVISION are only defined if
     OSRELEASE is not defined, so in situations where
     one might set OSRELEASE for an in-house ISO build,
     VOLUME_LABEL would be empty.

   - makefs(8) limits the volume label to 32 characters,
     which for the powerpc64 case, OSRELEASE expands to
     FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
     removing the prefixing 'FreeBSD-', the string is 30
     characters long, leaving zero room for suffixing the
     type of ISO media (BO for bootonly, CD for cdrom, and
     DVD for dvdrom).

  Resolve these by defining VOLUME_LABEL when defining
  OSRELEASE if unset.  If OSRELEASE is defined by the
  builder, use the OSRELEASE from that definition as the
  VOLUME_LABEL.

  In addition, for cases where both TARGET and TARGET_ARCH
  are used for the VOLUME_LABEL, use TARGET_ARCH if it
  differs from TARGET.

  There are probably a few sharp edges here yet, but these
  problems are going to affect the powerpc/powerpc64 builds
  for 10.1-RELEASE, so the immediate concern is fixing the
  underlying problem at hand quickly, and less so about the
  elegance of the fix.

Insta-MFC ok:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-10-26 17:14:57 +00:00
ian
c7723e1e69 MFC r273590: Accept documented compatible string for PL310 cache controller/ 2014-10-26 16:09:59 +00:00
ian
4666b07fe9 MFC r273561:
Install a temporary workaround to avoid problems in fdt data with linux's
  workaround for an imx6 chip erratum by using gpio1_6 as an interrupt.
2014-10-26 16:02:35 +00:00
rpaulo
33a82acb89 MFC r273281:
Style changes as pointed out by stas@.
2014-10-26 07:07:54 +00:00
ian
34e0375805 MFC r273353, r273514:
Attach the imx6 CCM driver during BUS_PASS_CPU.

  Unconditionally enable the clocks for all imx6 devices that we have drivers
  for, or that are required to run the chip (such as busses).
2014-10-26 04:17:20 +00:00
ian
aec69e1f98 MFC r273352: Ask for the fastest available clock for the GTP timecounter. 2014-10-26 04:15:27 +00:00
ian
46597f7cad MFC r273298:
The U-Boot README says fdt_addr_r is the right env var for fdt data
  loaded into ram, but vendors also use fdtaddr and fdt_addr.  Check the
  recommended variable first and fall back to the others.
2014-10-26 04:13:08 +00:00
ian
449c80cb11 MFC r273283:
Attach this driver during BUS_PASS_BUS and move the cpu init code to a
  bus_new_pass() handler so it doesn't happen until BUS_PASS_CPU.  This allows
  the anatop driver to outbid the generic simplebus driver (which the FDT
  data describes as compatible).
2014-10-26 04:11:32 +00:00
ian
d16952c51d MFC r273282: Fail to probe on simplebus nodes that lack a "ranges" property. 2014-10-26 04:10:17 +00:00
ian
81b5013966 MFC r272334, r273004:
Return the actual baud rate programmed in the hardware rather than 115200.
  This allows the "3wire" entry in /etc/ttys (with no speed specified) to work.

  Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
  each byte sent or received.
2014-10-26 04:08:34 +00:00
ian
afbd2ea226 MFC r272333: Honor exclusion flags when building the memory lists. 2014-10-26 04:06:29 +00:00
ian
8526d66c63 MFC r272109, r272181:
Replace multiple nearly-identical copies of code to walk through an FDT
  node's interrupts=<...> property creating resource list entries with a
  single common implementation.  This change makes ofw_bus_intr_to_rl() the
  one true copy of that code and removes the copies of it from other places.

  This also adds handling of the interrupts-extended property.
2014-10-26 04:01:57 +00:00
ian
14eb39a57d MFC r271907: Add a man page for the cgem(4) driver. 2014-10-26 03:55:55 +00:00
ian
2008cd3c3f MFC r271906:
Make the ARM MPCore Timer driver work with published standard FDT bindings.
2014-10-26 03:55:09 +00:00
ian
839e78bb76 MFC r271595, r271601, r271607, r271630:
Add compat strings for all the flavors of GIC this driver should support.
  Also allow the driver to attach to ofwbus as well as simplebus, some FDT
  data puts the root interrupt controller on the root bus.

  Add a common routine for parsing FDT data describing an ARM GIC interrupt.

  Use gic_decode_fdt() rather than a local routine to parse fdt interrupt
  properties.  Move fdt_pic_table and fdt_fixup_table into imx6_machdep.c,
  which means imx6 doesn't need imx_common.c anymore.

  The private peripheral interrupts start at offset 16, not 0.  Also, use
  names rather than inline mystery constants for these offsets.
2014-10-26 03:52:45 +00:00
ian
1ede59bf75 MFC r271594:
Fix an undefined variable that was accidentally not causing an error.
2014-10-26 03:48:12 +00:00
ian
552dafa953 MFC r271550, r271591:
Replace the imx5 and imx6 iomux drivers with a single common driver that
  uses the new fdt_pinctrl interface.
2014-10-26 03:44:19 +00:00
ian
dfd00b89e1 MFC 271546:
Create an interface and support routines for drivers that handle IO pin
  multiplexing and configuration based on FDT data.
2014-10-26 03:41:27 +00:00
ian
b6219df7b3 MFC r271535:
Make inclusion of fdt clock support conditional on fdt_clock, not just fdt.
2014-10-26 03:29:06 +00:00
ian
9e4d760d5e MFC r271310:
Rename new to newval in inline asm code, to avoid clashes with C++ new.
2014-10-26 03:13:19 +00:00
ian
3eae765afa MFC r271285:
Add a 'ubenv import' command to import environment variables from the
  u-boot env into the loader(8) env (which also gets them into the kernel
  env).
2014-10-26 02:53:23 +00:00
ian
1edaa04098 MFC r266878, r266879: Add support for snprintf() to libstand. 2014-10-26 02:51:56 +00:00
ian
6bda1023a0 MFC r271097, r271100, r271101, r271102, r271124:
- Add a basic iomux driver for imx6.
 - Implement the same public interface in imx51 and imx6 iomux
 - The iomux driver is no longer optional, remove it from kernel configs.
 - Implement the imx_iomux_get/set_gpr() interface for imx6.
 - Stop setting the iomux device status to disabled, now that we have a driver.
2014-10-26 02:44:41 +00:00
ian
caa088c379 MFC r268973, r268977: Rename i.MX I2C driver file, enable it on imx6. 2014-10-26 02:40:34 +00:00
ian
bb76782ad5 MFC r268834, r268835:
o Enable GPIO device driver for i.MX6.
   It was originally written for i.MX5 and compatible with newer chip.
 o Extend device tree information
 o style(9) fixes
 o Rename gpio driver file.
2014-10-26 02:37:42 +00:00
ian
3c5c1218bc MFC r271057: Create a /boot/dtb directory to house DTB blobs. 2014-10-26 02:27:10 +00:00
ian
c691dc79ec MFC r271055, r271084, r271094:
Add a function to get the frequency of the AHB bus.  Another stopgap
  function until we have full clock support for imx6.

  The imx5x and imx6 chips have an onboard IOMUX device which also contains a
  few "general purpose registers" whose values control chip behavior in ways
  that have nothing to do with IO pin mux control.  Define a simple API that
  other soc-specific code can use to read and write the registers, and provide
  the imx51 implementation of them.

  Fix a typo.
2014-10-26 02:25:34 +00:00
ian
a50392e671 MFC r271054:
When built with FDT support, add /boot/dtb to the list of search directories.
2014-10-26 02:21:54 +00:00
ian
d41355d9bf MFC r270957, r270959:
Create an interface for drivers to enable or disable their clocks as listed
  in the clocks=<...> properties of their FDT data.
2014-10-26 02:19:03 +00:00
ian
04b1fcec06 MFC r270955,r270956: make the imx6 octop and anatop drivers early attachers. 2014-10-26 02:09:58 +00:00
ian
af8e847649 MFC r270953, r270958, r270960, r271190, r271199, r271202:
Create a mechanism for looking up a device_t associated with an ofw/fdt
  xref handle, and for registering that association.  Also use the same data
  for faster translations between node and xref handles.

  Add OF_xref_from_device() so that there's no need to have an intermediate
  call to ofw_bus_get_node() to lookup info that's already in the xreflist.

  When registering an association between a device and an xref phandle, create
  an entry in the xref list if one doesn't already exist for the given handle.
2014-10-26 01:58:18 +00:00
ian
1c8cde378e MFC r270945:
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().
2014-10-26 01:30:46 +00:00
ian
520f9702ad MFC r270025:
Implement the FDT static pinctl/pinmux spec for Atmel.
2014-10-26 01:26:53 +00:00
ian
f2e6118a3c MFC r257200, r259121, r261410, r265853:
- Remove #include <machine/frame.h>.
 - Add gpio parse routines according to sys/boot/fdt/dts/bindings-gpio.txt.
 - Follow r261352 by updating all drivers which are children of simplebus
   to check the status property in their probe routines.
 - Rename platform_gpio_init to be SoC specific, and make it static as it's
   only called from this file.

This is mostly catching up on some old MFCs that were done before this file
existed in the 10 branch.
2014-10-26 01:15:16 +00:00
ian
682138b2b9 MFC r268633, r271046:
Fixes and enhancements for the if_cgem driver...

  - miibus fixes as suggested by Yonghyeon Pyun.
  - enable VLAN MTU support.
  - fix a few WITNESS complaints in cgem_attach().
  - have cgem_attach() properly init the ifnet struct before calling
    mii_attach() to fix panic when using e1000phy.
  - fix ethernet address changing.
  - fix transmit queue overflow handling.
  - tweak receive queue handling to reduce receive overflows.
  - bring out MAC statistic counters to sysctls.
  - add e1000phy to config file.
  - implement receive hang work-around described in reference guide.
  - change device name from if_cgem to cgem to be consistent with other
    interfaces.

  Fix the Zedboard/Zynq ethernet driver to handle media speed changes so
  that it can connect to switches at speeds other than 1gb.
2014-10-25 20:34:10 +00:00
kevlo
0817d1234e MFC r273448:
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR:	189405
Submitted by:	Gabor Simon <gabor.simon75 at gmail.com>
2014-10-25 15:06:09 +00:00
rpaulo
6e4e970c3a MFC r273261:
Remove an unused mutex.
2014-10-25 02:08:02 +00:00
rpaulo
22c57adcd5 MFC r273258:
Make the ti_mbox and ti_pruss drivers optional.
2014-10-25 02:06:40 +00:00
rpaulo
f85f42f997 MFC r273257:
Add a driver for the TI watchdog.

 The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
 has been booting the BeagleBone with the watchdog enabled.  We need
 to
 disable it on boot to avoid a spurious reset.
 The timer isn't exactly precise, but it will do as a watchdog.  This
 is also a reflection of the watchdog(9) API.

 In the future, we could handle interrupts, but the watchdog(9) API
 needs to be a bit smarter before that can happen.
2014-10-25 02:05:21 +00:00
rpaulo
dce313ba3c MFC r273256:
AM335X FDT: use the omap3-wdt string for compatibility with Linux.
2014-10-25 02:02:20 +00:00
rpaulo
709bb13e76 MFC r273248:
AM335x FDT: add an entry for the watchdog.
2014-10-25 02:00:32 +00:00
rpaulo
6474b9b606 MFC r273247:
Fix the watchdog/watchdog man pages.

 The default timeout is 128 seconds.
2014-10-25 01:59:01 +00:00
markj
372e35ccad MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".
2014-10-24 17:24:29 +00:00
delphij
2455e6b607 MFC r273577:
Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Instant MFC approved by:	re (kib)
2014-10-24 07:06:01 +00:00
neel
295105e2bd MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.
2014-10-24 03:48:54 +00:00
markj
8a1641d786 MFC r272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143
2014-10-23 18:50:44 +00:00