diff options
| -rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 10 | ||||
| -rw-r--r-- | arch/sh/include/asm/elf.h | 4 | ||||
| -rw-r--r-- | arch/sh/include/asm/processor_32.h | 2 | ||||
| -rw-r--r-- | arch/sh/include/asm/processor_64.h | 2 | ||||
| -rw-r--r-- | arch/sh/include/uapi/asm/unistd_32.h | 3 | ||||
| -rw-r--r-- | arch/sh/include/uapi/asm/unistd_64.h | 3 | ||||
| -rw-r--r-- | arch/sh/kernel/syscalls_32.S | 1 | ||||
| -rw-r--r-- | arch/sh/kernel/syscalls_64.S | 1 | ||||
| -rw-r--r-- | arch/sh/lib/mcount.S | 2 | ||||
| -rw-r--r-- | drivers/sh/clk/cpg.c | 6 |
10 files changed, 28 insertions, 6 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 3fede4556c91..a0fa5791cd44 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
| @@ -70,6 +70,16 @@ | |||
| 70 | * OFF-ON : MMC | 70 | * OFF-ON : MMC |
| 71 | */ | 71 | */ |
| 72 | 72 | ||
| 73 | /* | ||
| 74 | * FSI - DA7210 | ||
| 75 | * | ||
| 76 | * it needs amixer settings for playing | ||
| 77 | * | ||
| 78 | * amixer set 'HeadPhone' 80 | ||
| 79 | * amixer set 'Out Mixer Left DAC Left' on | ||
| 80 | * amixer set 'Out Mixer Right DAC Right' on | ||
| 81 | */ | ||
| 82 | |||
| 73 | /* Heartbeat */ | 83 | /* Heartbeat */ |
| 74 | static unsigned char led_pos[] = { 0, 1, 2, 3 }; | 84 | static unsigned char led_pos[] = { 0, 1, 2, 3 }; |
| 75 | 85 | ||
diff --git a/arch/sh/include/asm/elf.h b/arch/sh/include/asm/elf.h index 37924afa8d8a..bf9f44f17c29 100644 --- a/arch/sh/include/asm/elf.h +++ b/arch/sh/include/asm/elf.h | |||
| @@ -203,9 +203,9 @@ extern void __kernel_vsyscall; | |||
| 203 | if (vdso_enabled) \ | 203 | if (vdso_enabled) \ |
| 204 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ | 204 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ |
| 205 | else \ | 205 | else \ |
| 206 | NEW_AUX_ENT(AT_IGNORE, 0); | 206 | NEW_AUX_ENT(AT_IGNORE, 0) |
| 207 | #else | 207 | #else |
| 208 | #define VSYSCALL_AUX_ENT | 208 | #define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0) |
| 209 | #endif /* CONFIG_VSYSCALL */ | 209 | #endif /* CONFIG_VSYSCALL */ |
| 210 | 210 | ||
| 211 | #ifdef CONFIG_SH_FPU | 211 | #ifdef CONFIG_SH_FPU |
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index b1320d55ca30..e699a12cdcca 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | /* This decides where the kernel will search for a free chunk of vm | 39 | /* This decides where the kernel will search for a free chunk of vm |
| 40 | * space during mmap's. | 40 | * space during mmap's. |
| 41 | */ | 41 | */ |
| 42 | #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) | 42 | #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) |
| 43 | 43 | ||
| 44 | /* | 44 | /* |
| 45 | * Bit of SR register | 45 | * Bit of SR register |
diff --git a/arch/sh/include/asm/processor_64.h b/arch/sh/include/asm/processor_64.h index 1ee8946f0952..1cc7d3197143 100644 --- a/arch/sh/include/asm/processor_64.h +++ b/arch/sh/include/asm/processor_64.h | |||
| @@ -47,7 +47,7 @@ pc; }) | |||
| 47 | /* This decides where the kernel will search for a free chunk of vm | 47 | /* This decides where the kernel will search for a free chunk of vm |
| 48 | * space during mmap's. | 48 | * space during mmap's. |
| 49 | */ | 49 | */ |
| 50 | #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) | 50 | #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) |
| 51 | 51 | ||
| 52 | /* | 52 | /* |
| 53 | * Bit of SR register | 53 | * Bit of SR register |
diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h index 9e465f246dc1..d13a1d623736 100644 --- a/arch/sh/include/uapi/asm/unistd_32.h +++ b/arch/sh/include/uapi/asm/unistd_32.h | |||
| @@ -379,7 +379,8 @@ | |||
| 379 | #define __NR_process_vm_readv 365 | 379 | #define __NR_process_vm_readv 365 |
| 380 | #define __NR_process_vm_writev 366 | 380 | #define __NR_process_vm_writev 366 |
| 381 | #define __NR_kcmp 367 | 381 | #define __NR_kcmp 367 |
| 382 | #define __NR_finit_module 368 | ||
| 382 | 383 | ||
| 383 | #define NR_syscalls 368 | 384 | #define NR_syscalls 369 |
| 384 | 385 | ||
| 385 | #endif /* __ASM_SH_UNISTD_32_H */ | 386 | #endif /* __ASM_SH_UNISTD_32_H */ |
diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h index 8e3a2edd284e..e6820c86e8c7 100644 --- a/arch/sh/include/uapi/asm/unistd_64.h +++ b/arch/sh/include/uapi/asm/unistd_64.h | |||
| @@ -399,7 +399,8 @@ | |||
| 399 | #define __NR_process_vm_readv 376 | 399 | #define __NR_process_vm_readv 376 |
| 400 | #define __NR_process_vm_writev 377 | 400 | #define __NR_process_vm_writev 377 |
| 401 | #define __NR_kcmp 378 | 401 | #define __NR_kcmp 378 |
| 402 | #define __NR_finit_module 379 | ||
| 402 | 403 | ||
| 403 | #define NR_syscalls 379 | 404 | #define NR_syscalls 380 |
| 404 | 405 | ||
| 405 | #endif /* __ASM_SH_UNISTD_64_H */ | 406 | #endif /* __ASM_SH_UNISTD_64_H */ |
diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S index fe97ae5e56f1..734234be2f01 100644 --- a/arch/sh/kernel/syscalls_32.S +++ b/arch/sh/kernel/syscalls_32.S | |||
| @@ -385,3 +385,4 @@ ENTRY(sys_call_table) | |||
| 385 | .long sys_process_vm_readv /* 365 */ | 385 | .long sys_process_vm_readv /* 365 */ |
| 386 | .long sys_process_vm_writev | 386 | .long sys_process_vm_writev |
| 387 | .long sys_kcmp | 387 | .long sys_kcmp |
| 388 | .long sys_finit_module | ||
diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S index 5c7b1c67bdc1..579fcb9a896b 100644 --- a/arch/sh/kernel/syscalls_64.S +++ b/arch/sh/kernel/syscalls_64.S | |||
| @@ -405,3 +405,4 @@ sys_call_table: | |||
| 405 | .long sys_process_vm_readv | 405 | .long sys_process_vm_readv |
| 406 | .long sys_process_vm_writev | 406 | .long sys_process_vm_writev |
| 407 | .long sys_kcmp | 407 | .long sys_kcmp |
| 408 | .long sys_finit_module | ||
diff --git a/arch/sh/lib/mcount.S b/arch/sh/lib/mcount.S index 60164e65d665..52aa2011d753 100644 --- a/arch/sh/lib/mcount.S +++ b/arch/sh/lib/mcount.S | |||
| @@ -294,6 +294,8 @@ stack_panic: | |||
| 294 | .align 2 | 294 | .align 2 |
| 295 | .L_init_thread_union: | 295 | .L_init_thread_union: |
| 296 | .long init_thread_union | 296 | .long init_thread_union |
| 297 | .L_ebss: | ||
| 298 | .long __bss_stop | ||
| 297 | .Lpanic: | 299 | .Lpanic: |
| 298 | .long panic | 300 | .long panic |
| 299 | .Lpanic_s: | 301 | .Lpanic_s: |
diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index 5aedcdf4ac5c..1ebe67cd1833 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c | |||
| @@ -126,6 +126,12 @@ static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) | |||
| 126 | 126 | ||
| 127 | static int sh_clk_div_enable(struct clk *clk) | 127 | static int sh_clk_div_enable(struct clk *clk) |
| 128 | { | 128 | { |
| 129 | if (clk->div_mask == SH_CLK_DIV6_MSK) { | ||
| 130 | int ret = sh_clk_div_set_rate(clk, clk->rate); | ||
| 131 | if (ret < 0) | ||
| 132 | return ret; | ||
| 133 | } | ||
| 134 | |||
| 129 | sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk); | 135 | sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk); |
| 130 | return 0; | 136 | return 0; |
| 131 | } | 137 | } |
