- Feb 14, 2010
-
-
Grant Likely authored
Neither request_OF_resource or release_OF_resource are defined anywhere. Remove the declarations. Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by:
Michal Simek <monstr@monstr.eu>
-
Grant Likely authored
Rather than defining of_chosen in each arch, it can be defined for all in driver/of/base.c Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by:
Michal Simek <monstr@monstr.eu>
-
Grant Likely authored
Most architectures don't need to change these. Put them into common code to eliminate some duplication Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by:
Michal Simek <monstr@monstr.eu>
-
- Feb 09, 2010
-
-
Grant Likely authored
Merge common code between PowerPC and Microblaze Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Tested-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org>
-
- Oct 15, 2009
-
-
Grant Likely authored
Merge common prototypes used by Microblaze and PowerPC Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge common flattened device tree code between Microblaze and PowerPC Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge common code between Sparc, PowerPC and Microblaze. Sparc differs in the implementation at this point, so this patch uses a #ifdef to handle sparc differently for now. The merging of implementations will occur in a later patch Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge common code between Microblaze and PowerPC Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge common code between PowerPC and Microblaze Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge common code for working with Flattened Device Tree data structure Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Add a common header file for working with the flattened device tree data structure and merge the shared data tags used by Microblaze and PowerPC Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge of common code duplicated between Sparc, PowerPC and Microblaze Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
Merge of common code duplicated between Sparc, PowerPC and Microblaze Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
Grant Likely authored
In preparation to prune things out of the Sparc, PowerPC and Microblaze asm/prom.h files, change the #include statements to ensure that even if asm/prom.h is included first, linux/of.h gets to determine the order in which files are processed. This patch adds a #include <linux/of.h> to each of the prom.h files *above* the multi-include protection macros to ensure that linux/of.h can define things before prom.h gets processed. At the end of the merge the cross dependencies between the files should be gone and a sane #include scheme can be restored. Signed-off-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
David S. Miller <davem@davemloft.net> Acked-by:
Wolfram Sang <w.sang@pengutronix.de> Acked-by:
Michal Simek <monstr@monstr.eu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
Stephen Rothwell <sfr@canb.auug.org.au>
-
- Dec 21, 2008
-
-
Nathan Lynch authored
We have more than one piece of code that looks up cache nodes manually using the "l2-cache" property. Add a common helper routine which does this and handles ePAPR's "next-level-cache" property as well as powermac. Signed-off-by:
Nathan Lynch <ntl@pobox.com> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Aug 04, 2008
-
-
Stephen Rothwell authored
from include/asm-powerpc. This is the result of a mkdir arch/powerpc/include/asm git mv include/asm-powerpc/* arch/powerpc/include/asm Followed by a few documentation/comment fixups and a couple of places where <asm-powepc/...> was being used explicitly. Of the latter only one was outside the arch code and it is a driver only built for powerpc. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Jun 30, 2008
-
-
Anton Vorontsov authored
To avoid "#ifdef CONFIG_PCI" in the drivers we should provide stubs in place of OF PCI address accessors. Without these stubs build breaks for drivers not strictly requiring PCI, for example CONFIG_FB_OF=y without CONFIG_PCI: LD .tmp_vmlinux1 drivers/built-in.o: In function `offb_map_reg': offb.c:(.text+0x6e7c): undefined reference to `of_get_pci_address' OF PCI IRQ accessors require pci_dev argument, so drivers using PCI IRQs should depend on CONFIG_PCI anyway. Signed-off-by:
Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Dec 11, 2007
-
-
Benjamin Herrenschmidt authored
This adds a variant of of_translate_address that uses the dma-ranges property instead of "ranges", it's to be used by PCI code in parsing the dma-ranges property. Signed-off-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Aug 22, 2007
-
-
Scott Wood authored
The current code assumes "foo-bar" must always be compatible with a node compatible with "foo", which breaks device trees where this is not so. The "case" part is also wrong according to Open Firmware, but it's more likely to have drivers and/or device trees depending on it, and thus needs to be handled more carefully. Signed-off-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Aug 17, 2007
-
-
Stephen Rothwell authored
They were only needed for backwards compatibility and all in tree uses have now been changed. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Jul 22, 2007
-
-
Segher Boessenkool authored
...since it modifies it (when it sets the OF_DETACHED flag). Signed-off-by:
Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Jul 20, 2007
-
-
Stephen Rothwell authored
This consolidates the routines of_find_node_by_path, of_find_node_by_name, of_find_node_by_type and of_find_compatible_device. Again, the comparison of strings are done differently by Sparc and PowerPC and also these add read_locks around the iterations. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
-
Stephen Rothwell authored
The only change here is that a readlock is taken while the property list is being traversed on Sparc where it was not taken previously. Also, Sparc uses strcasecmp to compare property names while PowerPC uses strcmp. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
-
Stephen Rothwell authored
The only difference here is that Sparc uses strncmp to match compatibility names while PowerPC uses strncasecmp. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
-
Stephen Rothwell authored
This creates drivers/of/base.c (depending on CONFIG_OF) and puts the first trivially common bits from the prom.c files into it. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
-
Stephen Rothwell authored
This creates linux/of.h and includes asm/prom.h from it. We also include linux/of.h from asm/prom.h while we transition. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Acked-by:
Paul Mackerras <paulus@samba.org> Acked-by:
David S. Miller <davem@davemloft.net>
-
- Jul 10, 2007
-
-
Michael Ellerman authored
When the refcount for a device node goes to 0, we call the destructor - of_node_release(). This should only happen if we've already detached the node from the device tree. So add a flag OF_DETACHED which tracks detached-ness, and if we find ourselves in of_node_release() without it set, issue a warning and don't free the device_node. To avoid warning continuously reinitialise the kref to a sane value. Signed-off-by:
Michael Ellerman <michael@ellerman.id.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Michael Ellerman authored
The struct device_node currently has a _flags variable, although it's only used for one flag - OF_DYNAMIC. Generalise the flag accessors so we can use them with other flags in future. Signed-off-by:
Michael Ellerman <michael@ellerman.id.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Jun 25, 2007
-
-
Michael Ellerman authored
Signed-off-by:
Michael Ellerman <michael@ellerman.id.au> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- May 02, 2007
-
-
Christian Krafft authored
There is no big reason to have that function inlined. Signed-off-by:
Christian Krafft <krafft@de.ibm.com> Acked-by:
Arnd Bergmann <arnd.bergmann@de.ibm.com> Acked-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Mathieu Desnoyers authored
In the powerpc architecture, of_irq_to_resource, currently sitting in prom.h, needs irq_of_parse_and_map and NO_IRQ from asm-powerpc/irq.h. The solution suggested by Benjamin Herrenschmidt is to move it to arch/powerpc/kernel/prom_parse.c. Signed-off-by:
Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Apr 24, 2007
-
-
Stephen Rothwell authored
Replace uses with of_find_node_by_name and for_each_node_by_name. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
Replaced by of_find_node_by_type. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
Replaced by of_find_node_by_path. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
This old interface has no more users. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
This is an old interface and is replaced by of_find_compatible_node. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
- Apr 23, 2007
-
-
Christian Krafft authored
The of_iomap function maps memory for a given device_node and returns a pointer to that memory. This is used at some places, so it makes sense to a seperate function. Signed-off-by:
Christian Krafft <krafft@de.ibm.com> Signed-off-by:
Arnd Bergmann <arnd.bergmann@de.ibm.com>
-
- Apr 12, 2007
-
-
Stephen Rothwell authored
Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
This is more consistent and gets us closer to the Sparc code. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-
Stephen Rothwell authored
This is more consistent and gets us closer to the Sparc code. Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Paul Mackerras <paulus@samba.org>
-