259128 |
09-Dec-2013 |
gjb |
Remove svn:mergeinfo from the releng/10.0 branch.
After branch creation from stable/10, the stable/10 branch mergeinfo was moved to the root of the branch.
Since there have not been any merges from stable/10 to releng/10.0 yet, we do not need to track any of the existing mergeinfo here.
Merges to releng/10.0 should now be done to the root of the branch.
For future branches during the release cycle, unless otherwise noted, this change will be done as part of the stable/ and releng/ branch creation.
Discussed with: peter Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
257522 |
01-Nov-2013 |
brooks |
MFC r256911, r256936
MFP4: 223121 (PIC portion), 225861, 227822, 229692 (PIC only), 229693, 230523, 1123614
Implement a driver for Robert Norton's PIC as an FDT interrupt controller. Devices whose interrupt-parent property points to a beripic
device will have their interrupt allocation, activation, and setup operations routed through the IC rather than down the traditional bus hierarchy.
This driver largely abstracts the underlying CPU away allowing the PIC to be implemented on CPU's other than BERI. Due to insufficient abstractions a small amount of MIPS specific code is currently required in fdt_mips.c and to implement counters.
Sponsored by: DARPA/AFRL Approved by: re (gjb)
|
257457 |
31-Oct-2013 |
brooks |
MFC r256861:
MFP4: 223121 (FDT infrastructure portion)
Implement support for interrupt-parent nodes in simplebus. The current implementation requires that device declarations have an interrupt-parent node and that it point to a device that has registered itself as a interrupt controller in fdt_ic_list_head and implements the fdt_ic interface.
Sponsored by: DARPA/AFRL Approved by: re (gjb)
|
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
250840 |
21-May-2013 |
marcel |
Add basic support for FDT to i386 & amd64. This change includes: 1. Common headers for fdt.h and ofw_machdep.h under x86/include with indirections under i386/include and amd64/include. 2. New modinfo for loader provided FDT blob. 3. Common x86_init_fdt() called from hammer_time() on amd64 and init386() on i386. 4. Split-off FDT specific low-level console functions from FDT bus methods for the uart(4) driver. The low-level console logic has been moved to uart_cpu_fdt.c and is used for arm, mips & powerpc only. The FDT bus methods are shared across all architectures. 5. Add dev/fdt/fdt_x86.c to hold the fdt_fixup_table[] and the fdt_pic_table[] arrays. Both are empty right now.
FDT addresses are I/O ports on x86. Since the core FDT code does not handle different address spaces, adding support for both I/O ports and memory addresses requires some thought and discussion. It may be better to use a compile-time option that controls this.
Obtained from: Juniper Networks, Inc.
|
248509 |
19-Mar-2013 |
ray |
Return "start" and "end" to u_long world. Because rman handle addresses as u_long too.
Discussed with: ian@ Pointy hat to: ray@
|
248502 |
19-Mar-2013 |
ray |
Cast "start" to u_long. Temporary fix to unbreak tinderbox. We need here max possible storage or dynamic, depend on size of address cell.
|
248485 |
18-Mar-2013 |
ray |
Don't hesitate to ask parent to setup IRQ finally.
Sponsored by: The FreeBSD Foundation
|
248482 |
18-Mar-2013 |
ray |
Allow simplebus to attach to another simplebus.
Sponsored by: The FreeBSD Foundation
|
248481 |
18-Mar-2013 |
ray |
Hide "no default resources for" warning under bootverbose. It's ok to use optional resources.
Sponsored by: The FreeBSD Foundation
|
248480 |
18-Mar-2013 |
ray |
Allow simplebus to attach in less strict way, when "simple-bus" listed on not first position of compatible property, so simplebus driver can be generic driver for any bus listed as compatible with "simple-bus".
Sponsored by: The FreeBSD Foundation
|
248467 |
18-Mar-2013 |
ray |
o Switch to use physical addresses in rman for FDT. o Remove vtophys used to translate virtual address to physical in case rman carry virtual.
Sponsored by: The FreeBSD Foundation
|
247207 |
23-Feb-2013 |
gonzo |
Bump per-device interrupt limit to more reasonable default.
Some hardware like DMA and GPIO controllers might require more then 8 interrupts per device instance.
Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp> Discussed with: gber@, raj@
|
245335 |
12-Jan-2013 |
rwatson |
Merge Perforce changeset 219933 and portions of 219962 (omits changes to unmerged BERI DTS files) to head:
Use the OFW compatible string "mips,mips4k" rather than "mips4k,cp0" for interrupt control using MIPS4k CP0.
Suggested by: thompsa
Implement a MIPS FDT PIC decode routine to use when no PIC has been configured, which assumes a cascade back to the nexus bus (e.g., the on-board CP0 interrupt management parts on the MIPS). If the soc bus in a MIPS DTS file is declared as "mips4k,cp0"-compatible, then this will be enabled. This is sufficient to allow IRQs to be configured on BERI.
Sponsored by: DARPA, AFRL
|
244871 |
30-Dec-2012 |
rwatson |
When a partially initialised FDT-based device instance can't attach, perhaps due to an interrupt configuration problem, do not try to free device ivars that have not yet have been allocated.
MFC after: 1 week Reviewed by: gonzo Sponsored by: DARPA, AFRL
|
243690 |
30-Nov-2012 |
gonzo |
Add fdt_get_reserved_regions function. API is simmilar to fdt_get_mem_regions It returns memory regions restricted from being used by kernel. These regions are dfined in "memreserve" property of root node in the same format as "reg" property of /memory node
|
240487 |
14-Sep-2012 |
gber |
If virtual addresses are not set use one to one mapping. Do not map memory and IO space at address 0.
Obtained from: Semihalf
|
240485 |
14-Sep-2012 |
gber |
Add fdt_get_unit() function.
Obtained from: Semihalf
|
240484 |
14-Sep-2012 |
gber |
Set busaddr and bussize to 0 when fdt_get_range() fails.
Obtained from: Semihalf
|
239689 |
25-Aug-2012 |
gonzo |
Do not swap byte order if we assign default value for intr_cells
|
239309 |
15-Aug-2012 |
gonzo |
Fix argument type for bus_space_map
|
239274 |
15-Aug-2012 |
gonzo |
Merging of projects/armv6, part 4
r233822: Remove useless and wrong piece of code in fdt_get_range() which i overwrites passed phandle_t node. Modify debug printf in fdt_reg_to_rl() to be consistent (that is, print start and end *virtual* addresses).
r230560: Handle "ranges;" Make fdt_reg_to_rl() responsible for mapping the device memory, instead on just hoping that there's only one simplebus, and using fdt_immr_va as the base VA.
r230315 Add a function to get the PA from range, instead of (ab)using fdt_immr_pa, and use it for the UART driver
|
238044 |
02-Jul-2012 |
marcel |
Simplify simplebus_setup_intr and don't call MD code directly. We can (and have to) trust our parent to handle interrupt configuration.
|
238043 |
02-Jul-2012 |
marcel |
Properly implement bus_setup_intr so that it handles the configuration of interrupts of direct children. Have the bus_config_intr and bus_teardown_intr methods implemented by bus_generic_config_intr and bus_generic_teardown_intr (resp) as we don't need to do anything special outselves.
This removes all the ``#ifdef $arch'' code that was there because powerpc didn't have a proper nexus and people tend to copy and paste stuff.
|
235930 |
24-May-2012 |
marcel |
Preset (clear) the ranges we're supposed to fill from the FDT. If a particular range (either I/O memory or I/O port) is not defined in the FDT, we're not handing uninitialized structures back to our caller.
|
235778 |
22-May-2012 |
gber |
Add a new geom class which allows to divide NAND Flash chip into partitions.
Partitions are created based on data in dts file which are extracted and interpreted by slicer.
Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
|
232518 |
04-Mar-2012 |
raj |
Respect phy-handle property in Ethernet nodes of the device tree.
This lets specify whereabouts of the parent PHY for a given MAC node (and get rid of ugly kludges in mge(4) and tsec(4)).
Obtained from: Semihalf MFC after: 1 week
|
228984 |
30-Dec-2011 |
marcel |
DEBUG is a kernel option. Don't define it here, as it breaks LINT. Since DEBUG was subsequently undefined, this is just debugging left- over.
|
228201 |
02-Dec-2011 |
jchandra |
Fix OF_finddevice error return value in case of FDT.
According to the open firmware standard, finddevice call has to return a phandle with value of -1 in case of error.
This commit is to: - Fix the FDT implementation of this interface (ofw_fdt_finddevice) to return (phandle_t)-1 in case of error, instead of 0 as it does now. - Fix up the callers of OF_finddevice() to compare the return value with -1 instead of 0 to check for errors. - Since phandle_t is unsigned, the return value of OF_finddevice should be checked with '== -1' rather than '<= 0' or '> 0', fix up these cases as well.
Reported by: nwhitehorn
Reviewed by: raj Approved by: raj, nwhitehorn
|
226496 |
18-Oct-2011 |
jchandra |
FDT support for MIPS.
Add architecture specific files needed to compile MIPS with flattened device tree support.
|
221218 |
29-Apr-2011 |
jhb |
Change rman_manage_region() to actually honor the rm_start and rm_end constraints on the rman and reject attempts to manage a region that is out of range. - Fix various places that set rm_end incorrectly (to ~0 or ~0u instead of ~0ul). - To preserve existing behavior, change rman_init() to set rm_start and rm_end to allow managing the full range (0 to ~0ul) if they are not set by the caller when rman_init() is called.
|
218077 |
29-Jan-2011 |
marcel |
Don't operate on the parent of the PCI node. It's the PCI node itself that represents the host controller. This makes the FDT PCI support working an a bare-bones manner. This needs a lot more work, of which the beginning are at the end of the file, compiled-out with #if 0.
The intend being that both the Marvell PCIE and Freescale PCI/PCIX/PCIE duplicate the same platform-independent domain initialization, that should be moved into an unified implementation in the FDT code. Handling of resources requires help from the platform. A unified implementation allows us to properly support PCI devices listed in the device tree and configured according to the device tree specification.
Sponsored by: Juniper Networks
|
218076 |
29-Jan-2011 |
marcel |
Call newbus_device_create() for PCI devices. Call pci_from_fdt_node() for the newly created device_t, rather than the parent.
|
218073 |
29-Jan-2011 |
marcel |
Introduce macro FDT_MAP_IRQ to map from an interrupt controller and interrupt pin pair to a global IRQ number. When multiple PICs exist on a board, the interrupt pin alone is not unique.
|
210247 |
19-Jul-2010 |
raj |
Eliminate FDT_IMMR_VA define.
This removes platform dependencies from <machine>/fdt.h for the benfit of portability.
|
210246 |
19-Jul-2010 |
raj |
Move MRVL FDT fixups and PIC decode routine to a platform specific area.
This allows for better encapsulation (and eliminates generic fdt_arm.c, at least for now).
|
209908 |
11-Jul-2010 |
raj |
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS - MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are currently in the FreeBSD source tree are reworked and adjusted so they derive config data out of the device tree blob (instead of hard coded / tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC, QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|
209906 |
11-Jul-2010 |
raj |
Introduce PowerPC-specific helper routines for FDT.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|
209905 |
11-Jul-2010 |
raj |
Save fdtbus trigger / polarity data at their correct index.
|
209904 |
11-Jul-2010 |
raj |
Let simplebus(4) diagnostics be a bit more descriptive.
|
209130 |
13-Jun-2010 |
raj |
Initial FDT infrastructure elements for ARM.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|
209127 |
13-Jun-2010 |
raj |
Provide identify method for the fdtbus(4).
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|
208747 |
02-Jun-2010 |
raj |
Import the common Flattened Device Tree infrastructure.
o fdtbus(4) - the main abstract bus driver for all FDT-compliant systems. This is a direct replacement for the many incompatible bus drivers grouping integrated peripherals on embedded platforms (like obio(4), ocpbus(4) etc.)
o simplebus(4) - bus driver representing ePAPR style 'simple-bus' node, which is an umbrella device for most of the integrated peripherals on a typical system-on-chip device.
o Other components (common routines library, PCI node processing helper functions)
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|