aboutsummaryrefslogtreecommitdiff
path: root/include/asm-arm
AgeCommit message (Collapse)AuthorFilesLines
2008-01-28[ARM] 4775/1: s3c2410: fix compilation error if only s3c2442 cpu is selectedKrzysztof Helt1-1/+1
This patch fixes compilation error if only a machine with s3c2442 cpu is selected but without s3c2440 cpu selected. Signed-off-by: Krzysztof Helt <[email protected]> Acked-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4730/1: S3C2412: Ensure the PWRCFG has the right mode for RTC wakeBen Dooks1-0/+2
Ensure that if the RTC IRQ is not selected for wake in the base configuration, then the PWRCFG has the same value set in it. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4727/1: S3C2412: Remove unused GPESLPCONBen Dooks1-1/+0
S3C2412_GPESLPCON does not exist in the register mappings, so remove it. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4726/1: S3C2412: IIS register definitionsBen Dooks1-0/+72
The S3C2412 IIS engine differs from the previous SoC in the range, so add a set of register definitions in a seperate file for it. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4722/1: S3C24XX: Improve output if watchdog reset failsBen Dooks1-3/+6
If the watchdog reset fails and we decided to take the jump to zero approach, allow 50ms for the UARTS to drain the FIFOs before calling into a bootloader that may flush the output. Also reduece the waits and the timeout values as 5 seconds is rather long. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4721/1: S3C24XX: Ensure watchdog clock is enbaled for hard resetBen Dooks1-0/+11
If the hard reset routine is using the watchdog, then ensure that the clock for the watchdog has been enabled before we try and issue a reset. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4720/1: S3C2412: Add power configuration registers for battery flat ↵Ben Dooks1-1/+2
behaviour. Add the S3C2412_PWRCFG values for the action taken on detecting that the battery is flat. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4719/1: S3C2412: Update SPI register definitions for the S3C2412Ben Dooks1-2/+7
Add S3C2412 register definitions. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4762/1: Basic support for Toradex Colibri moduleDaniel Mack1-0/+19
This patch adds support for Toradex' PXA27x based Colibri module. It's kept as simple as possible to only provide basic functionality. A default config is also included. Signed-off-by: Daniel Mack <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4737/1: Refactor corgi_lcd to improve readability + bugfixRichard Purdie3-4/+1
This patch refactors the code in corgi_lcd.c moving it to the board specific corgi and spitz files where appropriate instead of the existing ifdef mess which hinders readability. Fix spitz_get_hsync_len() to call get_hsync_invperiod so pxafb can be compiled as a module. The confusing variables which represent the inverse horizintal sync period are renamed to "invperiod" consistently. An incorrect comment in corgi_ts.c is also corrected. Signed-off-by: Richard Purdie <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4747/1: pcm027: support for pcm990 baseboard for phyCORE-PXA270Robert Schwebel1-0/+275
This patch adds baseboard support for the phyCORE-PXA270 development kit (aka PCM-990). This example shows how to use some phyCORE-PXA270 CPU module features on a baseboard in a standard manner. It could be used as a starting point for custom baseboard development. V2: After comments by Eric Miao: - IRQ chained handler fixed - video/graphic support moved to separate patch - ifdef/endif hell reduced ;-) V3: After comments by Russell King - initialise the mmci platform data statically V4: After comments by Russell King - wrong return value in pcm990_mci_init() fixed Signed-off-by: Juergen Beisert <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4744/1: pcm027: add support for phyCORE-PXA270 CPU moduleRobert Schwebel2-1/+84
This patch adds main support for the generic phyCORE-PXA270 CPU module (aka PCM-027). Its as generic as possible to support any kind of baseboard. Note: Neither the CPU module nor the pcm027.c implementation can work without a baseboard support. Baseboard support can be added by the PCM-990 or any custom variant. V2: After comments by Eric Miao: - Currently unsupported devices moved into separate patch - direct call of baseboard initialisation V3: After comments by Russell King - sort include files - setting RTC bit for power control removed - style problems fixed (discovered by checkpatch.pl) Signed-off-by: Juergen Beisert <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] pxa: add basic support for Littleton (PXA3xx Form Factor Platform)eric miao1-0/+6
Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-28[ARM] 4664/1: Add basic support for HTC Magician PDA phonesPhilipp Zabel1-0/+111
This includes irda, gpio keys, pxafb, backlight, ohci and flash (read-only). Signed-off-by: Philipp Zabel <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-27i2c-pxa: Add polling transferMike Rapoport1-0/+6
Add polling I2C transfer implementation for PXA I2C. This is needed for cases where I2C transactions have to occur at times interrups are disabled. Signed-off-by: Mike Rapoport <[email protected]> Acked-by: eric miao <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
2008-01-27i2c/tps65010: move header to <linux/i2c/...>David Brownell1-156/+0
Move the tps65010 header file from the OMAP arch directory to the more generic <linux/i2c/...> directory, and remove the spurious dependency of this driver on OMAP. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
2008-01-27i2c: some overdue driver removalAdrian Bunk1-11/+0
This patch contains the overdue removal of three I2C drivers. [JD: In fact only i2c-ixp4xx can be removed at the moment, the other two platforms don't implement the generic GPIO layer yet.] Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
2008-01-26ARM kprobes: special hook for the kprobes breakpoint handlerNicolas Pitre1-0/+7
The kprobes code is already able to cope with reentrant probes, so its handler must be called outside of the region protected by undef_lock. If ever this lock is released when handlers are called then this commit could be reverted. Signed-off-by: Nicolas Pitre <[email protected]>
2008-01-26ARM kprobes: prevent some functions involved with kprobes from being probedNicolas Pitre1-0/+9
Signed-off-by: Nicolas Pitre <[email protected]>
2008-01-26ARM kprobes: core codeAbhishek Sagar1-0/+29
This is a full implementation of Kprobes including Jprobes and Kretprobes support. This ARM implementation does not follow the usual kprobes double- exception model. The traditional model is where the initial kprobes breakpoint calls kprobe_handler(), which returns from exception to execute the instruction in its original context, then immediately re-enters after a second breakpoint (or single-stepping exception) into post_kprobe_handler(), each time the probe is hit.. The ARM implementation only executes one kprobes exception per hit, so no post_kprobe_handler() phase. All side-effects from the kprobe'd instruction are resolved before returning from the initial exception. As a result, all instructions are _always_ effectively boosted regardless of the type of instruction, and even regardless of whether or not there is a post-handler for the probe. Signed-off-by: Abhishek Sagar <[email protected]> Signed-off-by: Quentin Barnes <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]>
2008-01-26ARM kprobes: instruction single-stepping supportQuentin Barnes1-0/+43
This is the code implementing instruction single-stepping for kprobes on ARM. To get around the limitation of no Next-PC and no hardware single- stepping, all kprobe'd instructions are split into three camps: simulation, emulation, and rejected. "Simulated" instructions are those instructions which behavior is reproduced by straight C code. "Emulated" instructions are ones that are copied, slightly altered and executed directly in the instruction slot to reproduce their behavior. "Rejected" instructions are ones that could be simulated, but work hasn't been put into simulating them. These instructions should be very rare, if not unencountered, in the kernel. If ever needed, code could be added to simulate them. One might wonder why this and the ptrace singlestep facility are not sharing some code. Both approaches are fundamentally different because the ptrace code regains control after the stepped instruction by installing a breakpoint after the instruction itself, and possibly at the location where the instruction might be branching to, instead of simulating or emulating the target instruction. The ptrace approach isn't suitable for kprobes because the breakpoints would have to be moved back, and the icache flushed, everytime the probe is hit to let normal code execution resume, which would have a significant performance impact. It is also racy on SMP since another CPU could, with the right timing, sail through the probe point without being caught. Because ptrace single-stepping always result in a different process to be scheduled, the concern for performance is much less significant. On the other hand, the kprobes approach isn't (currently) suitable for ptrace because it has no provision for proper user space memory protection and translation, and even if that was implemented, the gain wouldn't be worth the added complexity in the ptrace path compared to the current approach. So, until kprobes does support user space, both kprobes and ptrace are best kept independent and separate. Signed-off-by: Quentin Barnes <[email protected]> Signed-off-by: Abhishek Sagar <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]>
2008-01-26[ARM] pxa: Add PXA3 standby code hooked into the IRQ wake schemeRussell King1-0/+86
Wakeup sources on PXA3 are enabled at two levels. First, the MFP configuration has to be set to enable which edges a specific pin will trigger a wakeup. The pin also has to be routed to a functional unit. Lastly, the functional unit must be enabled as a wakeup source in the appropriate AD*ER registers (AD2D0ER for standby resume.) This doesn't fit well with the IRQ wake scheme - we currently do a best effort conversion from IRQ numbers to functional unit wake enable bits. For instance, there's several USB client related enable bits but there's no corresponding IRQs to determine which you'd want. Conversely, there's a single enable bit covering several functional units. Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: make MFP configuration processor independenteric miao2-194/+183
There are two reasons for making the MFP configuration to be processor independent, i.e. removing the relationship of configuration bits with actual MFPR register settings: 1. power management sometimes requires the MFP to be configured differently when in run mode or in low power mode 2. for future integration of pxa{25x,27x} GPIO configurations The modifications include: 1. introducing of processor independent MFP configuration bits, as defined in [include/asm-arm/arch-pxa/mfp.h]: bit 0.. 9 - MFP Pin Number (1024 Pins Maximum) bit 10..12 - Alternate Function Selection bit 13..15 - Drive Strength bit 16..18 - Low Power Mode State bit 19..20 - Low Power Mode Edge Detection bit 21..22 - Run Mode Pull State and so on, 2. moving the processor dependent code from mfp.h into mfp-pxa3xx.h 3. cleaning up of the MFPR bit definitions 4. mapping of processor independent MFP configuration into processor specific MFPR register settings is now totally encapsulated within pxa3xx_mfp_config() 5. using of "unsigned long" instead of invented type of "mfp_cfg_t" according to Documentation/CodingStyle Chapter 5, usage of this in platform code will be slowly removed in later patches Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: remove un-used pxa3xx_mfp_set_xxx() functionseric miao1-14/+0
pxa3xx_mfp_set_xxx() functions are originally provided for overwriting MFP configurations performed by pxa3xx_mfp_config(), the usage of such a dirtry trick is not recommended, since there is currently no user of these functions, they are safely removed Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: introduce a new file mfp-pxa3xx.h for common pin configurationseric miao4-133/+139
Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: move memory controller registers into pxa2xx-regs.hRussell King2-63/+84
PXA3 has a different memory controller from PXA2 platforms. Avoid clashing definitions by moving the PXA2 definitions to pxa2xx-regs.h Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: make OHCI register definitions available to both pxa27x and pxa3xxeric miao1-68/+71
Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: mmc: add 3rd host controller support for pxa310Bridge Wu1-0/+1
This patch is to add the third mmc controller support _only_ for pxa310. On zylonite, the third controller support one slot. Signed-off-by: Bridge Wu <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: mmc: add 2nd host controller support for pxa3xxBridge Wu1-0/+1
This patch is to add the second mmc controller support for pxa3xx. It's valid for pxa3[0|1|2]0. On zylonite, the second controller has no slot. Signed-off-by: Bridge Wu <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: mmc: add 1st host controller support for pxa3xxBridge Wu1-0/+9
This patchis to add the first mmc controller support for pxa3xx. It's valid for pxa3[0|1|2]0. On zylonite, the first controller supports two slots, this patch only support the first one right now. Signed-off-by: Bridge Wu <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4718/1: Fix redefinition warnings in PXA uncompressor codePhilipp Zabel1-4/+1
FFUART and friends are already defined as __REG(x) in pxa-regs.h. Instead of redefining them here, we can just provide the __REG macro. Including asm/arch/hardware.h is not an option because this physical addresses are needed here. This is a fix for the compiler warnings generated by 4663/1. Signed-off-by: Philipp Zabel <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: make pxa2xx_spi driver use ssp_request()/ssp_free()eric miao1-24/+0
1. make pxa2xx_spi.c use ssp_request() and ssp_free() to get the common information of the designated SSP port. 2. remove those IRQ/memory request code, ssp_request() has done that for the driver 3. the SPI platform device is thus made psuedo, no resource (memory/IRQ) has to be defined, all will be retreived by ssp_request() 4. introduce ssp_get_clk_div() to handle controller difference in clock divisor setting 5. use clk_xxx() API for clock enable/disable, and clk_get_rate() to handle the different SSP clock frequency between different processors Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: use __raw_writel()/__raw_readl() for ssp_xxxx()eric miao1-75/+14
1. change SSP register definitions from absolute virtual addresses to offsets 2. use __raw_writel()/__raw_readl() for functions of ssp_xxxx() Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: move SSP register definitions from pxa-regs.h to regs-ssp.heric miao2-167/+174
Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] pxa: define "struct ssp_device" and add ssp_request()/ssp_free()eric miao1-3/+33
1. define "struct ssp_device" for SSP information, which is requested and released by function ssp_request()/ssp_free() 2. modify the ssp_init() and ssp_exit() to use the interface Signed-off-by: eric miao <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4663/1: Only putc uncompressor output into FFUART if it was enabled by ↵Philipp Zabel1-2/+7
the bootloader Also, use existing register and bit definitions instead of numbers. Signed-off-by: Philipp Zabel <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] Orion: MV88F5181 support bitsHerbert Valerio Riedel1-0/+3
add MV88F5181 support bits required by D-link DNS-323 patch Signed-off-by: Herbert Valerio Riedel <[email protected]> Acked-by: Tzachi Perelstein <[email protected]> Acked-by: Russell King <[email protected]>
2008-01-26[ARM] Orion: platform device registration for UART, USB and NANDTzachi Perelstein1-0/+25
Signed-off-by: Tzachi Perelstein <[email protected]> Reviewed-by: Nicolas Pitre <[email protected]> Reviewed-by: Lennert Buytenhek <[email protected]> Acked-by: Russell King <[email protected]>
2008-01-26[ARM] Orion: provide GPIO method for enabling hardware assisted blinkingHerbert Valerio Riedel1-0/+1
This is a pre-requisite for implementing proper hardware accelerated GPIO LED flashing, and since we want proper locking, it's sensible to provide the orion specific orion_gpio_set_blink() implementation within mach-orion/gpio.c. The functions orion_gpio_set_blink() and gpio_set_value() implicitly turn off each others state. Signed-off-by: Herbert Valerio Riedel <[email protected]> Acked-by: Tzachi Perelstein <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Acked-by: Russell King <[email protected]>
2008-01-26[ARM] Orion: GPIO supportTzachi Perelstein1-0/+27
Signed-off-by: Tzachi Perelstein <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]> Acked-by: David Brownell <[email protected]>
2008-01-26[ARM] basic support for the Marvell Orion SoC familyTzachi Perelstein12-0/+408
The Marvell Orion is a family of ARM SoCs with a DDR/DDR2 memory controller, 10/100/1000 ethernet MAC, and USB 2.0 interfaces, and, depending on the specific model, PCI-E interface, PCI-X interface, SATA controllers, crypto unit, SPI interface, SDIO interface, device bus, NAND controller, DMA engine and/or XOR engine. This contains the basic structure and architecture register definitions. Signed-off-by: Tzachi Perelstein <[email protected]> Reviewed-by: Nicolas Pitre <[email protected]> Reviewed-by: Lennert Buytenhek <[email protected]> Acked-by: Russell King <[email protected]>
2008-01-26[ARM] Marvell Feroceon CPU core supportAssaf Hoffman2-0/+16
The Feroceon is a family of independent ARMv5TE compliant CPU core implementations, supporting a variable depth pipeline and out-of-order execution. The Feroceon is configurable with VFP support, and the later models in the series are superscalar with up to two instructions per clock cycle. This patch adds the initial low-level cache/TLB handling for this core. Signed-off-by: Assaf Hoffman <[email protected]> Reviewed-by: Tzachi Perelstein <[email protected]> Reviewed-by: Nicolas Pitre <[email protected]> Reviewed-by: Lennert Buytenhek <[email protected]> Acked-by: Russell King <[email protected]>
2008-01-26[ARM] 4764/1: [AT91] AT91CAP9 core supportAndrew Victor9-6/+276
Add support for Atmel's AT91CAP9 Customizable Microcontroller family. <http://www.atmel.com/products/AT91CAP/Default.asp> Signed-off-by: Stelian Pop <[email protected]> Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4758/1: [AT91] LEDsAndrew Victor1-2/+2
Move the LED initialization code out of the various *_devices.c files, and into leds.c. Also add support for NEW_LEDs. Patch from David Brownell. Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4757/1: [AT91] UART initializationAndrew Victor1-1/+11
Modify the UART initialization to allow the board-initialization code to specify which pins are connected, and which pins should therefore be initialized. The current at91_init_serial() will continue to work as-is, but is marked as "deprecated" and will be removed once the board-specific files has been updated to use the new interface. As in the AVR32 code, we assume that the TX and RX pins will always be initialized. Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4754/1: [AT91] SSC library supportAndrew Victor1-0/+17
Core support of the Atmel SSC library for all Atmel AT91 processors. Based on David Brownell's initial patch for the AT91RM9200. Signed-off-by: Andrew Victor <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4752/1: [AT91] RTT, RTC and WDT peripherals on SAM9Andrew Victor1-4/+4
Add platform_device and initialization for the RTT (Real Time Timer) and WDT (Watchdog) integrated in the Atmel AT91SAM9 processors. For SAM9263, register both RTT peripherals. [From: David Brownell <[email protected]>] Provide platform_resources for RTT peripherals [From: David Brownell <[email protected]>] Add support for RTC peripheral on AT91SAM9RL (same RTC peripherals as AT91RM9200) [From: David Brownell <[email protected]>] Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4751/1: [AT91] ISI peripheral on SAM9263Andrew Victor1-0/+3
Add support for the Image Sensor Interface (ISI) peripheral integrated in the Atmel AT91SAM9263 processor. Patch from MaLiK Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4688/1: at91: speed-up irq processingMarc Pignat1-1/+1
Save N instructions on every interrupt processing (where N is the number of interrupts processed in any one IRQ exception). Signed-off-by: Marc Pignat <[email protected]> Acked-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>
2008-01-26[ARM] 4657/1: AT91: Header definition updateAndrew Victor3-2/+15
Add definitions of registers / bits found on some AT91SAM9 processors Signed-off-by: Andrew Victor <[email protected]> Signed-off-by: Russell King <[email protected]>