Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146844
b: refs/heads/master
c: eb9b9b5
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jun 1, 2009
1 parent 615773a commit d066bae
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5582b0648de6248c67c0b47fa170e5fb15ab4bf1
refs/heads/master: eb9b9b56eed280e65a9e194aaeb50a5a75111859
1 change: 1 addition & 0 deletions trunk/arch/sh/include/asm/machvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct sh_machine_vector {
void (*mv_ioport_unmap)(void __iomem *);

int (*mv_clk_init)(void);
int (*mv_mode_pins)(void);
};

extern struct sh_machine_vector sh_mv;
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/sh/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ extern struct pt_regs fake_swapper_regs;
const char *get_cpu_subtype(struct sh_cpuinfo *c);
extern const struct seq_operations cpuinfo_op;

/* processor boot mode configuration */
int generic_mode_pins(void);
int test_mode_pin(int pin);

#ifdef CONFIG_VSYSCALL
int vsyscall_init(void);
#else
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/kernel/machvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void __init sh_mv_setup(void)
mv_set(ioport_map);
mv_set(ioport_unmap);
mv_set(irq_demux);
mv_set(mode_pins);

if (!sh_mv.mv_nr_irqs)
sh_mv.mv_nr_irqs = NR_IRQS;
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,18 @@ void __init setup_arch(char **cmdline_p)
#endif
}

/* processor boot mode configuration */
int generic_mode_pins(void)
{
pr_warning("generic_mode_pins(): missing mode pin configuration\n");
return 0;
}

int test_mode_pin(int pin)
{
return sh_mv.mv_mode_pins() & (1 << pin);
}

static const char *cpu_name[] = {
[CPU_SH7201] = "SH7201",
[CPU_SH7203] = "SH7203", [CPU_SH7263] = "SH7263",
Expand Down

0 comments on commit d066bae

Please sign in to comment.