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
@@ -34,6 +34,7 @@
|
||||
#include <asm/pgalloc.h> /* bug in asm-generic/tlb.h: check_pgt_cache */
|
||||
#include <asm/tlb.h>
|
||||
#include <asm/prom.h>
|
||||
#include <asm/leon.h>
|
||||
|
||||
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
|
||||
|
||||
@@ -326,6 +327,9 @@ void __init paging_init(void)
|
||||
sparc_unmapped_base = 0xe0000000;
|
||||
BTFIXUPSET_SETHI(sparc_unmapped_base, 0xe0000000);
|
||||
break;
|
||||
case sparc_leon:
|
||||
leon_init();
|
||||
/* fall through */
|
||||
case sun4m:
|
||||
case sun4d:
|
||||
srmmu_paging_init();
|
||||
|
Reference in New Issue
Block a user