[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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Adrian Bunk and committed by David S. Miller 0b57ee9e 14904398

+45 -37
+4
arch/sparc/Kconfig
··· 55 depends on SMP 56 default "32" 57 58 # Identify this as a Sparc32 build 59 config SPARC32 60 bool
··· 55 depends on SMP 56 default "32" 57 58 + config SPARC 59 + bool 60 + default y 61 + 62 # Identify this as a Sparc32 build 63 config SPARC32 64 bool
+4
arch/sparc64/Kconfig
··· 5 6 mainmenu "Linux/UltraSPARC Kernel Configuration" 7 8 config SPARC64 9 bool 10 default y
··· 5 6 mainmenu "Linux/UltraSPARC Kernel Configuration" 7 8 + config SPARC 9 + bool 10 + default y 11 + 12 config SPARC64 13 bool 14 default y
+2 -2
drivers/char/Kconfig
··· 687 688 config RTC 689 tristate "Enhanced Real Time Clock Support" 690 - depends on !PPC32 && !PARISC && !IA64 && !M68K && (!(SPARC32 || SPARC64) || PCI) 691 ---help--- 692 If you say Y here and create a character special file /dev/rtc with 693 major number 10 and minor number 135 using mknod ("man mknod"), you ··· 735 736 config GEN_RTC 737 tristate "Generic /dev/rtc emulation" 738 - depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC32 && !SPARC64 739 ---help--- 740 If you say Y here and create a character special file /dev/rtc with 741 major number 10 and minor number 135 using mknod ("man mknod"), you
··· 687 688 config RTC 689 tristate "Enhanced Real Time Clock Support" 690 + depends on !PPC32 && !PARISC && !IA64 && !M68K && (!SPARC || PCI) 691 ---help--- 692 If you say Y here and create a character special file /dev/rtc with 693 major number 10 and minor number 135 using mknod ("man mknod"), you ··· 735 736 config GEN_RTC 737 tristate "Generic /dev/rtc emulation" 738 + depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC 739 ---help--- 740 If you say Y here and create a character special file /dev/rtc with 741 major number 10 and minor number 135 using mknod ("man mknod"), you
+5 -5
drivers/char/keyboard.c
··· 930 } 931 932 #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\ 933 - defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC32) ||\ 934 - defined(CONFIG_SPARC64) || defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\ 935 (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC)) 936 937 #define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\ ··· 958 extern int mac_hid_mouse_emulate_buttons(int, int, int); 959 #endif /* CONFIG_MAC_EMUMOUSEBTN */ 960 961 - #if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) 962 static int sparc_l1_a_state = 0; 963 extern void sun_do_break(void); 964 #endif ··· 1045 1046 if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT) 1047 sysrq_alt = down; 1048 - #if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) 1049 if (keycode == KEY_STOP) 1050 sparc_l1_a_state = down; 1051 #endif ··· 1072 return; 1073 } 1074 #endif 1075 - #if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) 1076 if (keycode == KEY_A && sparc_l1_a_state) { 1077 sparc_l1_a_state = 0; 1078 sun_do_break();
··· 930 } 931 932 #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\ 933 + defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) ||\ 934 + defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\ 935 (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC)) 936 937 #define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\ ··· 958 extern int mac_hid_mouse_emulate_buttons(int, int, int); 959 #endif /* CONFIG_MAC_EMUMOUSEBTN */ 960 961 + #ifdef CONFIG_SPARC 962 static int sparc_l1_a_state = 0; 963 extern void sun_do_break(void); 964 #endif ··· 1045 1046 if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT) 1047 sysrq_alt = down; 1048 + #ifdef CONFIG_SPARC 1049 if (keycode == KEY_STOP) 1050 sparc_l1_a_state = down; 1051 #endif ··· 1072 return; 1073 } 1074 #endif 1075 + #ifdef CONFIG_SPARC 1076 if (keycode == KEY_A && sparc_l1_a_state) { 1077 sparc_l1_a_state = 0; 1078 sun_do_break();
+4 -4
drivers/fc4/Kconfig
··· 26 27 config FC4_SOC 28 tristate "Sun SOC/Sbus" 29 - depends on FC4!=n && (SPARC32 || SPARC64) 30 help 31 Serial Optical Channel is an interface card with one or two Fibre 32 Optic ports, each of which can be connected to a disk array. Note ··· 38 39 config FC4_SOCAL 40 tristate "Sun SOC+ (aka SOCAL)" 41 - depends on FC4!=n && (SPARC32 || SPARC64) 42 ---help--- 43 Serial Optical Channel Plus is an interface card with up to two 44 Fibre Optic ports. This card supports FC Arbitrated Loop (usually ··· 62 be called pluto. 63 64 config SCSI_FCAL 65 - tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC32 || SPARC64 66 depends on FC4!=n && SCSI 67 help 68 This driver drives FC-AL disks connected through a Fibre Channel ··· 75 76 config SCSI_FCAL 77 prompt "Generic FC-AL disk driver" 78 - depends on FC4!=n && SCSI && !SPARC32 && !SPARC64 79 80 endmenu 81
··· 26 27 config FC4_SOC 28 tristate "Sun SOC/Sbus" 29 + depends on FC4!=n && SPARC 30 help 31 Serial Optical Channel is an interface card with one or two Fibre 32 Optic ports, each of which can be connected to a disk array. Note ··· 38 39 config FC4_SOCAL 40 tristate "Sun SOC+ (aka SOCAL)" 41 + depends on FC4!=n && SPARC 42 ---help--- 43 Serial Optical Channel Plus is an interface card with up to two 44 Fibre Optic ports. This card supports FC Arbitrated Loop (usually ··· 62 be called pluto. 63 64 config SCSI_FCAL 65 + tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC 66 depends on FC4!=n && SCSI 67 help 68 This driver drives FC-AL disks connected through a Fibre Channel ··· 75 76 config SCSI_FCAL 77 prompt "Generic FC-AL disk driver" 78 + depends on FC4!=n && SCSI && !SPARC 79 80 endmenu 81
+1 -1
drivers/input/misc/Kconfig
··· 26 27 config INPUT_SPARCSPKR 28 tristate "SPARC Speaker support" 29 - depends on PCI && (SPARC32 || SPARC64) 30 help 31 Say Y here if you want the standard Speaker on Sparc PCI systems 32 to be used for bells and whistles.
··· 26 27 config INPUT_SPARCSPKR 28 tristate "SPARC Speaker support" 29 + depends on PCI && SPARC 30 help 31 Say Y here if you want the standard Speaker on Sparc PCI systems 32 to be used for bells and whistles.
+1 -1
drivers/input/serio/i8042.h
··· 21 #include "i8042-ip22io.h" 22 #elif defined(CONFIG_PPC) 23 #include "i8042-ppcio.h" 24 - #elif defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) 25 #include "i8042-sparcio.h" 26 #elif defined(CONFIG_X86) || defined(CONFIG_IA64) 27 #include "i8042-x86ia64io.h"
··· 21 #include "i8042-ip22io.h" 22 #elif defined(CONFIG_PPC) 23 #include "i8042-ppcio.h" 24 + #elif defined(CONFIG_SPARC) 25 #include "i8042-sparcio.h" 26 #elif defined(CONFIG_X86) || defined(CONFIG_IA64) 27 #include "i8042-x86ia64io.h"
+1 -1
drivers/mtd/maps/Kconfig
··· 62 63 config MTD_SUN_UFLASH 64 tristate "Sun Microsystems userflash support" 65 - depends on (SPARC32 || SPARC64) && MTD_CFI 66 help 67 This provides a 'mapping' driver which supports the way in 68 which user-programmable flash chips are connected on various
··· 62 63 config MTD_SUN_UFLASH 64 tristate "Sun Microsystems userflash support" 65 + depends on SPARC && MTD_CFI 66 help 67 This provides a 'mapping' driver which supports the way in 68 which user-programmable flash chips are connected on various
+5 -5
drivers/serial/Kconfig
··· 10 # The new 8250/16550 serial drivers 11 config SERIAL_8250 12 tristate "8250/16550 and compatible serial support" 13 - depends on (BROKEN || !(SPARC64 || SPARC32)) 14 select SERIAL_CORE 15 ---help--- 16 This selects whether you want to include the driver for the standard ··· 469 470 config SERIAL_SUNCORE 471 bool 472 - depends on SPARC32 || SPARC64 473 select SERIAL_CORE 474 select SERIAL_CORE_CONSOLE 475 default y 476 477 config SERIAL_SUNZILOG 478 tristate "Sun Zilog8530 serial support" 479 - depends on SPARC32 || SPARC64 480 help 481 This driver supports the Zilog8530 serial ports found on many Sparc 482 systems. Say Y or M if you want to be able to these serial ports. ··· 491 492 config SERIAL_SUNSU 493 tristate "Sun SU serial support" 494 - depends on (SPARC32 || SPARC64) && PCI 495 help 496 This driver supports the 8250 serial ports that run the keyboard and 497 mouse on (PCI) UltraSPARC systems. Say Y or M if you want to be able ··· 547 548 config SERIAL_SUNSAB 549 tristate "Sun Siemens SAB82532 serial support" 550 - depends on (SPARC32 || SPARC64) && PCI 551 help 552 This driver supports the Siemens SAB82532 DUSCC serial ports on newer 553 (PCI) UltraSPARC systems. Say Y or M if you want to be able to these
··· 10 # The new 8250/16550 serial drivers 11 config SERIAL_8250 12 tristate "8250/16550 and compatible serial support" 13 + depends on (BROKEN || !SPARC) 14 select SERIAL_CORE 15 ---help--- 16 This selects whether you want to include the driver for the standard ··· 469 470 config SERIAL_SUNCORE 471 bool 472 + depends on SPARC 473 select SERIAL_CORE 474 select SERIAL_CORE_CONSOLE 475 default y 476 477 config SERIAL_SUNZILOG 478 tristate "Sun Zilog8530 serial support" 479 + depends on SPARC 480 help 481 This driver supports the Zilog8530 serial ports found on many Sparc 482 systems. Say Y or M if you want to be able to these serial ports. ··· 491 492 config SERIAL_SUNSU 493 tristate "Sun SU serial support" 494 + depends on SPARC && PCI 495 help 496 This driver supports the 8250 serial ports that run the keyboard and 497 mouse on (PCI) UltraSPARC systems. Say Y or M if you want to be able ··· 547 548 config SERIAL_SUNSAB 549 tristate "Sun Siemens SAB82532 serial support" 550 + depends on SPARC && PCI 551 help 552 This driver supports the Siemens SAB82532 DUSCC serial ports on newer 553 (PCI) UltraSPARC systems. Say Y or M if you want to be able to these
+5 -5
drivers/video/Kconfig
··· 536 537 config FB_SBUS 538 bool "SBUS and UPA framebuffers" 539 - depends on (FB = y) && (SPARC32 || SPARC64) 540 help 541 Say Y if you want support for SBUS or UPA based frame buffer device. 542 543 config FB_BW2 544 bool "BWtwo support" 545 - depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 546 select FB_CFB_FILLRECT 547 select FB_CFB_COPYAREA 548 select FB_CFB_IMAGEBLIT ··· 551 552 config FB_CG3 553 bool "CGthree support" 554 - depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 555 select FB_CFB_FILLRECT 556 select FB_CFB_COPYAREA 557 select FB_CFB_IMAGEBLIT ··· 560 561 config FB_CG6 562 bool "CGsix (GX,TurboGX) support" 563 - depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 564 select FB_CFB_COPYAREA 565 select FB_CFB_IMAGEBLIT 566 help ··· 1268 1269 config FB_PCI 1270 bool "PCI framebuffers" 1271 - depends on (FB = y) && PCI && (SPARC64 || SPARC32) 1272 1273 config FB_IGA 1274 bool "IGA 168x display support"
··· 536 537 config FB_SBUS 538 bool "SBUS and UPA framebuffers" 539 + depends on (FB = y) && SPARC 540 help 541 Say Y if you want support for SBUS or UPA based frame buffer device. 542 543 config FB_BW2 544 bool "BWtwo support" 545 + depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 546 select FB_CFB_FILLRECT 547 select FB_CFB_COPYAREA 548 select FB_CFB_IMAGEBLIT ··· 551 552 config FB_CG3 553 bool "CGthree support" 554 + depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 555 select FB_CFB_FILLRECT 556 select FB_CFB_COPYAREA 557 select FB_CFB_IMAGEBLIT ··· 560 561 config FB_CG6 562 bool "CGsix (GX,TurboGX) support" 563 + depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) 564 select FB_CFB_COPYAREA 565 select FB_CFB_IMAGEBLIT 566 help ··· 1268 1269 config FB_PCI 1270 bool "PCI framebuffers" 1271 + depends on (FB = y) && PCI && SPARC 1272 1273 config FB_IGA 1274 bool "IGA 168x display support"
+10 -10
drivers/video/console/Kconfig
··· 6 7 config VGA_CONSOLE 8 bool "VGA text console" if EMBEDDED || !X86 9 - depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC32 && !SPARC64 && !M68K && !PARISC && !ARCH_VERSATILE 10 default y 11 help 12 Saying Y here will allow you to use Linux in text mode through a ··· 68 69 config PROM_CONSOLE 70 bool "PROM console" 71 - depends on SPARC32 || SPARC64 72 help 73 Say Y to build a console driver for Sun machines that uses the 74 terminal emulation built into their console PROMS. ··· 136 config FONT_8x8 137 bool "VGA 8x8 font" if FONTS 138 depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE 139 - default y if !SPARC32 && !SPARC64 && !FONTS 140 help 141 This is the "high resolution" font for the VGA frame buffer (the one 142 provided by the text console 80x50 (and higher) modes). ··· 150 config FONT_8x16 151 bool "VGA 8x16 font" if FONTS 152 depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE=y || STI_CONSOLE || USB_SISUSBVGA_CON 153 - default y if !SPARC32 && !SPARC64 && !FONTS 154 help 155 This is the "high resolution" font for the VGA frame buffer (the one 156 provided by the VGA text console 80x25 mode. ··· 160 config FONT_6x11 161 bool "Mac console 6x11 font (not supported by all drivers)" if FONTS 162 depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE 163 - default y if !SPARC32 && !SPARC64 && !FONTS && MAC 164 help 165 Small console font with Macintosh-style high-half glyphs. Some Mac 166 framebuffer drivers don't support this one at all. ··· 176 config FONT_PEARL_8x8 177 bool "Pearl (old m68k) console 8x8 font" if FONTS 178 depends on FRAMEBUFFER_CONSOLE 179 - default y if !SPARC32 && !SPARC64 && !FONTS && AMIGA 180 help 181 Small console font with PC-style control-character and high-half 182 glyphs. ··· 184 config FONT_ACORN_8x8 185 bool "Acorn console 8x8 font" if FONTS 186 depends on FRAMEBUFFER_CONSOLE 187 - default y if !SPARC32 && !SPARC64 && !FONTS && ARM && ARCH_ACORN 188 help 189 Small console font with PC-style control characters and high-half 190 glyphs. 191 192 config FONT_MINI_4x6 193 bool "Mini 4x6 font" 194 - depends on !SPARC32 && !SPARC64 && FONTS 195 196 config FONT_SUN8x16 197 bool "Sparc console 8x16 font" 198 - depends on FRAMEBUFFER_CONSOLE && (!SPARC32 && !SPARC64 && FONTS || SPARC32 || SPARC64) 199 help 200 This is the high resolution console font for Sun machines. Say Y. 201 202 config FONT_SUN12x22 203 bool "Sparc console 12x22 font (not supported by all drivers)" 204 - depends on FRAMEBUFFER_CONSOLE && (!SPARC32 && !SPARC64 && FONTS || SPARC32 || SPARC64) 205 help 206 This is the high resolution console font for Sun machines with very 207 big letters (like the letters used in the SPARC PROM). If the
··· 6 7 config VGA_CONSOLE 8 bool "VGA text console" if EMBEDDED || !X86 9 + depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !ARCH_VERSATILE 10 default y 11 help 12 Saying Y here will allow you to use Linux in text mode through a ··· 68 69 config PROM_CONSOLE 70 bool "PROM console" 71 + depends on SPARC 72 help 73 Say Y to build a console driver for Sun machines that uses the 74 terminal emulation built into their console PROMS. ··· 136 config FONT_8x8 137 bool "VGA 8x8 font" if FONTS 138 depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE 139 + default y if !SPARC && !FONTS 140 help 141 This is the "high resolution" font for the VGA frame buffer (the one 142 provided by the text console 80x50 (and higher) modes). ··· 150 config FONT_8x16 151 bool "VGA 8x16 font" if FONTS 152 depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE=y || STI_CONSOLE || USB_SISUSBVGA_CON 153 + default y if !SPARC && !FONTS 154 help 155 This is the "high resolution" font for the VGA frame buffer (the one 156 provided by the VGA text console 80x25 mode. ··· 160 config FONT_6x11 161 bool "Mac console 6x11 font (not supported by all drivers)" if FONTS 162 depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE 163 + default y if !SPARC && !FONTS && MAC 164 help 165 Small console font with Macintosh-style high-half glyphs. Some Mac 166 framebuffer drivers don't support this one at all. ··· 176 config FONT_PEARL_8x8 177 bool "Pearl (old m68k) console 8x8 font" if FONTS 178 depends on FRAMEBUFFER_CONSOLE 179 + default y if !SPARC && !FONTS && AMIGA 180 help 181 Small console font with PC-style control-character and high-half 182 glyphs. ··· 184 config FONT_ACORN_8x8 185 bool "Acorn console 8x8 font" if FONTS 186 depends on FRAMEBUFFER_CONSOLE 187 + default y if !SPARC && !FONTS && ARM && ARCH_ACORN 188 help 189 Small console font with PC-style control characters and high-half 190 glyphs. 191 192 config FONT_MINI_4x6 193 bool "Mini 4x6 font" 194 + depends on !SPARC && FONTS 195 196 config FONT_SUN8x16 197 bool "Sparc console 8x16 font" 198 + depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC) 199 help 200 This is the high resolution console font for Sun machines. Say Y. 201 202 config FONT_SUN12x22 203 bool "Sparc console 12x22 font (not supported by all drivers)" 204 + depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC) 205 help 206 This is the high resolution console font for Sun machines with very 207 big letters (like the letters used in the SPARC PROM). If the
+1 -1
drivers/video/logo/Kconfig
··· 47 48 config LOGO_SUN_CLUT224 49 bool "224-color Sun Linux logo" 50 - depends on LOGO && (SPARC32 || SPARC64) 51 default y 52 53 config LOGO_SUPERH_MONO
··· 47 48 config LOGO_SUN_CLUT224 49 bool "224-color Sun Linux logo" 50 + depends on LOGO && SPARC 51 default y 52 53 config LOGO_SUPERH_MONO
+1 -1
fs/partitions/Kconfig
··· 203 204 config SUN_PARTITION 205 bool "Sun partition tables support" if PARTITION_ADVANCED 206 - default y if (SPARC32 || SPARC64 || SUN3 || SUN3X) 207 ---help--- 208 Like most systems, SunOS uses its own hard disk partition table 209 format, incompatible with all others. Saying Y here allows you to
··· 203 204 config SUN_PARTITION 205 bool "Sun partition tables support" if PARTITION_ADVANCED 206 + default y if (SPARC || SUN3 || SUN3X) 207 ---help--- 208 Like most systems, SunOS uses its own hard disk partition table 209 format, incompatible with all others. Saying Y here allows you to
+1 -1
sound/sparc/Kconfig
··· 1 # ALSA Sparc drivers 2 3 menu "ALSA Sparc devices" 4 - depends on SND!=n && (SPARC32 || SPARC64) 5 6 config SND_SUN_AMD7930 7 tristate "Sun AMD7930"
··· 1 # ALSA Sparc drivers 2 3 menu "ALSA Sparc devices" 4 + depends on SND!=n && SPARC 5 6 config SND_SUN_AMD7930 7 tristate "Sun AMD7930"