summaryrefslogtreecommitdiffstats
path: root/arch/powerpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [POWERPC] Fix carry bug in 128-bit unsigned integer addingLiu Yu2008-01-241-10/+30
| | | | | | | Synchronize it to the definition in include/math-emu/op-4.h for short term. Signed-off-by: Liu Yu <Yu.Liu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 85xx: mpc85xx_ads: add in missing of_node_put()Paul Gortmaker2008-01-241-6/+6
| | | | | | | | Add in missing of_node_put() after cpm2_pic_init(). This and other coding style cleanups as suggested by Stephen Rothwell. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] QE: Add support for Freescale QUICCEngine UARTTimur Tabi2008-01-243-2/+60
| | | | | | | | | | Add support for UART serial ports using a Freescale QUICCEngine. Update booting-without-of.txt to define new properties for a QE UART node. Update the MPC8323E-MDS device tree to add UCC5 as a UART. Update the QE library to support slow UCC devices and modules. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] QE: Add ability to upload QE firmwareTimur Tabi2008-01-242-0/+248
| | | | | | | | | | | Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Added description of a new QE firmware node to booting-without-of.txt. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] fsl_soc: add support to gianfar for fixed-link propertyVitaly Bordug2008-01-241-17/+62
| | | | | | | | | fixed-link says: register new "Fixed/emulated PHY", i.e. PHY that not connected to the real MDIO bus. Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] MPC8349E-mITX: Vitesse 7385 PHY is not connected to the MDIO busVitaly Bordug2008-01-241-9/+2
| | | | | | | | ...thus use fixed-link to register proper "Fixed PHY" Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] MPC8349E-mITX: introduce localbus and pata nodesAnton Vorontsov2008-01-243-2/+30
| | | | | | | | | | This patch adds localbus and pata nodes to use CF IDE interface on MPC8349E-mITX boards. Patch also adds code to probe localbus. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 83xx: USB device tree cleanupsLi Yang2008-01-248-19/+9
| | | | | | | Remove device_type = "usb" for 83xx SoC USB controller Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 83xx: Add MPC837x USB platform supportLi Yang2008-01-243-0/+94
| | | | | | | Add chip specific and board specific initialization for MPC837x USB. Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 83xx: add device trees for MPC837x MDS boardLi Yang2008-01-243-0/+837
| | | | | Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Fix incorrect interrupt map on FSL reference boardsKumar Gala2008-01-243-9/+10
| | | | | | | | | | The ULI based boards had the interrupt maps for USB on the ULI incorrectly set. Also, the MPC8572DS was missing the interrupt-map-mask for the 3rd PCIe controller. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] bootwrapper: convert cuboot-8{3,5}xx to dt_fixup_mac_address_by_aliasKumar Gala2008-01-242-3/+5
| | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] bootwrapper: Add find_node_by_alias and dt_fixup_mac_address_by_aliasKumar Gala2008-01-242-0/+28
| | | | | | | Add the ability to set the mac address given the alias for the device. Removes the need for having a linux,network-index property. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 83xx: convert boards to use machine_device_initcallKumar Gala2008-01-245-24/+6
| | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] 85xx: convert boards to use machine_device_initcallKumar Gala2008-01-243-14/+5
| | | | Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Fixup use of phys_addr_t in mpic codeBecky Bruce2008-01-241-2/+2
| | | | | | | | The mpic_map() and __mpic_map_mmio() need to use phys_addr_t for the physical address they are passed. Signed-off-by: Becky Bruce <becky.bruce@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Remove update_bridge_resourceKumar Gala2008-01-241-58/+0
| | | | | | | The 85xx/86xx pci code no longer uses update_bridge_resource and it was the only caller. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] FSL: Rework PCI/PCIe support for 85xx/86xxKumar Gala2008-01-241-88/+62
| | | | | | | | | | | The current PCI code for Freescale 85xx/86xx was treating the virtual P2P PCIe bridge as a transparent bridge. Rather than doing that fixup the virtual P2P bridge by copying the resources from the PHB. Also, fixup a bit of the code for dealing with resource_size_t being 64-bits and how we set ATMU registers for >4G. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Fixup transparent P2P resourcesKumar Gala2008-01-241-2/+3
| | | | | | | | For transparent P2P bridges the first 3 resources may get set from based on BAR registers and need to get fixed up. Where as the remainder come from the parent bus and have already been fixed up. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Ensure we only handle PowerMac PCI bus fixup for memory resourcesKumar Gala2008-01-241-1/+2
| | | | | | | | | | The fixup code that handles the case for PowerMac's that leave bridge windows open over an inaccessible region should only be applied to memory resources (IORESOURCE_MEM). If not we can get it trying to fixup IORESOURCE_IO on some systems since the other conditions that are used to detect the case can easily match for IORESOURCE_IO. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* [POWERPC] Fix handling of memreserve if the range lands in highmemKumar Gala2008-01-242-2/+32
| | | | | | | | | | | | | | | | | | | There were several issues if a memreserve range existed and happened to be in highmem: * The bootmem allocator is only aware of lowmem so calling reserve_bootmem with a highmem address would cause a BUG_ON * All highmem pages were provided to the buddy allocator Added a lmb_is_reserved() api that we now use to determine if a highem page should continue to be PageReserved or provided to the buddy allocator. Also, we incorrectly reported the amount of pages reserved since all highmem pages are initally marked reserved and we clear the PageReserved flag as we "free" up the highmem pages. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* Merge branch 'for-2.6.25' of ↵Paul Mackerras2008-01-176-121/+6
|\ | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/olof/pasemi into for-2.6.25
| * [POWERPC] pasemi: Move electra-ide to pata_of_platformOlof Johansson2008-01-154-108/+2
| | | | | | | | | | | | | | Move electra-ide glue over to the new pata_of_platform framework, and add the quirks needed to that driver. Signed-off-by: Olof Johansson <olof@lixom.net>
| * [POWERPC] pasemi: Use machine_*_initcall() hooks in platform codeGrant Likely2008-01-022-12/+3
| | | | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Olof Johansson <olof@lixom.net>
| * [POWERPC] pasemi: Fix NMI handling checkOlof Johansson2008-01-021-1/+1
| | | | | | | | | | | | | | | | The logic that checks to see if a machine check is caused by an NMI will always match when NMI hasn't been initialized, since the mpic routine will return NO_IRQ (and that's what the nmi_virq value is as well). Signed-off-by: Olof Johansson <olof@lixom.net>
* | [POWERPC] Use <linux/of_{platform, device}.h> and not <asm/...> variants.Jon Loeliger2008-01-173-3/+4
| | | | | | | | | | Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Check that the syscall table matches the syscall numbersStephen Rothwell2008-01-173-0/+101
| | | | | | | | | | | | | | | | | | | | Also check that __NR_syscalls has been updated appropriately. Hopefully this will catch any out of order additions to the table in the future. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Add hugepagesz boot-time parameterJon Tollefson2008-01-172-34/+96
| | | | | | | | | | | | | | | | | | | | | | | | This adds the hugepagesz boot-time parameter for ppc64. It lets one pick the size for huge pages. The choices available are 64K and 16M when the base page size is 4k. It defaults to 16M (previously the only only choice) if nothing or an invalid choice is specified. Tested 64K huge pages successfully with the libhugetlbfs 1.2. Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] arch/powerpc/kernel: Use for_each_child_of_nodeStephen Rothwell2008-01-175-11/+8
| | | | | | | | | | Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] cell: Use machine_*_initcall() hooks in platform codeGrant Likely2008-01-176-26/+8
| | | | | | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] powermac: Use machine_*_initcall() hooks in platform codeGrant Likely2008-01-174-19/+6
| | | | | | | | | | Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Update .gitignore filesJochen Friedrich2008-01-172-0/+4
| | | | | | | | | | | | | | | | Update .gitignore as needed by dtc addition. Signed-off-by: Jochen Friedrich <jochen@scram.de> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] pci_32.c: Use for_each_child_of_nodeStephen Rothwell2008-01-171-7/+13
| | | | | | | | | | Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] eeh.c: Use for_each_child_of_nodeStephen Rothwell2008-01-171-22/+21
| | | | | | | | | | Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] iSeries: eliminate pci_dn bussubnoStephen Rothwell2008-01-172-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | xlate_iomm_address() really wants the ds_addr to pass to the HV, so store that value (instead of the BAR number) when we allocate the device bars. This is not a fast path, so we can look up the device_node property there instead of using the bussubno field of the pci_dn. The other user of iseries_ds_addr() was already scanning the device tree, so looking up a property will not slow it down any more. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] The pci_dn pcidev is only used by EEHStephen Rothwell2008-01-171-1/+0
| | | | | | | | | | Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Use for_each macros in arch/powerpc/platforms/powermacCyrill Gorcunov2008-01-171-2/+1
| | | | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Use for_each macros in arch/powerpc/kernelCyrill Gorcunov2008-01-172-5/+5
| | | | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Use for_each macros in arch/powerpc/sysdevCyrill Gorcunov2008-01-176-38/+25
| | | | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | [POWERPC] Add of_find_matching_node() helper functionGrant Likely2008-01-174-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to of_find_compatible_node(), of_find_matching_node() and for_each_matching_node() allow you to iterate over the device tree looking for specific nodes, except that they take of_device_id tables instead of strings. This also moves of_match_node() from driver/of/device.c to driver/of/base.c to colocate it with the of_find_matching_node which depends on it. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
* | Merge branch 'virtex-for-2.6.25' of ↵Josh Boyer2008-01-113-3/+20
|\ \ | | | | | | | | | git://git.secretlab.ca/git/linux-2.6-virtex into for-2.6.25
| * | [POWERPC] Xilinx: updated device tree compatibility to match uboot bsp ↵Stephen Neuendorffer2008-01-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | generator. Missed this one in the boot loader before. Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
| * | [POWERPC] Xilinx: Add correct compatible list for device tree bus bindings.Stephen Neuendorffer2008-01-091-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Includes both flavors of plb, opb, dcr, and a pseudo 'compound' bus for representing compound peripherals containing more than one logical device. Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
| * | [POWERPC] Xilinx: update compatible list for interrupt controllerStephen Neuendorffer2008-01-091-1/+7
| |/ | | | | | | | | | | | | These values now match what is generated by the uboot BSP generator. Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* | [POWERPC] 4xx: PCIe: Increase max busses per port to 64Stefan Roese2008-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | Because of how big mapping the config space is (1M per bus), we limit how many busses we support for now. In the long run, we could replace that with something akin to kmap_atomic instead. This patch changes the limit from currently 16 to 64. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
* | [POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapperMatthias Fuchs2008-01-083-7/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for 405GPr processors with optional new mode strapping. ibm405gp_fixup_clocks() can now be used for 405GP and 405GPr CPUs. This is in preparation of porting the cpci405 platform support from arch/ppc to arch/powerpc. This patch also adds ibm405ep_fixup_clocks() to support 405EP CPUs from the boot wrapper. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
* | [POWERPC] 4xx: enable built-in networking for Sequoia defconfigHollis Blanchard2008-01-082-7/+21
| | | | | | | | | | | | | | | | Enable EMAC driver for Sequoia (and while we're in there, disable Macintosh drivers for Sequoia and Bamboo). Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
* | [POWERPC] 4xx: Add EMAC support to Kilauea defconfigStefan Roese2008-01-041-2/+21
| | | | | | | | | | | | | | | | Somehow the EMAC support was dropped (or never really added) to the Kilauea defconfig file. This patch finally adds EMAC support. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
* | [POWERPC] 4xx: typo in calling machine_device_initcall() for Sequoia boardGrant Likely2008-01-021-1/+1
|/ | | | | | | Fix an obvious typo. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
* Merge branch 'for-2.6.25' of ↵Paul Mackerras2007-12-314-13/+81
|\ | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/olof/pasemi