summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* sh: TMU platform data for sh7780Magnus Damm2009-05-111-0/+204
| | | | | | | | This patch adds TMU platform data for sh7780. Both clockevent and clocksource support is enabled. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: r7780 highlander clock fixesMagnus Damm2009-05-112-2/+2
| | | | | | | | Update the r7780 highlander defconfig to fix PCLK value, while at it fix cmdline on r7785. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: multiple vectors per irq - sh7760Magnus Damm2009-05-112-21/+13
| | | | | | | | | | | | Update intc tables and platform data to use one linux irq per maskable interrupt source instead of keeping the one-to-one mapping between vectors and linux irqs. This fixes potential irq masking issues for sh7760 hardware blocks such as DMAC/TMU2/REF. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: TMU platform data for sh7760Magnus Damm2009-05-111-0/+109
| | | | | | | | This patch adds TMU platform data for sh7760. Both clockevent and clocksource support is enabled. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: TMU platform data for sh775xMagnus Damm2009-05-111-0/+187
| | | | | | | | This patch adds TMU platform data for sh775x. Both clockevent and clocksource support is enabled. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: include empty_zero_page in textMagnus Damm2009-05-111-1/+2
| | | | | | | | | Include empty_zero_page in _text. This fixes a problem introduced by c3e2586b794b12ffcdf69b4e547030b51e18e6d9 which results in broken boot on R2D-Plus. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: sh7785lcr: fix I2C device address map for 32-bit modeYoshihiro Shimoda2009-05-111-5/+5
| | | | | | | | This fixes up the broken I2C offset in 32-bit mode. The cause is because the board datasheet had a mistake. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Account for INITIAL_JIFFIES when using jiffies clocksource.Paul Mundt2009-05-111-1/+1
| | | | | | | | In the case where we fall back on the generic jiffies clocksource, INITIAL_JIFFIES needs to be accounted for so that printk times aren't completely skewed. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up typo in arch/sh/kernel/vmlinux.lds.SPaul Mundt2009-05-111-1/+1
| | | | | | .init_ramfs ought to be .init.ramfs, fix it up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up R0 dependence in __arch_swab16/32.Paul Mundt2009-05-101-6/+6
| | | | | | | | | | | | | | | | | | | | | | | There is nothing in these routines that inherently depends on R0 use. Given that these routines are inlined, it is rather easy to blow up the compiler by exhausting the spill class when performing a 64-bit swab. This presently manifests itself as the following: CC fs/ocfs2/suballoc.o fs/ocfs2/suballoc.c: In function 'ocfs2_reserve_suballoc_bits': fs/ocfs2/suballoc.c:638: error: unrecognizable insn: (insn 2793 1230 1231 103 arch/sh/include/asm/swab.h:33 (set (reg:HI 853) (subreg:HI (reg:SI 149 macl) 2)) -1 (expr_list:REG_DEAD (reg:SI 149 macl) (nil))) fs/ocfs2/suballoc.c:638: internal compiler error: in extract_insn, at recog.c:1991 This patch switches over to using an arbitrarily assigned register instead. While the same issue does not exist in the SH-5 case, there is likewise no harm in having an alternate register used for the byterev/shari pair. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Hook up cc-cross-prefix support.Paul Mundt2009-05-101-0/+6
| | | | | | | This implements a simple case that just iterates through the common cases, looking at UTS_MACHINE for hints. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Consolidate the boot link and entry offset definitions.Paul Mundt2009-05-102-12/+18
| | | | | | | | Consolidate these in a single place in the Kconfig menus. At the same time, disable their interactivity and set them according to the board config defaults. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Merge the split arch/sh/boot/compressed/ Makefiles.Paul Mundt2009-05-103-90/+47
| | | | | | | This kills off the _64 variant and moves the _32 one over as the generic one to use. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide a BITS definition, use it in the arch/sh/boot/ Makefiles.Paul Mundt2009-05-104-14/+10
| | | | | | | | This introduces a BITS export that can handily be picked up by Makefiles for cleaner sharing. Reflect its use in arch/sh/boot/compressed/ in preparation for unifying the Makefiles. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide a tighter BOOT_LINK_OFFSET definition for the Cayman board.Paul Mundt2009-05-101-0/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up the sh64 zImage build.Paul Mundt2009-05-103-70/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Tidy up the ldscript output format specifier.Paul Mundt2009-05-104-10/+11
| | | | | | | | Tie this in to the Makefile directly, where we already know what we are running on. This tidies up the linker script a bit, and is prep work for unifying the arch/sh/boot/compressed linker scripts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move the unified linker script in place, kill off old _64 one.Paul Mundt2009-05-093-347/+179
| | | | | | | Just forcefully rename the _32 variant overtop, and kill off the now unused _64 version. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Integrate sh64 bits in vmlinux_32.lds.S.Paul Mundt2009-05-091-43/+70
| | | | | | | | This adds all of the requisite bits from vmlinux_64.lds.S in to the _32 variant, resulting in a unified and generic linker script that can be shared across both. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up SHmedia module ELF relocations.Paul Mundt2009-05-091-1/+1
| | | | | | | This fixes up the LSB setting for SHmedia branching in updated symbols when processing module relocations. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide an __sdivsi3_2 export for sh64.Paul Mundt2009-05-092-1/+7
| | | | | | | | | Newer code paths that are heavier in 64-bit math manage to get this generated by newer compilers, provide a definition and export accordingly. This is trivially wrapped around the existing __sdivsi3 code. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Rename opcode_t to insn_size_t.Paul Mundt2009-05-097-15/+15
| | | | | | This is now clashing with a driver, so just rename it. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Provide __read_{read,write}sl() definitions for sh64.Paul Mundt2009-05-091-1/+6
| | | | | | | These are presently only defined for sh32, use the plain unoptimized versions for sh64. Fixes up smsc911x build. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Cleanup irqflags size mismatch on SH-5 build.Paul Mundt2009-05-091-4/+4
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add UBC trap vector for SH2APeter Griffin2009-05-091-0/+5
| | | | | Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add ptrace support for NOMMU debuggingPeter Griffin2009-05-091-0/+8
| | | | | Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix UBC setup and registers for SH2AKieran Bingham2009-05-093-2/+42
| | | | | | Signed-off-by: Kieran Bingham <kieranbingham@gmail.com> Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add in some ptrace definitions from GDB.Kieran Bingham2009-05-091-0/+5
| | | | | | | | | Plugs in PT_TEXT_END_ADDR/PT_TEXT_ADDR/PT_DATA_ADDR/PT_TEXT_LEN definitions. Signed-off-by: Kieran Bingham <kieranbingham@gmail.com> Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Add clock id to sh-sci platform data on SH-Mobile CPUs.Paul Mundt2009-05-085-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 <lethal@linux-sh.org>
* sh: Kill off the GENERIC_CALIBRATE_DELAY ifndef.Paul Mundt2009-05-081-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 <lethal@linux-sh.org>
* sh: TMU platform data for SH-X3 proto CPU.Paul Mundt2009-05-081-2/+207
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: TMU platform data for SH7786.Paul Mundt2009-05-081-0/+393
| | | | | | | Wires up all 12 TMU channels, with TMU0 and 1 used as clockevent and clocksource respectively. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Always fixup unaligned userspace accesses on sh64.Paul Mundt2009-05-082-35/+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 <lethal@linux-sh.org>
* sh: Kill off extra cflags Kconfig entry.Paul Mundt2009-05-082-14/+0
| | | | | | | There is no real reason to use this anymore, as the build system generally knows what it is doing with regards to cflags mangling. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Always select RTC_LIB, not just for SUPERH32.Paul Mundt2009-05-081-1/+1
| | | | | | | | | The RTC_LIB helpers are used in arch/sh/kernel/time.c, which was previously only the case for the 32-bit variant. Now that this has become the common implementation, move the RTC_LIB select to reflect that. Fixes up the sh64 build. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Drop dead rules from arch/sh/kernel/Makefile_64.Paul Mundt2009-05-081-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 <lethal@linux-sh.org>
* sh: TMU platform data for sh7723Magnus Damm2009-05-081-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 <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: enable TMU clocksource on sh7722Magnus Damm2009-05-081-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 <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: clock framework update, fix count and kill off krefMagnus Damm2009-05-082-34/+39
| | | | | | | | | | 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 <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move out cayman-specific panic handler code to its own file.Paul Mundt2009-05-083-44/+50
| | | | | | | | This moves out the cayman-specific panic handler code to a better location, and leaves the generic implementation a simple stub that is still used under emulation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off unused sh64 debug code.Paul Mundt2009-05-082-49/+1
| | | | | | | None of the print_page() code and associated helpers are presently used by anything in-tree, so just kill it off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off sh64's hand-rolled syscall tracer.Paul Mundt2009-05-085-232/+2
| | | | | | | This is no longer necessary, as there are now sufficient generic alternatives available. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off the global rtc_lock with extreme prejudice.Paul Mundt2009-05-081-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 <lethal@linux-sh.org>
* sh: mach-sh03: Give the sh03 rtc its own spinlock.Paul Mundt2009-05-081-5/+5
| | | | | | | | This converts the sh03 rtc code off of using the global rtc_lock and on to its own spinlock. There are no other possible users of the rtc_lock, so serializing with it is not necessary. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off dead timer sysclass pm hooks.Paul Mundt2009-05-081-45/+0
| | | | | | | With the conversion to generic clockevents these are completely unused, so just kill it off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off dead handle_timer_tick() code.Paul Mundt2009-05-082-54/+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 <lethal@linux-sh.org>
* sh: Wire up GENERIC_CMOS_UPDATE for the platforms that need it.Paul Mundt2009-05-082-0/+18
| | | | | | | | | | 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 <lethal@linux-sh.org>
* sh: Rename arch/sh/kernel/time_32.c to arch/sh/kernel/time.c.Paul Mundt2009-05-083-2/+2
| | | | | | | This is now fully generic, and used both by _32 and _64 variants. Rename it accordingly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Finish the sh64 migration off of ARCH_USES_GETTIMEOFFSET.Paul Mundt2009-05-084-269/+120
| | | | | | | | 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 <lethal@linux-sh.org>
* sh: Move out rtc-sh registration from time_64.c to setup-sh5.cPaul Mundt2009-05-082-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 <lethal@linux-sh.org>