280 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2 3menuconfig MACINTOSH_DRIVERS4 bool "Macintosh device drivers"5 depends on PPC || MAC || X866 default y if (PPC_PMAC || MAC)7 help8 Say Y here to get to see options for devices used with Macintosh9 computers. This option alone does not add any kernel code.10 11 If you say N, all options in this submenu will be skipped and disabled.12 13if MACINTOSH_DRIVERS14 15config ADB16 bool "Apple Desktop Bus (ADB) support"17 depends on MAC || (PPC_PMAC && PPC32)18 help19 Apple Desktop Bus (ADB) support is for support of devices which20 are connected to an ADB port. ADB devices tend to have 4 pins.21 If you have an Apple Macintosh prior to the iMac, an iBook or22 PowerBook, or a "Blue and White G3", you probably want to say Y23 here. Otherwise say N.24 25config ADB_MACII26 bool "Include Mac II ADB driver"27 depends on ADB && MAC28 help29 Say Y here if want your kernel to support Macintosh systems that use30 the Mac II style ADB. This includes the II, IIx, IIcx, SE/30, IIci,31 Quadra 610, Quadra 650, Quadra 700, Quadra 800, Centris 610 and32 Centris 650.33 34config ADB_IOP35 bool "Include IOP (IIfx/Quadra 9x0) ADB driver"36 depends on ADB && MAC37 help38 The I/O Processor (IOP) is an Apple custom IC designed to provide39 intelligent support for I/O controllers. It is described at40 <http://www.angelfire.com/ca2/dev68k/iopdesc.html> to enable direct41 support for it, say 'Y' here.42 43# we want to change this to something like CONFIG_SYSCTRL_CUDA/PMU44config ADB_CUDA45 bool "Support for Cuda/Egret based Macs and PowerMacs"46 depends on (ADB || PPC_PMAC) && !PPC_PMAC6447 select RTC_LIB48 help49 This provides support for Cuda/Egret based Macintosh and50 Power Macintosh systems. This includes most m68k based Macs,51 most Old World PowerMacs, the first generation iMacs, the52 Blue & White G3 and the "Yikes" G4 (PCI Graphics). All later53 models should use CONFIG_ADB_PMU instead. It is safe to say Y54 here even if your machine doesn't have a Cuda or Egret device.55 56 If unsure say Y.57 58config ADB_PMU59 bool "Support for PMU based PowerMacs and PowerBooks"60 depends on PPC_PMAC || MAC61 select RTC_LIB62 help63 On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the64 PMU is an embedded microprocessor whose primary function is to65 control system power, and battery charging on the portable models.66 The PMU also controls the ADB (Apple Desktop Bus) which connects to67 the keyboard and mouse on some machines, as well as the non-volatile68 RAM and the RTC (real time clock) chip. Say Y to enable support for69 this device; you should do so if your machine is one of those70 mentioned above.71 72config ADB_PMU_EVENT73 def_bool y74 depends on ADB_PMU && INPUT=y75 76config ADB_PMU_LED77 bool "Support for the Power/iBook front LED"78 depends on PPC_PMAC && ADB_PMU79 select NEW_LEDS80 select LEDS_CLASS81 help82 Support the front LED on Power/iBooks as a generic LED that can83 be triggered by any of the supported triggers. To get the84 behaviour of the old CONFIG_BLK_DEV_IDE_PMAC_BLINK, select this85 and the disk LED trigger and configure appropriately through sysfs.86 87config ADB_PMU_LED_DISK88 bool "Use front LED as DISK LED by default"89 depends on ATA90 depends on ADB_PMU_LED91 depends on LEDS_CLASS92 select LEDS_TRIGGERS93 select LEDS_TRIGGER_DISK94 help95 This option makes the front LED default to the disk trigger96 so that it blinks on disk activity.97 98config PMAC_SMU99 bool "Support for SMU based PowerMacs"100 depends on PPC_PMAC64101 help102 This option adds support for the newer G5 iMacs and PowerMacs based103 on the "SMU" system control chip which replaces the old PMU.104 If you don't know, say Y.105 106config PMAC_APM_EMU107 tristate "APM emulation"108 select APM_EMULATION109 depends on ADB_PMU && PM && PPC32110 111config PMAC_MEDIABAY112 bool "Support PowerBook hotswap media bay"113 depends on PPC_PMAC && PPC32 && BLOCK114 help115 This option adds support for older PowerBook's hotswap media bay116 that can contains batteries, floppy drives, or IDE devices. PCI117 devices are not fully supported in the bay as I never had one to118 try with119 120config PMAC_BACKLIGHT121 bool "Backlight control for LCD screens"122 depends on PPC_PMAC && ADB_PMU && FB = y && (BROKEN || !PPC64)123 select FB_BACKLIGHT124 help125 Say Y here to enable Macintosh specific extensions of the generic126 backlight code. With this enabled, the brightness keys on older127 PowerBooks will be enabled so you can change the screen brightness.128 Newer models should use a userspace daemon like pbbuttonsd.129 130config PMAC_BACKLIGHT_LEGACY131 bool "Provide legacy ioctl's on /dev/pmu for the backlight"132 depends on PMAC_BACKLIGHT && (BROKEN || !PPC64)133 help134 Say Y if you want to enable legacy ioctl's on /dev/pmu. This is for135 programs which use this old interface. New and updated programs136 should use the backlight classes in sysfs.137 138config ADB_MACIO139 bool "Include MacIO (CHRP) ADB driver"140 depends on ADB && PPC_CHRP && !PPC_PMAC64141 help142 Say Y here to include direct support for the ADB controller in the143 Hydra chip used on PowerPC Macintoshes of the CHRP type. (The Hydra144 also includes a MESH II SCSI controller, DBDMA controller, VIA chip,145 OpenPIC controller and two RS422/Geoports.)146 147config INPUT_ADBHID148 bool "Support for ADB input devices (keyboard, mice, ...)"149 depends on ADB && INPUT=y150 help151 Say Y here if you want to have ADB (Apple Desktop Bus) HID devices152 such as keyboards, mice, joysticks, trackpads or graphic tablets153 handled by the input layer. If you say Y here, make sure to say Y to154 the corresponding drivers "Mouse Support" (CONFIG_INPUT_MOUSEDEV) and155 "Event interface support" (CONFIG_INPUT_EVDEV) as well.156 157 If unsure, say Y.158 159config MAC_EMUMOUSEBTN160 tristate "Support for mouse button 2+3 emulation"161 depends on SYSCTL && INPUT162 help163 This provides generic support for emulating the 2nd and 3rd mouse164 button with keypresses. If you say Y here, the emulation is still165 disabled by default. The emulation is controlled by these sysctl166 entries:167 /proc/sys/dev/mac_hid/mouse_button_emulation168 /proc/sys/dev/mac_hid/mouse_button2_keycode169 /proc/sys/dev/mac_hid/mouse_button3_keycode170 171 If you have an Apple machine with a 1-button mouse, say Y here.172 173 To compile this driver as a module, choose M here: the174 module will be called mac_hid.175 176config THERM_WINDTUNNEL177 tristate "Support for thermal management on Windtunnel G4s"178 depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64179 help180 This driver provides some thermostat and fan control for the desktop181 G4 "Windtunnel"182 183config THERM_ADT746X184 tristate "Support for thermal mgmnt on laptops with ADT 746x chipset"185 depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64186 help187 This driver provides some thermostat and fan control for the188 iBook G4, and the ATI based aluminium PowerBooks, allowing slightly189 better fan behaviour by default, and some manual control.190 191config WINDFARM192 tristate "New PowerMac thermal control infrastructure"193 depends on PPC194 195config WINDFARM_PM81196 tristate "Support for thermal management on iMac G5"197 depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU198 select I2C_POWERMAC199 help200 This driver provides thermal control for the iMacG5201 202config WINDFARM_PM72203 tristate "Support for thermal management on PowerMac G5 (AGP)"204 depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && ADB_PMU205 select I2C_POWERMAC206 help207 This driver provides thermal control for the PowerMac G5208 "AGP" variants (PowerMac 7,2 and 7,3)209 210config WINDFARM_RM31211 tristate "Support for thermal management on Xserve G5"212 depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && ADB_PMU213 select I2C_POWERMAC214 help215 This driver provides thermal control for the Xserve G5216 (RackMac3,1)217 218config WINDFARM_PM91219 tristate "Support for thermal management on PowerMac9,1"220 depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU221 select I2C_POWERMAC222 help223 This driver provides thermal control for the PowerMac9,1224 which is the recent (SMU based) single CPU desktop G5225 226config WINDFARM_PM112227 tristate "Support for thermal management on PowerMac11,2"228 depends on WINDFARM && I2C && PMAC_SMU229 select I2C_POWERMAC230 help231 This driver provides thermal control for the PowerMac11,2232 which are the recent dual and quad G5 machines using the233 970MP dual-core processor.234 235config WINDFARM_PM121236 tristate "Support for thermal management on PowerMac12,1"237 depends on WINDFARM && I2C && PMAC_SMU238 select I2C_POWERMAC239 help240 This driver provides thermal control for the PowerMac12,1241 which is the iMac G5 (iSight).242 243config ANSLCD244 tristate "Support for ANS LCD display"245 depends on ADB_CUDA && PPC_PMAC246 247config PMAC_RACKMETER248 tristate "Support for Apple XServe front panel LEDs"249 depends on PPC_PMAC250 help251 This driver provides some support to control the front panel252 blue LEDs "vu-meter" of the XServer macs.253 254config SENSORS_AMS255 tristate "Apple Motion Sensor driver"256 depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C)257 help258 Support for the motion sensor included in PowerBooks. Includes259 implementations for PMU and I2C.260 261 This driver can also be built as a module. If so, the module262 will be called ams.263 264config SENSORS_AMS_PMU265 bool "PMU variant" if SENSORS_AMS_I2C266 depends on SENSORS_AMS && ADB_PMU267 default y268 help269 PMU variant of motion sensor, found in late 2005 PowerBooks.270 271config SENSORS_AMS_I2C272 bool "I2C variant"273 depends on SENSORS_AMS && I2C274 default y275 help276 I2C variant of motion sensor, found in early 2005 PowerBooks and277 iBooks.278 279endif # MACINTOSH_DRIVERS280