We had quite a bit of whitespace damage, clean most of it up..
Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
···2626 event.27272828 There are three 32-bit ESRs located at 0xa05f8900 - 0xa05f6908. Event2929- types can be found in include/asm-sh/dc_sysasic.h. There are three groups3030- of EMRs that parallel the ESRs. Each EMR group corresponds to an IRQ, so3131- 0xa05f6910 - 0xa05f6918 triggers IRQ 13, 0xa05f6920 - 0xa05f6928 triggers3232- IRQ 11, and 0xa05f6930 - 0xa05f6938 triggers IRQ 9.2929+ types can be found in include/asm-sh/dreamcast/sysasic.h. There are three3030+ groups of EMRs that parallel the ESRs. Each EMR group corresponds to an3131+ IRQ, so 0xa05f6910 - 0xa05f6918 triggers IRQ 13, 0xa05f6920 - 0xa05f69283232+ triggers IRQ 11, and 0xa05f6930 - 0xa05f6938 triggers IRQ 9.33333434 In the kernel, these events are mapped to virtual IRQs so that drivers can3535 respond to them as they would a normal interrupt. In order to keep this
+9-9
arch/sh/boards/dreamcast/rtc.c
···11-/* arch/sh/kernel/rtc-aica.c11+/*22+ * arch/sh/boards/dreamcast/rtc.c23 *34 * Dreamcast AICA RTC routines.45 *···1110 */12111312#include <linux/time.h>1414-1313+#include <asm/rtc.h>1514#include <asm/io.h>16151717-extern void (*rtc_get_time)(struct timespec *);1818-extern int (*rtc_set_time)(const time_t);1919-2016/* The AICA RTC has an Epoch of 1/1/1950, so we must subtract 20 years (in2121- seconds to get the standard Unix Epoch when getting the time, and add 202222- years when setting the time. */1717+ seconds) to get the standard Unix Epoch when getting the time, and add1818+ 20 years when setting the time. */2319#define TWENTY_YEARS ((20 * 365LU + 5) * 86400)24202521/* The AICA RTC is represented by a 32-bit seconds counter stored in 2 16-bit···3032 *3133 * Grabs the current RTC seconds counter and adjusts it to the Unix Epoch.3234 */3333-void aica_rtc_gettimeofday(struct timespec *ts) {3535+void aica_rtc_gettimeofday(struct timespec *ts)3636+{3437 unsigned long val1, val2;35383639 do {···5455 *5556 * Adjusts the given @tv to the AICA Epoch and sets the RTC seconds counter.5657 */5757-int aica_rtc_settimeofday(const time_t secs) {5858+int aica_rtc_settimeofday(const time_t secs)5959+{5860 unsigned long val1, val2;5961 unsigned long adj = secs + TWENTY_YEARS;6062
···11#22# Makefile for the EDOSK7705 specific parts of the kernel33#44-# Note! Dependencies are done automagically by 'make dep', which also55-# removes any old dependencies. DON'T put your own dependencies here66-# unless it's something special (ie not a .c file).77-#8495obj-y := setup.o io.o106
-4
arch/sh/boards/renesas/hs7751rvoip/Makefile
···11#22# Makefile for the HS7751RVoIP specific parts of the kernel33#44-# Note! Dependencies are done automagically by 'make dep', which also55-# removes any old dependencies. DON'T put your own dependencies here66-# unless it's something special (ie not a .c file).77-#8495obj-y := mach.o setup.o io.o irq.o led.o106
···11#22# Makefile for the RTS7751R2D specific parts of the kernel33#44-# Note! Dependencies are done automagically by 'make dep', which also55-# removes any old dependencies. DON'T put your own dependencies here66-# unless it's something special (ie not a .c file).77-#8495obj-y := mach.o setup.o io.o irq.o led.o106
-2
arch/sh/boards/renesas/rts7751r2d/led.c
···1212#include <asm/io.h>1313#include <asm/rts7751r2d/rts7751r2d.h>14141515-extern unsigned int debug_counter;1616-1715#ifdef CONFIG_HEARTBEAT18161917#include <linux/sched.h>
···1818#include <asm/dma.h>1919#include <asm/io.h>20202121-static unsigned int xfer_complete = 0;2222-static int count = 0;2121+static unsigned int xfer_complete;2222+static int count;23232424static irqreturn_t pvr2_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs)2525{···107107MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>");108108MODULE_DESCRIPTION("NEC PowerVR 2 DMA driver");109109MODULE_LICENSE("GPL");110110-
+1-1
arch/sh/kernel/cpu/clock.c
···225225{226226 int i, ret = 0;227227228228- BUG_ON(unlikely(!master_clk.rate));228228+ BUG_ON(!master_clk.rate);229229230230 for (i = 0; i < ARRAY_SIZE(onchip_clocks); i++) {231231 struct clk *clk = onchip_clocks[i];
···1818#include <asm/cpu/mmu_context.h>1919#include <asm/unistd.h>20202121-#if !defined(CONFIG_NFSD) && !defined(CONFIG_NFSD_MODULE)2222-#define sys_nfsservctl sys_ni_syscall2323-#endif2424-2525-#if !defined(CONFIG_MMU)2626-#define sys_madvise sys_ni_syscall2727-#define sys_readahead sys_ni_syscall2828-#define sys_mprotect sys_ni_syscall2929-#define sys_msync sys_ni_syscall3030-#define sys_mlock sys_ni_syscall3131-#define sys_munlock sys_ni_syscall3232-#define sys_mlockall sys_ni_syscall3333-#define sys_munlockall sys_ni_syscall3434-#define sys_mremap sys_ni_syscall3535-#define sys_mincore sys_ni_syscall3636-#define sys_remap_file_pages sys_ni_syscall3737-#endif3838-3921! NOTE:4022! GNU as (as of 2.9.1) changes bf/s into bt/s and bra, when the address4123! to be jumped is too far, but it causes illegal slot exception.
···2525 * addresses. The point is to have a constant address at2626 * compile time, but to set the physical address only2727 * in the boot process. We allocate these special addresses2828- * from the end of virtual memory (0xfffff000) backwards.2828+ * from the end of P3 backwards.2929 * Also this lets us do fail-safe vmalloc(), we3030 * can guarantee that these special addresses and3131 * vmalloc()-ed addresses never overlap.
-3
include/asm-sh/watchdog.h
···62626363/**6464 * sh_wdt_read_cnt - Read from Counter6565- *6665 * Reads back the WTCNT value.6766 */6867static inline __u8 sh_wdt_read_cnt(void)···71727273/**7374 * sh_wdt_write_cnt - Write to Counter7474- *7575 * @val: Value to write7676 *7777 * Writes the given value @val to the lower byte of the timer counter.···93959496/**9597 * sh_wdt_write_csr - Write to Control/Status Register9696- *9798 * @val: Value to write9899 *99100 * Writes the given value @val to the lower byte of the control/status