Commit 6e54e950 authored by David S. Miller's avatar David S. Miller

sparc32: Remove sun4 and sun4c from enum sparc_cpu.

All the remaining references are trivially removed since we've
just eliminated the final reference to sparc_cpu_model from
assembler code in commit b7d96ce1
("sparc32: Remove sparc_cpu_model read from floppy interrupt handler.")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b7d96ce1
...@@ -5,15 +5,13 @@ ...@@ -5,15 +5,13 @@
* Sparc (general) CPU types * Sparc (general) CPU types
*/ */
enum sparc_cpu { enum sparc_cpu {
sun4 = 0x00, sun4m = 0x00,
sun4c = 0x01, sun4d = 0x01,
sun4m = 0x02, sun4e = 0x02,
sun4d = 0x03, sun4u = 0x03, /* V8 ploos ploos */
sun4e = 0x04, sun_unknown = 0x04,
sun4u = 0x05, /* V8 ploos ploos */ ap1000 = 0x05, /* almost a sun4m */
sun_unknown = 0x06, sparc_leon = 0x06, /* Leon SoC */
ap1000 = 0x07, /* almost a sun4m */
sparc_leon = 0x08, /* Leon SoC */
}; };
#ifdef CONFIG_SPARC32 #ifdef CONFIG_SPARC32
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#define __ARCH_FORCE_SHMLBA 1 #define __ARCH_FORCE_SHMLBA 1
extern int vac_cache_size; extern int vac_cache_size;
#define SHMLBA (vac_cache_size ? vac_cache_size : \ #define SHMLBA (vac_cache_size ? vac_cache_size : PAGE_SIZE)
(sparc_cpu_model == sun4c ? (64 * 1024) : \
(sparc_cpu_model == sun4 ? (128 * 1024) : PAGE_SIZE)))
#endif /* _ASMSPARC_SHMPARAM_H */ #endif /* _ASMSPARC_SHMPARAM_H */
...@@ -32,7 +32,6 @@ void __init auxio_probe(void) ...@@ -32,7 +32,6 @@ void __init auxio_probe(void)
switch (sparc_cpu_model) { switch (sparc_cpu_model) {
case sparc_leon: case sparc_leon:
case sun4d: case sun4d:
case sun4:
return; return;
default: default:
break; break;
...@@ -65,9 +64,8 @@ void __init auxio_probe(void) ...@@ -65,9 +64,8 @@ void __init auxio_probe(void)
r.start = auxregs[0].phys_addr; r.start = auxregs[0].phys_addr;
r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1;
auxio_register = of_ioremap(&r, 0, auxregs[0].reg_size, "auxio"); auxio_register = of_ioremap(&r, 0, auxregs[0].reg_size, "auxio");
/* Fix the address on sun4m and sun4c. */ /* Fix the address on sun4m. */
if((((unsigned long) auxregs[0].phys_addr) & 3) == 3 || if ((((unsigned long) auxregs[0].phys_addr) & 3) == 3)
sparc_cpu_model == sun4c)
auxio_register += (3 - ((unsigned long)auxio_register & 3)); auxio_register += (3 - ((unsigned long)auxio_register & 3));
set_auxio(AUXIO_LED, 0); set_auxio(AUXIO_LED, 0);
...@@ -86,12 +84,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off) ...@@ -86,12 +84,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off)
unsigned char regval; unsigned char regval;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&auxio_lock, flags); spin_lock_irqsave(&auxio_lock, flags);
switch(sparc_cpu_model) { switch (sparc_cpu_model) {
case sun4c:
regval = sbus_readb(auxio_register);
sbus_writeb(((regval | bits_on) & ~bits_off) | AUXIO_ORMEIN,
auxio_register);
break;
case sun4m: case sun4m:
if(!auxio_register) if(!auxio_register)
break; /* VME chassis sun4m, no auxio. */ break; /* VME chassis sun4m, no auxio. */
......
...@@ -217,10 +217,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -217,10 +217,6 @@ void __init setup_arch(char **cmdline_p)
/* Set sparc_cpu_model */ /* Set sparc_cpu_model */
sparc_cpu_model = sun_unknown; sparc_cpu_model = sun_unknown;
if (!strcmp(&cputypval[0], "sun4 "))
sparc_cpu_model = sun4;
if (!strcmp(&cputypval[0], "sun4c"))
sparc_cpu_model = sun4c;
if (!strcmp(&cputypval[0], "sun4m")) if (!strcmp(&cputypval[0], "sun4m"))
sparc_cpu_model = sun4m; sparc_cpu_model = sun4m;
if (!strcmp(&cputypval[0], "sun4s")) if (!strcmp(&cputypval[0], "sun4s"))
...@@ -236,12 +232,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -236,12 +232,6 @@ void __init setup_arch(char **cmdline_p)
printk("ARCH: "); printk("ARCH: ");
switch(sparc_cpu_model) { switch(sparc_cpu_model) {
case sun4:
printk("SUN4\n");
break;
case sun4c:
printk("SUN4C\n");
break;
case sun4m: case sun4m:
printk("SUN4M\n"); printk("SUN4M\n");
break; break;
......
...@@ -85,14 +85,6 @@ void __init smp_cpus_done(unsigned int max_cpus) ...@@ -85,14 +85,6 @@ void __init smp_cpus_done(unsigned int max_cpus)
(bogosum/(5000/HZ))%100); (bogosum/(5000/HZ))%100);
switch(sparc_cpu_model) { switch(sparc_cpu_model) {
case sun4:
printk("SUN4\n");
BUG();
break;
case sun4c:
printk("SUN4C\n");
BUG();
break;
case sun4m: case sun4m:
smp4m_smp_done(); smp4m_smp_done();
break; break;
...@@ -326,14 +318,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -326,14 +318,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
smp_store_cpu_info(boot_cpu_id); smp_store_cpu_info(boot_cpu_id);
switch(sparc_cpu_model) { switch(sparc_cpu_model) {
case sun4:
printk("SUN4\n");
BUG();
break;
case sun4c:
printk("SUN4C\n");
BUG();
break;
case sun4m: case sun4m:
smp4m_boot_cpus(); smp4m_boot_cpus();
break; break;
...@@ -399,14 +383,6 @@ int __cpuinit __cpu_up(unsigned int cpu) ...@@ -399,14 +383,6 @@ int __cpuinit __cpu_up(unsigned int cpu)
int ret=0; int ret=0;
switch(sparc_cpu_model) { switch(sparc_cpu_model) {
case sun4:
printk("SUN4\n");
BUG();
break;
case sun4c:
printk("SUN4C\n");
BUG();
break;
case sun4m: case sun4m:
ret = smp4m_boot_one_cpu(cpu); ret = smp4m_boot_one_cpu(cpu);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment