sparc,leon: Introduce the sparc-leon CPU type.
Add sparc_leon enum, M_LEON|M_LEON3_SOC machine. Add compilation of leon.c in mm and kernel if CONFIG_SPARC_LEON is defined. Add sparc_leon dependent initialization to switch statements + head.S. Signed-off-by: Konrad Eisele <konrad@gaisler.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
97fb58fa9b
commit
0fd7ef1fe0
@@ -235,6 +235,8 @@ void __init setup_arch(char **cmdline_p)
|
||||
sparc_cpu_model = sun4e;
|
||||
if (!strcmp(&cputypval,"sun4u"))
|
||||
sparc_cpu_model = sun4u;
|
||||
if (!strncmp(&cputypval, "leon" , 4))
|
||||
sparc_cpu_model = sparc_leon;
|
||||
|
||||
printk("ARCH: ");
|
||||
switch(sparc_cpu_model) {
|
||||
@@ -256,6 +258,9 @@ void __init setup_arch(char **cmdline_p)
|
||||
case sun4u:
|
||||
printk("SUN4U\n");
|
||||
break;
|
||||
case sparc_leon:
|
||||
printk("LEON\n");
|
||||
break;
|
||||
default:
|
||||
printk("UNKNOWN!\n");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user