sparc: Move SYS_SPARC_NWINDOWS to Kconfig
Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
This commit is contained in:
parent
be30dfbabb
commit
52789143a2
|
@ -12,6 +12,15 @@ config LEON3
|
||||||
bool
|
bool
|
||||||
select LEON
|
select LEON
|
||||||
|
|
||||||
|
config SYS_SPARC_NWINDOWS
|
||||||
|
int "Number of SPARC register windows"
|
||||||
|
range 2 32
|
||||||
|
default "8"
|
||||||
|
help
|
||||||
|
Specify the number of SPARC register windows implemented by this
|
||||||
|
processor. A SPARC implementation can have from 2 to 32 windows.
|
||||||
|
If unsure, choose 8.
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Board select"
|
prompt "Board select"
|
||||||
optional
|
optional
|
||||||
|
|
|
@ -20,6 +20,11 @@
|
||||||
#define CONFIG_AMBAPP_IOAREA AMBA_DEFAULT_IOAREA
|
#define CONFIG_AMBAPP_IOAREA AMBA_DEFAULT_IOAREA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Default number of SPARC register windows */
|
||||||
|
#ifndef CONFIG_SYS_SPARC_NWINDOWS
|
||||||
|
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Entry for traps which jump to a programmer-specified trap handler. */
|
/* Entry for traps which jump to a programmer-specified trap handler. */
|
||||||
#define TRAPR(H) \
|
#define TRAPR(H) \
|
||||||
wr %g0, 0xfe0, %psr; \
|
wr %g0, 0xfe0, %psr; \
|
||||||
|
|
|
@ -42,9 +42,6 @@
|
||||||
/* CPU / AMBA BUS configuration */
|
/* CPU / AMBA BUS configuration */
|
||||||
#define CONFIG_SYS_CLK_FREQ 20000000 /* 20MHz */
|
#define CONFIG_SYS_CLK_FREQ 20000000 /* 20MHz */
|
||||||
|
|
||||||
/* Number of SPARC register windows */
|
|
||||||
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial console configuration
|
* Serial console configuration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
/* CPU / AMBA BUS configuration */
|
/* CPU / AMBA BUS configuration */
|
||||||
#define CONFIG_SYS_CLK_FREQ 96000000 /* 96MHz */
|
#define CONFIG_SYS_CLK_FREQ 96000000 /* 96MHz */
|
||||||
|
|
||||||
/* Number of SPARC register windows */
|
|
||||||
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
|
||||||
|
|
||||||
/* Define this is the GR-2S60-MEZZ mezzanine is available and you
|
/* Define this is the GR-2S60-MEZZ mezzanine is available and you
|
||||||
* want to use the USB and GRETH functionality of the board
|
* want to use the USB and GRETH functionality of the board
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
/* CPU / AMBA BUS configuration */
|
/* CPU / AMBA BUS configuration */
|
||||||
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
||||||
|
|
||||||
/* Number of SPARC register windows */
|
|
||||||
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial console configuration
|
* Serial console configuration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,9 +34,6 @@
|
||||||
/* CPU / AMBA BUS configuration */
|
/* CPU / AMBA BUS configuration */
|
||||||
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
||||||
|
|
||||||
/* Number of SPARC register windows */
|
|
||||||
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial console configuration
|
* Serial console configuration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,9 +29,6 @@
|
||||||
/* CPU / AMBA BUS configuration */
|
/* CPU / AMBA BUS configuration */
|
||||||
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
#define CONFIG_SYS_CLK_FREQ 40000000 /* 40MHz */
|
||||||
|
|
||||||
/* Number of SPARC register windows */
|
|
||||||
#define CONFIG_SYS_SPARC_NWINDOWS 8
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial console configuration
|
* Serial console configuration
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue