Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b57ee9e authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

[SPARC]: introduce a SPARC Kconfig symbol



Introduce a Kconfig symbol SPARC that is defined on both the sparc and
sparc64 architectures.

This symbol makes some dependencies more readable.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 14904398
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -55,6 +55,10 @@ config NR_CPUS
	depends on SMP
	depends on SMP
	default "32"
	default "32"


config SPARC
	bool
	default y

# Identify this as a Sparc32 build
# Identify this as a Sparc32 build
config SPARC32
config SPARC32
	bool
	bool
+4 −0
Original line number Original line Diff line number Diff line
@@ -5,6 +5,10 @@


mainmenu "Linux/UltraSPARC Kernel Configuration"
mainmenu "Linux/UltraSPARC Kernel Configuration"


config SPARC
	bool
	default y

config SPARC64
config SPARC64
	bool
	bool
	default y
	default y
+2 −2
Original line number Original line Diff line number Diff line
@@ -687,7 +687,7 @@ config NVRAM


config RTC
config RTC
	tristate "Enhanced Real Time Clock Support"
	tristate "Enhanced Real Time Clock Support"
	depends on !PPC32 && !PARISC && !IA64 && !M68K && (!(SPARC32 || SPARC64) || PCI)
	depends on !PPC32 && !PARISC && !IA64 && !M68K && (!SPARC || PCI)
	---help---
	---help---
	  If you say Y here and create a character special file /dev/rtc with
	  If you say Y here and create a character special file /dev/rtc with
	  major number 10 and minor number 135 using mknod ("man mknod"), you
	  major number 10 and minor number 135 using mknod ("man mknod"), you
@@ -735,7 +735,7 @@ config SGI_IP27_RTC


config GEN_RTC
config GEN_RTC
	tristate "Generic /dev/rtc emulation"
	tristate "Generic /dev/rtc emulation"
	depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC32 && !SPARC64
	depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC
	---help---
	---help---
	  If you say Y here and create a character special file /dev/rtc with
	  If you say Y here and create a character special file /dev/rtc with
	  major number 10 and minor number 135 using mknod ("man mknod"), you
	  major number 10 and minor number 135 using mknod ("man mknod"), you
+5 −5
Original line number Original line Diff line number Diff line
@@ -930,8 +930,8 @@ static void kbd_refresh_leds(struct input_handle *handle)
}
}


#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\
    defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC32) ||\
    defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) ||\
    defined(CONFIG_SPARC64) || defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\
    defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\
    (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC))
    (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC))


#define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\
#define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\
@@ -958,7 +958,7 @@ static unsigned short x86_keycodes[256] =
extern int mac_hid_mouse_emulate_buttons(int, int, int);
extern int mac_hid_mouse_emulate_buttons(int, int, int);
#endif /* CONFIG_MAC_EMUMOUSEBTN */
#endif /* CONFIG_MAC_EMUMOUSEBTN */


#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
#ifdef CONFIG_SPARC
static int sparc_l1_a_state = 0;
static int sparc_l1_a_state = 0;
extern void sun_do_break(void);
extern void sun_do_break(void);
#endif
#endif
@@ -1045,7 +1045,7 @@ static void kbd_keycode(unsigned int keycode, int down,


	if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT)
	if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT)
		sysrq_alt = down;
		sysrq_alt = down;
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
#ifdef CONFIG_SPARC
	if (keycode == KEY_STOP)
	if (keycode == KEY_STOP)
		sparc_l1_a_state = down;
		sparc_l1_a_state = down;
#endif
#endif
@@ -1072,7 +1072,7 @@ static void kbd_keycode(unsigned int keycode, int down,
		return;
		return;
	}
	}
#endif
#endif
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
#ifdef CONFIG_SPARC
	if (keycode == KEY_A && sparc_l1_a_state) {
	if (keycode == KEY_A && sparc_l1_a_state) {
		sparc_l1_a_state = 0;
		sparc_l1_a_state = 0;
		sun_do_break();
		sun_do_break();
+4 −4
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@ comment "FC4 drivers"


config FC4_SOC
config FC4_SOC
	tristate "Sun SOC/Sbus"
	tristate "Sun SOC/Sbus"
	depends on FC4!=n && (SPARC32 || SPARC64)
	depends on FC4!=n && SPARC
	help
	help
	  Serial Optical Channel is an interface card with one or two Fibre
	  Serial Optical Channel is an interface card with one or two Fibre
	  Optic ports, each of which can be connected to a disk array. Note
	  Optic ports, each of which can be connected to a disk array. Note
@@ -38,7 +38,7 @@ config FC4_SOC


config FC4_SOCAL
config FC4_SOCAL
	tristate "Sun SOC+ (aka SOCAL)"
	tristate "Sun SOC+ (aka SOCAL)"
	depends on FC4!=n && (SPARC32 || SPARC64)
	depends on FC4!=n && SPARC
	---help---
	---help---
	  Serial Optical Channel Plus is an interface card with up to two
	  Serial Optical Channel Plus is an interface card with up to two
	  Fibre Optic ports. This card supports FC Arbitrated Loop (usually
	  Fibre Optic ports. This card supports FC Arbitrated Loop (usually
@@ -62,7 +62,7 @@ config SCSI_PLUTO
	  be called pluto.
	  be called pluto.


config SCSI_FCAL
config SCSI_FCAL
	tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC32 || SPARC64
	tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC
	depends on FC4!=n && SCSI
	depends on FC4!=n && SCSI
	help
	help
	  This driver drives FC-AL disks connected through a Fibre Channel
	  This driver drives FC-AL disks connected through a Fibre Channel
@@ -75,7 +75,7 @@ config SCSI_FCAL


config SCSI_FCAL
config SCSI_FCAL
	prompt "Generic FC-AL disk driver"
	prompt "Generic FC-AL disk driver"
	depends on FC4!=n && SCSI && !SPARC32 && !SPARC64
	depends on FC4!=n && SCSI && !SPARC


endmenu
endmenu
Loading