aboutsummaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2011-03-16sparc32: introduce build_device_irqSam Ravnborg4-54/+68
build_device_irq() is used to encapsulate the plaform specific details when we build an irq. For now the default is a simple 1:1 but sun4d differs. This patch refactors functionality - but does not change the existing functionality. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 machine related files: core filesGuanXuetao3-0/+440
This patch adds machine related core files, also including build infrastructure. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-17unicore32 additional architecture files: boot processGuanXuetao7-0/+546
This patch implements booting process, including uncompression process. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32: introduce sparc_irq_configSam Ravnborg7-18/+25
sparc_irq_config is used to hold the platform specific irq setup. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: low-level lib: miscGuanXuetao10-0/+662
This patch implements the rest low-level libraries. Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32: fix build with leon or floppy enabledSam Ravnborg4-15/+17
Add a few includes back required to build with floppy enabled Fix declaration of trapbase_cpu* so it is now consistent Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: low-level lib: uaccessGuanXuetao8-0/+648
This patch implements low-level uaccess libraries. Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc: convert to clocksource_register_hz/khzJohn Stultz1-3/+1
This converts the sparc clocksources to use clocksource_register_hz/khz Signed-off-by: John Stultz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: low-level lib: ocd debugGuanXuetao4-0/+269
This patch implements low-level debug libraries with On-Chip-Debugger hardware support. Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc64: Sharpen address space randomization calculations.David S. Miller1-8/+13
A recent patch to the x86 randomization code caused me to take a quick look at what we do on sparc64, and in doing so I noticed that we sometimes calculate a non-page-aligned randomization value and stick it into mmap_base. I also noticed that since I copied the logic over from PowerPC, the powerpc code has tweaked the randomization ranges in ways that would benefit us as well. For one thing, we should allow up to at least 8MB of randomization otherwise huge-page regions when HPAGE_SIZE is 4MB never randomize at all. And on the 64-bit side we were using up to 4GB. Tone it down to 1GB as 4GB can result in a lot of address space wastage. Finally, make sure all computations are unsigned. Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: ptrace handlingGuanXuetao2-0/+282
This patch adds ptrace support. Changed from previous version: 1. disable arch_has_single_step and remove single-step instruction handler 2. add 'Ross Biro 1/23/92' contributor information 3. clean unused codes Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32: irq_32.c cleanupSam Ravnborg1-137/+92
- drop filename in file header - drop unused includes - add KERN_* to printk - fix spaces => tabs - add spaces after reserved words - drop all externs, they are now in header files Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: float point handlingGuanXuetao3-0/+205
This patch implements support for float point unit, which using UniCore-F64 FPU hardware in UniCore32 ISA. Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32, sun4d: add comment in empty statement in sun4d_request_irq()Sam Ravnborg1-1/+2
This looked like a bug to me. Add a comment so next reader is hopefully less confused. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 additional architecture files: pm related filesGuanXuetao8-0/+1156
This patch adds pm related files, including hibernate and sleep supports. Signed-off-by: Guan Xuetao <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32,sun4d: drop unused code in sun4d_distribute_irqs()Sam Ravnborg1-47/+0
The preprocessor symbol was not defined and the code was therefore not in use. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: signals handlingGuanXuetao2-0/+523
This patch implements signals. Signed-off-by: Guan Xuetao <[email protected]>
2011-03-16sparc32,sun4d: irq, smp files cleanupSam Ravnborg2-197/+174
- drop filename in file header - drop unused includes - add description of sun4d interrupts (from davem) - add KERN_* to printk - fix spaces => tabs - add spaces after reserved words - fix indent of a whole code block in smp4d_boot_one_cpu() Note: two printk() was updated from debug to KERN_INFO in this code block - drop all externs, they are now in header files This is partly based on a patch from: David Miller <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: interrupts ang gpio handlingGuanXuetao5-0/+811
This patch implements interrupts and gpio handling. UniCore32 has 9 gpio interrupt sources. And gpio device operations are also here. Signed-off-by: Guan Xuetao <[email protected]>
2011-03-17unicore32 core architecture: timer and time handlingGuanXuetao4-0/+825
This patch implements timer and time. RTC and PWM device drivers are also here. Signed-off-by: Guan Xuetao <[email protected]>
2011-03-16sparc32,sun4m: irq, smp files cleanupSam Ravnborg2-158/+115
- drop filename in file header - drop unused includes - add description of sun4m interrupts (from davem) - add KERN_* to printk - fix spaces => tabs - add spaces after reserved words - drop all externs, they are now in header files This is partly based on a patch from: David Miller <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: mm related: consistent device DMA handlingGuanXuetao10-0/+1207
This patch implements consistent device DMA handling of memory management. DMA device operations are also here. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32,sun4c: irq file cleanupSam Ravnborg1-37/+44
- drop filename in header - drop unused includes - add description of sun4c interrupts (from davem) - add spaces after reserved words This is partly based on a patch from: David Miller <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: mm related: fault handlingGuanXuetao10-0/+2247
This patch implements fault handling of memory management. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32: add irq + smp declarations to headersSam Ravnborg5-13/+68
In preparation for cleaning up a number of files add declarations for irq and smp related data/functions to the relevant headers. This showed that the extern declaration of cputypval differed in the two files where it was used. As cputypval is defined like this: cputypval: .asciz "sun4c" the correct representation is a char array. Fix users to use the new declaration. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: mm related: generic codesGuanXuetao13-0/+1390
This patch includes generic codes for memory management. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32: remove tick14.cSam Ravnborg3-44/+0
The two methods included in tick14.c was nop because the static variable linux_lvl14 was always NULL. So remove the file and callers. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: process/thread related codesGuanXuetao6-0/+912
This patch implements process/thread related codes. Backtrace and stacktrace are here. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-17unicore32 core architecture: low level entry and setup codesGuanXuetao6-0/+1820
This patch implements low level entry and setup codes. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-17unicore32 core architecture: processor and system headersGuanXuetao10-0/+810
This patch includes processor and system headers. System call interface is here. We used the syscall interface the same as asm-generic version. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16sparc32/leon: FPU-FSR only available when FPU presentDaniel Hellstrom1-1/+1
Signed-off-by: Daniel Hellstrom <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-17unicore32 core architecture: generic elf and ksyms stuffGuanXuetao8-0/+571
This patch includes some generic stuff including elf and ksyms. Because all one-line asm-generic headers are auto-generated by ASM_GENERIC_HEADERS in arch/unicore32/Makefile, so the rest seems very little. ELF handling functions and module handling functions are also here. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-17unicore32 core architecture: build infrastructureGuanXuetao9-0/+758
This patch implements build infrastructure. Signed-off-by: Guan Xuetao <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-03-16SPARC/LEON: power down instruction different of different LEONsDaniel Hellstrom5-17/+97
The way a LEON is powered down is implemented differently depending on CHIP type. The AMBA Plug&Play system ID tells revision of GRLIB and CHIP. This is for example needed by the GR-LEON4-ITX board and the UT699. Previously the power down support for LEON was limited to SMP, now both SMP and UP systems use the instruction. Signed-off-by: Daniel Hellstrom <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc32: added U-Boot build target: uImageDaniel Hellstrom3-1/+66
This is only for LEON as u-boot for SPARC only supports LEON. Signed-off-by: Daniel Hellstrom <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: rename virt_irq => irq - IISam Ravnborg7-53/+53
The generic irq support uses the term 'irq' for the allocated irq number. Fix it so sparc64 use the same term for an irq as the generic irq support does. For a naive reader this is less confusing. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: rename virt_irq => irq - ISam Ravnborg2-80/+77
The generic irq support uses the term 'irq' for the allocated irq number. Fix it so sparc64 use the same term for an irq as the generic irq support does. For a naive reader this is less confusing. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: use up-to-data genirq functionsSam Ravnborg2-59/+61
Drop all uses of deprecated genirq features. The irq_set_affinity() call got a third paramter 'force' which is unused. For now genirq does not use this paramter and it is ignored by sparc. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Josip Rodin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: use {get,set}_irq_data for handler_dataSam Ravnborg1-10/+10
{get,set}_irq_data uses the member "handler_data" in irq_data which fits the naem of the datatype. The change has no functional impact Signed-off-by: Sam Ravnborg <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: all pointers to irq_handler_data renamed to handler_dataSam Ravnborg1-39/+39
In preparation of moving to use irq_data.handler_data rename all pointers to irq_handler_data "handler_data". This will also prevent name clash when we introduce the new irq methods. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc: in handler_irq() rename irq parameter to pilSam Ravnborg3-21/+21
The generic irq support uses "irq" to identify the virtual irq number. To avoid confusion rename the argument to handler_irq() to pil to match the name of the parameter in the PCR register. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc64: fix direct access to irq_descSam Ravnborg1-7/+7
GENERIC_HARDIRQS_NO_DEPRECATED require us to access data via irq_data. No functional changes as data has same layout due to use of union Signed-off-by: Sam Ravnborg <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc: Fix sbus_alloc_coherent error handling.Kristoffer Glembo1-2/+2
Order of kfree and free_pages were swapped in the error handling. Signed-off-by: Kristoffer Glembo <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc: Make mmu_inval_dma_area take void * instead of unsigned long to ↵Kristoffer Glembo1-26/+27
minimize casts. Signed-off-by: Kristoffer Glembo <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc/leon: Make mmu_inval_dma_area flush dcache for LEONs without snooping ↵Kristoffer Glembo1-3/+7
enabled. Signed-off-by: Kristoffer Glembo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc/leon: Add LEON dma_ops.Kristoffer Glembo1-5/+13
This patch sets the dma_ops structure for LEON. It reuses the pci32_dma_ops. Signed-off-by: Kristoffer Glembo <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc: Add pci32_unmap_page.Kristoffer Glembo1-0/+8
Signed-off-by: Kristoffer Glembo <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16sparc: Replace open coded page alignment with PAGE_ALIGN macro.Kristoffer Glembo1-14/+11
Signed-off-by: Kristoffer Glembo <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-16Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6Linus Torvalds40-202/+554
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits) tty: serial: altera_jtaguart: Add device tree support tty: serial: altera_uart: Add devicetree support dt: eliminate of_platform_driver shim code dt: Eliminate of_platform_{,un}register_driver dt/serial: Eliminate users of of_platform_{,un}register_driver dt/usb: Eliminate users of of_platform_{,un}register_driver dt/video: Eliminate users of of_platform_{,un}register_driver dt/net: Eliminate users of of_platform_{,un}register_driver dt/sound: Eliminate users of of_platform_{,un}register_driver dt/spi: Eliminate users of of_platform_{,un}register_driver dt: uartlite: merge platform and of_platform driver bindings dt: xilinx_hwicap: merge platform and of_platform driver bindings ipmi: convert OF driver to platform driver leds/leds-gpio: merge platform_driver with of_platform_driver dt/sparc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: move of_bus_type infrastructure to ibmebus drivercore/dt: add a match table pointer to struct device dt: Typo fix. altera_ps2: Add devicetree support ...
2011-03-16Merge branch 'p2v' into develRussell King86-189/+434
Conflicts: arch/arm/kernel/module.c arch/arm/mach-s5pv210/sleep.S