sh: remove support for sh7300 and solution engine 7300
This patch removes old dead code: - kill off sh7300 cpu support - get rid of broken solution engine 7300 board support Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Supported system:
|
||||
* On-chip supporting modules (TMU, RTC, etc.).
|
||||
* On-chip supporting modules for SH7709/SH7709A/SH7729/SH7300.
|
||||
* On-chip supporting modules for SH7709/SH7709A/SH7729.
|
||||
* Hitachi SolutionEngine external I/O:
|
||||
* MS7709SE01, MS7709ASE01, and MS7750SE01
|
||||
*
|
||||
|
@@ -10,16 +10,14 @@ obj-$(CONFIG_CPU_SUBTYPE_SH7706) += setup-sh7709.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7707) += setup-sh7709.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7708) += setup-sh7708.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7709) += setup-sh7709.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7300) += setup-sh7300.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7710) += setup-sh7710.o
|
||||
obj-$(CONFIG_CPU_SUBTYPE_SH7712) += setup-sh7710.o
|
||||
|
||||
# Primary on-chip clocks (common)
|
||||
clock-$(CONFIG_CPU_SH3) := clock-sh3.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7300) := clock-sh7300.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7705) := clock-sh7705.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7706) := clock-sh7706.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7709) := clock-sh7709.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7710) := clock-sh7300.o
|
||||
clock-$(CONFIG_CPU_SUBTYPE_SH7710) := clock-sh7710.o
|
||||
|
||||
obj-y += $(clock-y)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* arch/sh/kernel/cpu/sh3/clock-sh7300.c
|
||||
* arch/sh/kernel/cpu/sh3/clock-sh7710.c
|
||||
*
|
||||
* SH7300 support for the clock framework
|
||||
* SH7710 support for the clock framework
|
||||
*
|
||||
* Copyright (C) 2005 Paul Mundt
|
||||
*
|
||||
@@ -29,7 +29,7 @@ static void master_clk_init(struct clk *clk)
|
||||
clk->rate *= md_table[ctrl_inw(FRQCR) & 0x0007];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7300_master_clk_ops = {
|
||||
static struct clk_ops sh7710_master_clk_ops = {
|
||||
.init = master_clk_init,
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ static void module_clk_recalc(struct clk *clk)
|
||||
clk->rate = clk->parent->rate / md_table[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7300_module_clk_ops = {
|
||||
static struct clk_ops sh7710_module_clk_ops = {
|
||||
.recalc = module_clk_recalc,
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ static void bus_clk_recalc(struct clk *clk)
|
||||
clk->rate = clk->parent->rate / md_table[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7300_bus_clk_ops = {
|
||||
static struct clk_ops sh7710_bus_clk_ops = {
|
||||
.recalc = bus_clk_recalc,
|
||||
};
|
||||
|
||||
@@ -59,20 +59,20 @@ static void cpu_clk_recalc(struct clk *clk)
|
||||
clk->rate = clk->parent->rate / md_table[idx];
|
||||
}
|
||||
|
||||
static struct clk_ops sh7300_cpu_clk_ops = {
|
||||
static struct clk_ops sh7710_cpu_clk_ops = {
|
||||
.recalc = cpu_clk_recalc,
|
||||
};
|
||||
|
||||
static struct clk_ops *sh7300_clk_ops[] = {
|
||||
&sh7300_master_clk_ops,
|
||||
&sh7300_module_clk_ops,
|
||||
&sh7300_bus_clk_ops,
|
||||
&sh7300_cpu_clk_ops,
|
||||
static struct clk_ops *sh7710_clk_ops[] = {
|
||||
&sh7710_master_clk_ops,
|
||||
&sh7710_module_clk_ops,
|
||||
&sh7710_bus_clk_ops,
|
||||
&sh7710_cpu_clk_ops,
|
||||
};
|
||||
|
||||
void __init arch_init_clk_ops(struct clk_ops **ops, int idx)
|
||||
{
|
||||
if (idx < ARRAY_SIZE(sh7300_clk_ops))
|
||||
*ops = sh7300_clk_ops[idx];
|
||||
if (idx < ARRAY_SIZE(sh7710_clk_ops))
|
||||
*ops = sh7710_clk_ops[idx];
|
||||
}
|
||||
|
@@ -1,43 +0,0 @@
|
||||
/*
|
||||
* SH7300 Setup
|
||||
*
|
||||
* Copyright (C) 2006 Paul Mundt
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU General Public
|
||||
* License. See the file "COPYING" in the main directory of this archive
|
||||
* for more details.
|
||||
*/
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/serial.h>
|
||||
#include <asm/sci.h>
|
||||
|
||||
static struct plat_sci_port sci_platform_data[] = {
|
||||
{
|
||||
.mapbase = 0xa4430000,
|
||||
.flags = UPF_BOOT_AUTOCONF,
|
||||
.type = PORT_SCI,
|
||||
.irqs = { 80, 80, 80, 80 },
|
||||
}, {
|
||||
.flags = 0,
|
||||
}
|
||||
};
|
||||
|
||||
static struct platform_device sci_device = {
|
||||
.name = "sh-sci",
|
||||
.id = -1,
|
||||
.dev = {
|
||||
.platform_data = sci_platform_data,
|
||||
},
|
||||
};
|
||||
|
||||
static struct platform_device *sh7300_devices[] __initdata = {
|
||||
&sci_device,
|
||||
};
|
||||
|
||||
static int __init sh7300_devices_setup(void)
|
||||
{
|
||||
return platform_add_devices(sh7300_devices,
|
||||
ARRAY_SIZE(sh7300_devices));
|
||||
}
|
||||
__initcall(sh7300_devices_setup);
|
Reference in New Issue
Block a user