aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel/cpu
AgeCommit message (Collapse)AuthorFilesLines
2008-06-02sh/kernel/cpu/irq/intc-sh5.c build fixAdrian Bunk1-0/+1
This patch fixes the following build error caused by commit a1dc4b59fa4af97ae68ee214d4d72bbd7c7ec1dc (sh: intc_sh5 depends on cayman board for IRQ priority table.): <-- snip --> ... CC arch/sh/kernel/cpu/irq/intc-sh5.o /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/kernel/cpu/irq/intc-sh5.c: In function 'plat_irq_setup': /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/kernel/cpu/irq/intc-sh5.c:257: error: expected declaration or statement at end of input make[4]: *** [arch/sh/kernel/cpu/irq/intc-sh5.o] Error 1 <-- snip --> Reported-by: Adrian Bunk <[email protected]> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-26sh: Drop broken URAM support on SH7723.Paul Mundt1-6/+0
This was copied over from the previous MobileR bits, which doesn't apply to R2. The URAM block on R2 is recycled for the L2 instead. Signed-off-by: Paul Mundt <[email protected]>
2008-05-23sh: add probe support for new sh7723 cutMagnus Damm1-0/+1
This patch adds support for sh7723 silicon with a prr value of 0x51. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-23sh: fix VPU interrupt vector for sh7723Magnus Damm1-1/+1
This patch fixes a VPU vector typo for sh7723. The correct value is 0x980, the same as for sh7722. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-23sh: fix USBF resource for sh7722Magnus Damm1-1/+1
The USBF function on sh7722 is currently not working with the m66592_udc driver. The driver is using platform_get_resource_byname() so my commit a0d29798e568116aa6c32aef7bab2d9e620c88ad broke sh7722 support. The long term fix is to replace platform_get_resource_byname() in the driver with platform_get_resource(), but this helps until that happens. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-16sh: fix sh7785 master clock valueYoshihiro Shimoda1-1/+1
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-09SH: catch negative denormal_subf1() retval in denormal_add()Roel Kluin1-2/+2
'ix' is unsigned but denormal_subf1() may return a negative int. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: intc register modify fixMagnus Damm1-0/+9
Make sure register modifications stay atomic. Fixes processors with shared priority register masking. Dual bitmap masking is unaffected. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: no high level trigger on some sh3 cpusMagnus Damm1-0/+5
The processor models sh7706, sh7707 and sh7709 don't support high level trigger sense configuration. And the intc code looks like crap these days so what's the difference. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: clean up sh7710 and sh7720 intc tablesMagnus Damm2-8/+1
Clean up the intc tables by removing unneeded #ifdefs. The vector list is what selects which interrupt sources that should be added, having unsupported bitfields listed is ok as long as the vector is excluded from the list. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: add interrupt ack code to sh3Magnus Damm2-7/+87
This patch adds interrupt acknowledge code for external interrupt sources on sh3 processors. Only really required for edge triggered interrupts, but we ack regardless of sense configuration. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: unify external irq pin code for sh3Magnus Damm6-94/+75
This patch unifies the sh3 external irq pin code. It buys us some savings with reduced code redundancy, but the main feature with this change is irq sense selection support for all sh3 processors. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: fix sh7705 interrupt vector typoMagnus Damm1-1/+1
Fix sh7705 interrupt sources for vectors 0xc80 and 0xca0. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: intc_sh5 depends on cayman board for IRQ priority table.Paul Mundt1-35/+38
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: Setup I/D-TLB defaults in SH-5 probe path.Paul Mundt1-0/+4
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: Fixup the nommu build.Paul Mundt1-0/+28
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Fix up L2 cache probe.Paul Mundt1-0/+6
SH7723 is the first hard silicon to implement the L2, and unsurprisingly, does the precise inverse of what the specification alleges. XOR the URAM/L2 size bits to get back in line with the existing parsing logic. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Fix up SH-4A part probe.Paul Mundt1-1/+1
The SH-4A series probe we were relying on doesn't work any more on the newer parts, bump this up to use CVR.CHIP instead so we have consistent behaviour across all of the parts, which is what this should have been testing in the first place. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Add support for SH7723 CPU subtype.Paul Mundt3-10/+317
This adds basic support for the SH7723 MobileR2 CPU. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Fix up SH7763 build.Paul Mundt1-9/+1
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Add I2C platform data to sh7722Magnus Damm1-0/+21
Add platform data for the SuperH Mobile I2C block to sh7722. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Use physical addresses for sh7722 USBF resourcesMagnus Damm1-4/+3
Use physical addresses and change resource name to follow data sheet. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Hook up the rest of the SH7770 serial ports.Paul Mundt1-1/+36
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Initial support for the MX-G CPU.Paul Mundt3-3/+175
Signed-off-by: Paul Mundt <[email protected]>
2008-03-26sh: Fix occasional FPU register corruption under preempt.Paul Mundt3-0/+3
Presently with preempt enabled there's the possibility to be preempted after the TIF_USEDFPU test and the register save, leading to bogus state post-__switch_to(). Use an explicit preempt_disable()/enable() pair around unlazy_fpu()/clear_fpu() to avoid this. Follows the x86 change. Reported-by: Takuo Koguchi <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-13sh: Fix up the address error exception handler for SH-2.Kieran Bingham1-1/+0
Presently the SH-2/SH-2A address error exception dispatch copies off the register state from the stack and skips over the first register, skewing the rest. Fix up the math here so that the proper register state is handed down to the exception handler itself. Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh: Fix up section mismatches.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh: replace remaining __FUNCTION__ occurrencesHarvey Harrison2-3/+3
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-26serial: Move asm-sh/sci.h to linux/serial_sci.h.Paul Mundt18-18/+18
This header is needed on other architectures as well (namely h8300), which currently fails to build without this in place. Rather than duplicating the port definition completely there, just move this to a common location instead. This should get h8300 working again for 2.6.25, in addition to the changes already pushed by Sato-san in -rc2. Signed-off-by: Paul Mundt <[email protected]>
2008-02-26sh: fix rtc_resources setup for sh770xRafael Ignacio Zurita1-3/+3
Fix the RTC resources setup for sh770x. Whit these proper start values RTC driver (drivers/rtc/rtc-sh.c) works. Signed-off-by: Rafael Ignacio Zurita <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-26sh: Storage class should be before const qualifierTobias Klauser1-2/+2
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-25sh: Rename SH-3 CCR3 reg to avoid synclink_cs clash.Paul Mundt1-2/+2
drivers/char/pcmcia/synclink_cs.c:284:1: warning: "CCR3" redefined In file included from include/asm/cache.h:13, from include/asm/processor_32.h:15, from include/asm/processor.h:60, from include/linux/prefetch.h:14, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/char/pcmcia/synclink_cs.c:38: include/asm/cpu/cache.h:38:1: warning: this is the location of the previous definition Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Get SH-5 caches working again post-unification.Paul Mundt1-33/+28
A number of cleanups to get the SH-5 cache management code in line with the rest of the SH backend. Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Shut up some trivial build warnings.Paul Mundt1-15/+12
Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: add support for sh7366 processorMagnus Damm4-1/+194
This patch adds sh7366 cpu supports. Just the most basic things like interrupt controller, clocks and serial port are included at this point. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: remove maskreg irq codeMagnus Damm2-94/+0
This patch removes the maskreg irq code since it is not in use anymore. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: add probe support for new sh7722 cutMagnus Damm1-1/+1
This patch adds support for sh7722 devices with prr value 0xa1. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-08Fix container_of() usageAlexey Dobriyan1-1/+1
Using "attr" twice is not OK, because it effectively prohibits such container_of() on variables not named "attr". Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Rusty Russell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-01-28sh: Add OHCI and UDC platform devices for SH7720.Yoshihiro Shimoda1-0/+53
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: intc - remove default interrupt priority tablesMagnus Damm14-139/+36
This patch removes interrupt priority tables from the intc code. Optimal priority assignment varies with embedded application anyway, so keeping the interrupt priority tables together with cpu-specific code doesn't make sense. The function intc_set_priority() should be used instead to set the desired interrupt priority level. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: sh7712 clock supportAndrew Murray2-0/+72
This patch provides specific clock support for the SH7712. Signed-off-by: Andrew Murray <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add support for SH7763 CPU subtype.Yoshihiro Shimoda4-0/+520
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add support for SH7721 CPU subtype.Yoshihiro Shimoda3-2/+13
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Encode L1/L2 cache shape in auxvt.Paul Mundt1-1/+28
This adds in the L1I/L1D/L2 cache shape support to their respective entries in the ELF auxvt, based on the Alpha implementation. We use this on the userspace libc side for calculating a tightly packed SHMLBA amongst other things. Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Support denormalization on SH-4 FPU.Stuart Menefy3-181/+1227
Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Preparation for uncached jumps through PMB.Stuart Menefy2-6/+6
Presently most of the 29-bit physical parts do P1/P2 segmentation with a 1:1 cached/uncached mapping, jumping between the two to control the caching behaviour. This provides the basic infrastructure to maintain this behaviour on 32-bit physical parts that don't map P1/P2 at all, using a shiny new linker section and corresponding fixmap entry. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: GUSA atomic rollback support.Stuart Menefy1-1/+23
This implements kernel-level atomic rollback built on top of gUSA, as an alternative non-IRQ based atomicity method. This is generally a faster method for platforms that are lacking the LL/SC pairs that SH-4A and later use, and is only supportable on legacy cores. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: comment tidying for sh64->sh migration.Paul Mundt5-20/+17
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: syscall auditing for sh5, too.Paul Mundt1-4/+6
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: SH-2A FPU support.Paul Mundt5-16/+661
Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Paul Mundt <[email protected]>