Skip to content

Commit

Permalink
Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh
Browse files Browse the repository at this point in the history
Pull SuperH fixes from Paul Mundt.

* tag 'sh-for-linus' of git://github.com/pmundt/linux-sh:
  sh: ecovec: add sample amixer settings
  sh: Fix up stack debugging build.
  sh: wire up finit_module syscall.
  sh: Fix FDPIC binary loader
  sh: clkfwk: bugfix: sh_clk_div_enable() care sh_clk_div_set_rate() if div6
  sh: define TASK_UNMAPPED_BASE as a page aligned constant
  • Loading branch information
torvalds committed Jan 16, 2013
2 parents a6d3bd2 + 035688d commit aa8b550
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 6 deletions.
10 changes: 10 additions & 0 deletions arch/sh/boards/mach-ecovec24/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@
* OFF-ON : MMC
*/

/*
* FSI - DA7210
*
* it needs amixer settings for playing
*
* amixer set 'HeadPhone' 80
* amixer set 'Out Mixer Left DAC Left' on
* amixer set 'Out Mixer Right DAC Right' on
*/

/* Heartbeat */
static unsigned char led_pos[] = { 0, 1, 2, 3 };

Expand Down
4 changes: 2 additions & 2 deletions arch/sh/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ extern void __kernel_vsyscall;
if (vdso_enabled) \
NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \
else \
NEW_AUX_ENT(AT_IGNORE, 0);
NEW_AUX_ENT(AT_IGNORE, 0)
#else
#define VSYSCALL_AUX_ENT
#define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0)
#endif /* CONFIG_VSYSCALL */

#ifdef CONFIG_SH_FPU
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/include/asm/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)

/*
* Bit of SR register
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/include/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pc; })
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)

/*
* Bit of SR register
Expand Down
3 changes: 2 additions & 1 deletion arch/sh/include/uapi/asm/unistd_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@
#define __NR_process_vm_readv 365
#define __NR_process_vm_writev 366
#define __NR_kcmp 367
#define __NR_finit_module 368

#define NR_syscalls 368
#define NR_syscalls 369

#endif /* __ASM_SH_UNISTD_32_H */
3 changes: 2 additions & 1 deletion arch/sh/include/uapi/asm/unistd_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@
#define __NR_process_vm_readv 376
#define __NR_process_vm_writev 377
#define __NR_kcmp 378
#define __NR_finit_module 379

#define NR_syscalls 379
#define NR_syscalls 380

#endif /* __ASM_SH_UNISTD_64_H */
1 change: 1 addition & 0 deletions arch/sh/kernel/syscalls_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -385,3 +385,4 @@ ENTRY(sys_call_table)
.long sys_process_vm_readv /* 365 */
.long sys_process_vm_writev
.long sys_kcmp
.long sys_finit_module
1 change: 1 addition & 0 deletions arch/sh/kernel/syscalls_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,4 @@ sys_call_table:
.long sys_process_vm_readv
.long sys_process_vm_writev
.long sys_kcmp
.long sys_finit_module
2 changes: 2 additions & 0 deletions arch/sh/lib/mcount.S
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ stack_panic:
.align 2
.L_init_thread_union:
.long init_thread_union
.L_ebss:
.long __bss_stop
.Lpanic:
.long panic
.Lpanic_s:
Expand Down
6 changes: 6 additions & 0 deletions drivers/sh/clk/cpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate)

static int sh_clk_div_enable(struct clk *clk)
{
if (clk->div_mask == SH_CLK_DIV6_MSK) {
int ret = sh_clk_div_set_rate(clk, clk->rate);
if (ret < 0)
return ret;
}

sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk);
return 0;
}
Expand Down

0 comments on commit aa8b550

Please sign in to comment.