aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel
AgeCommit message (Collapse)AuthorFilesLines
2009-05-09sh: Add UBC trap vector for SH2APeter Griffin1-0/+5
Signed-off-by: Peter Griffin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-09sh: Add ptrace support for NOMMU debuggingPeter Griffin1-0/+8
Signed-off-by: Peter Griffin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-09sh: Fix UBC setup and registers for SH2AKieran Bingham1-1/+3
Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Peter Griffin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Add clock id to sh-sci platform data on SH-Mobile CPUs.Paul Mundt5-0/+20
This adds the clock specifier to all of the SH-Mobile sh-sci ports. Impacted CPUs are SH7343/SH7366/SH7722/SH7723/SH7724. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Kill off the GENERIC_CALIBRATE_DELAY ifndef.Paul Mundt1-3/+1
Now that everyone is using the clock framework directly and we unconditionally provide our own calibrate_delay() function, having it wrapped in an ifndef is no longer useful. So, kill it off. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: TMU platform data for SH-X3 proto CPU.Paul Mundt1-2/+207
Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: TMU platform data for SH7786.Paul Mundt1-0/+393
Wires up all 12 TMU channels, with TMU0 and 1 used as clockevent and clocksource respectively. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Always fixup unaligned userspace accesses on sh64.Paul Mundt1-30/+5
sh64 has traditionally had this configurable via a Kconfig option (CONFIG_SH64_USER_MISALIGNED_FIXUP). In practice it has never really been terribly useful to turn this off, so just get rid of the option entirely. We leave the sysctl around so we don't end up breaking existing root file systems, and to allow folks that really want this off to do so at their own risk. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Drop dead rules from arch/sh/kernel/Makefile_64.Paul Mundt1-3/+0
Several of these options are specific to the SHcompact ISA and will need to be rewritten for SHmedia if they are to be supported at all. Drop the impossible rules for now. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: TMU platform data for sh7723Magnus Damm1-1/+195
This patch adds TMU platform data for sh7723. Both clockevent and clocksource support is enabled. While at it, adjust the CMT clocksource rating to prioritize the TMU. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: enable TMU clocksource on sh7722Magnus Damm1-2/+2
This patch enables the TMU clocksource on sh7722. To prioritize TMU over CMT we also adjust the CMT clock source rating. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: clock framework update, fix count and kill off krefMagnus Damm1-32/+37
This patch updates the clock framework use count code. With this patch the enable() and disable() callbacks only get called when counting from and to zero. While at it the kref stuff gets replaced with an int. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Kill off sh64's hand-rolled syscall tracer.Paul Mundt1-57/+0
This is no longer necessary, as there are now sufficient generic alternatives available. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Kill off the global rtc_lock with extreme prejudice.Paul Mundt1-5/+0
Now that all of the possible users for rtc_lock have gone away, it is no longer necessary to keep this lock definition around. This follows several other architectures that have either recently dropped it or never supported it in the first place. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Kill off dead timer sysclass pm hooks.Paul Mundt1-45/+0
With the conversion to generic clockevents these are completely unused, so just kill it off. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Kill off dead handle_timer_tick() code.Paul Mundt1-49/+4
Nothing is using this anymore now that we have fully converted to generic time, so kill it off completely. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Wire up GENERIC_CMOS_UPDATE for the platforms that need it.Paul Mundt1-0/+14
Now that everything has converted over to generic timekeeping, we need an alternate method for keeping the RTC updated for those platforms that are still using the rtc_sh_get/set_time pairs, presently limited to SH-03 and the Dreamcast. This wires up the GENERIC_CMOS_UPDATE hooks for those to maintain the same behaviour. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Rename arch/sh/kernel/time_32.c to arch/sh/kernel/time.c.Paul Mundt3-2/+2
This is now fully generic, and used both by _32 and _64 variants. Rename it accordingly. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Finish the sh64 migration off of ARCH_USES_GETTIMEOFFSET.Paul Mundt3-265/+119
This adds sh_tmu support to the SH-5 subtypes, which subsequently allows us to kill off time_64.c and use the now generic time_32.c. As a bonus, SH-5 now supports highres timers and tickless for the first time. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: Move out rtc-sh registration from time_64.c to setup-sh5.cPaul Mundt2-51/+32
Now that the onchip_remap() mess is sorted out, the rtc-sh support code for SH-5 can follow the same approach as the other CPUs. Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: TMU platform data for sh7785Magnus Damm1-0/+204
This patch adds TMU platform data for sh7785. Both clockevent and clocksource support is enabled. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-08sh: call clock framework init() callback onceMagnus Damm1-3/+6
Make sure that clk->ops->init() only gets called once in the case of CLK_ALWAYS_ENABLED. Without this patch the init() callback may be called multiple times. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-07sh: Kill off unused SH-5 irq_describe cruft.Paul Mundt1-22/+0
Signed-off-by: Paul Mundt <[email protected]>
2009-05-07sh: Integrate the SH-5 onchip_remap() more coherently.Paul Mundt6-8/+57
Presently this is special-cased for early initialization. While there are situations where these static early initializations are still necessary, with minor changes it is possible to use this for the regular ioremap implementation as well. This allows us to kill off the special-casing for the remap completely and to start tidying up all of the SH-5 special-casing in drivers. Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: Move dummy clockevents broadcast timer to its new home.Paul Mundt4-2/+4
The old arch/sh/kernel/timers/ directly will be going away completely once the rest of the TMU users are migrated, so move the dummy broadcast driver up a level in preparation. Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: Kill off the now unused ARCH_USES_GETTIMEOFFSET code.Paul Mundt1-9/+0
Now that the stragglers (MTU2/CMT/etc.) have been rewritten and we are selecting both GENERIC_TIME and GENERIC_CLOCKEVENTS, the get_offset() timer op is completely unused. As a result, we are now able to kill off the ARCH_USES_GETTIMEOFFSET references. Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: Consolidate MTU2/CMT/TMU timer platform data.Paul Mundt10-38/+35
All of the SH timers use a roughly identical structure for platform data, which presently is broken out for each block. Consolidate all of these definitions, as there is no reason for them to be broken out in the first place. Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: TMU platform data for sh7722Magnus Damm1-0/+99
This patch adds TMU platform data for sh7722. Only clockevent mode is enabled for now, clocksource requires this patch: "clocksource: setup mult_orig in clocksource_enable()" Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: remove old MTU2 driverMagnus Damm3-206/+0
This patch removes the old MTU2 driver (CONFIG_SH_MTU2/timer-mtu2.c) As replacement, select the sh_cmt driver with CONFIG_SH_TIMER_MTU2 and configure timer channel using platform data. If multiple MTU channels are enabled using platform data, use the earlytimer parameter on the kernel command line to select channel. For instance, use "earlytimer=sh_mtu2.0" to select the first channel. To verify which timer is being used, look at printouts or the timer irq count in /proc/interrupts. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: sh2a MTU2 platform dataMagnus Damm4-1/+400
This patch adds MTU2 platform data for the following cpus: - sh7201 (3/5 channels) - sh7203/sh7263 (2/4 channels) - sh7206 (3/5 channels) - MXG (3/5 channels) Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03time: sh: convert to use arch_getoffset() infrastructurejohn stultz3-110/+8
Convert sh to use GENERIC_TIME via the arch_getoffset() infrastructure. Signed-off-by: John Stultz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: remove obsolete hw_interrupt_typeThomas Gleixner2-2/+2
Impact: cleanup Convert the last remaining users to struct irq_chip and remove the define. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03sh: remove obsolete no_irq_typeThomas Gleixner1-2/+1
Impact: cleanup convert the last remaining users to no_irq_chip Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-05-03Merge branch 'timers/clocksource' of ↵Paul Mundt1-2/+3
git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip
2009-04-30sh: remove old CMT driverMagnus Damm3-192/+0
This patch removes the old CMT driver (CONFIG_SH_CMT/timer-cmt.c) As replacement, select the sh_cmt driver with CONFIG_SH_TIMER_CMT and configure timer channel using platform data. If multiple CMT channels are enabled using platform data, use the earlytimer parameter on the kernel command line to select channel. For instance, use "earlytimer=sh_cmt.0" to select the first channel. To verify which timer is being used, look at printouts or the timer irq count in /proc/interrupts. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-04-30sh: sh2/sh2a 16-bit CMT platform dataMagnus Damm3-0/+252
This patch adds 16-bit cmt platform data for the following cpus: - sh7619 (2 channels) - sh7203/sh7263 (2 channels) - sh7206 (2 channels) Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-04-28sh: register the rtc-generic platform device properly.Paul Mundt1-1/+16
The device registration was accidentally omitted, add it back in. Do some basic device probing as well, so this doesn't show up for platforms that tie in to the RTC interface properly. Signed-off-by: Paul Mundt <[email protected]>
2009-04-28sh: setup timers in late_time_init()Magnus Damm1-14/+20
This patch moves the SuperH timer setup code from time_init() to late_time_init(). Good things about this change: - interrupts: they are enabled at late_time_init() - mm: regular kmalloc() can be used at late_time_init() Together with moving to late_time_init() this patch changes the sh_cmt driver to always allocate with kmalloc(). This simplifies the code a bit and also fixes section mismatches. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-04-27sh: Use __INIT macro instead of .text.init.Tim Abbott1-2/+3
The sh architecture has some code in the .text.init section, but it does not reference that section in its linker scripts. This change moves this code from the .text.init section to the .init.text section, which is presumably where it belongs. Signed-off-by: Tim Abbott <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Acked-by: Paul Mundt <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-04-27sh: rtc-generic support.Paul Mundt1-0/+23
This adds rtc-generic support for SUPERH32. Signed-off-by: Paul Mundt <[email protected]>
2009-04-27Merge branches 'sh/stable-updates' and 'sh/pci-rework'Paul Mundt5-4/+9
2009-04-26sh: convert to use __HEAD and HEAD_TEXT macros.Tim Abbott4-4/+8
This has the consequence of changing the section name use for head code from ".text.head" to ".head.text". Since this commit changes all users in the architecture, this change should be harmless. Signed-off-by: Tim Abbott <[email protected]> Cc: Paul Mundt <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-04-22Merge branch 'master' of ↵Paul Mundt3-2/+11
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
2009-04-21clocksource: pass clocksource to read() callbackMagnus Damm2-2/+2
Pass clocksource pointer to the read() callback for clocksources. This allows us to share the callback between multiple instances. [[email protected]: fix powerpc build of clocksource pass clocksource mods] [[email protected]: cleanup] Signed-off-by: Magnus Damm <[email protected]> Acked-by: John Stultz <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-04-21Merge branch 'sh/stable-updates' into sh/for-2.6.30Paul Mundt1-0/+9
2009-04-21sh: Fix mmap2 for handling differing PAGE_SIZEs.Toshinobu Sugioka1-0/+9
mmap2 uses a fixed page shift of 12, regardless of the PAGE_SIZE setting. Fix up the mmap2 code to add some sanity checks on the mapping, and to update pgoff accordingly. Error handling bits based on 4280e3126f641898f0ed1a931645373d3489e2a6 ("frv: fix mmap2 error handling"). Signed-off-by: Toshinobu Sugioka <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2009-04-20sh: pci: Consolidate pci_iomap() and use the generic I/O base.Paul Mundt1-4/+0
This consolidates the pci_iomap() definitions and reworks how the I/O port base is handled. PCI channels can register their own I/O map base, or if none is provided, the system-wide generic I/O base is used instead. Functionally nothing changes, while this allows us to kill off lots of I/O address special casing and lookups. Signed-off-by: Paul Mundt <[email protected]>
2009-04-19sh: sh7724: Register CMT as an early platform device here too.Paul Mundt1-0/+10
Follows the SH7722/SH7723 changes. Signed-off-by: Paul Mundt <[email protected]>
2009-04-19sh: sh7724: Don't default enable the RTC clock.Paul Mundt1-1/+0
rtc-sh takes care of this now, so no need to have this always enabled. Signed-off-by: Paul Mundt <[email protected]>
2009-04-19Merge branches 'sh/earlytimer' and 'sh/shmobile-r2r-staging'Paul Mundt11-13/+2944