sh: migrate SH_CLK_MD to mode pin API.
This kills off the hardcoded SH_CLK_MD introduced by the SH-2 boards and converts over to the mode pin API. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
此提交包含在:
@@ -79,6 +79,11 @@ static int __init se7206_devices_setup(void)
|
||||
}
|
||||
__initcall(se7206_devices_setup);
|
||||
|
||||
static int se7206_mode_pins(void)
|
||||
{
|
||||
return MODE_PIN1 | MODE_PIN2;
|
||||
}
|
||||
|
||||
/*
|
||||
* The Machine Vector
|
||||
*/
|
||||
@@ -87,4 +92,5 @@ static struct sh_machine_vector mv_se __initmv = {
|
||||
.mv_name = "SolutionEngine",
|
||||
.mv_nr_irqs = 256,
|
||||
.mv_init_irq = init_se7206_IRQ,
|
||||
.mv_mode_pins = se7206_mode_pins,
|
||||
};
|
||||
|
@@ -11,6 +11,11 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/machvec.h>
|
||||
|
||||
static int se7619_mode_pins(void)
|
||||
{
|
||||
return MODE_PIN2 | MODE_PIN0;
|
||||
}
|
||||
|
||||
/*
|
||||
* The Machine Vector
|
||||
*/
|
||||
@@ -18,4 +23,5 @@
|
||||
static struct sh_machine_vector mv_se __initmv = {
|
||||
.mv_name = "SolutionEngine",
|
||||
.mv_nr_irqs = 108,
|
||||
.mv_mode_pins = se7619_mode_pins,
|
||||
};
|
||||
|
新增問題並參考
封鎖使用者