xref: /linux/drivers/macintosh/Kconfig (revision 0bae35e14b68f5e7075bc96e5ea608b42bdf8f59)
11da177e4SLinus Torvalds
20f21712dSJan Engelhardtmenuconfig MACINTOSH_DRIVERS
30f21712dSJan Engelhardt	bool "Macintosh device drivers"
445941d04SSoeren Sonnenburg	depends on PPC || MAC || X86
5e2f1f192SOlaf Hering	default y if (PPC_PMAC || MAC)
606bfb7ebSJan Engelhardt	---help---
706bfb7ebSJan Engelhardt	  Say Y here to get to see options for devices used with Macintosh
806bfb7ebSJan Engelhardt	  computers. This option alone does not add any kernel code.
906bfb7ebSJan Engelhardt
1006bfb7ebSJan Engelhardt	  If you say N, all options in this submenu will be skipped and disabled.
110f21712dSJan Engelhardt
120f21712dSJan Engelhardtif MACINTOSH_DRIVERS
131da177e4SLinus Torvalds
141da177e4SLinus Torvaldsconfig ADB
151da177e4SLinus Torvalds	bool "Apple Desktop Bus (ADB) support"
1664c74de7SOlaf Hering	depends on MAC || (PPC_PMAC && PPC32)
171da177e4SLinus Torvalds	help
181da177e4SLinus Torvalds	  Apple Desktop Bus (ADB) support is for support of devices which
191da177e4SLinus Torvalds	  are connected to an ADB port.  ADB devices tend to have 4 pins.
201da177e4SLinus Torvalds	  If you have an Apple Macintosh prior to the iMac, an iBook or
211da177e4SLinus Torvalds	  PowerBook, or a "Blue and White G3", you probably want to say Y
221da177e4SLinus Torvalds	  here.  Otherwise say N.
231da177e4SLinus Torvalds
241da177e4SLinus Torvaldsconfig ADB_MACII
251da177e4SLinus Torvalds	bool "Include Mac II ADB driver"
261da177e4SLinus Torvalds	depends on ADB && MAC
271da177e4SLinus Torvalds	help
281da177e4SLinus Torvalds	  Say Y here if want your kernel to support Macintosh systems that use
291da177e4SLinus Torvalds	  the Mac II style ADB.  This includes the II, IIx, IIcx, SE/30, IIci,
301da177e4SLinus Torvalds	  Quadra 610, Quadra 650, Quadra 700, Quadra 800, Centris 610 and
311da177e4SLinus Torvalds	  Centris 650.
321da177e4SLinus Torvalds
331da177e4SLinus Torvaldsconfig ADB_MACIISI
341da177e4SLinus Torvalds	bool "Include Mac IIsi ADB driver"
351da177e4SLinus Torvalds	depends on ADB && MAC
361da177e4SLinus Torvalds	help
371da177e4SLinus Torvalds	  Say Y here if want your kernel to support Macintosh systems that use
381da177e4SLinus Torvalds	  the Mac IIsi style ADB.  This includes the IIsi, IIvi, IIvx, Classic
391da177e4SLinus Torvalds	  II, LC, LC II, LC III, Performa 460, and the Performa 600.
401da177e4SLinus Torvalds
411da177e4SLinus Torvaldsconfig ADB_IOP
421da177e4SLinus Torvalds	bool "Include IOP (IIfx/Quadra 9x0) ADB driver"
431da177e4SLinus Torvalds	depends on ADB && MAC
441da177e4SLinus Torvalds	help
451da177e4SLinus Torvalds	  The I/O Processor (IOP) is an Apple custom IC designed to provide
461da177e4SLinus Torvalds	  intelligent support for I/O controllers.  It is described at
471da177e4SLinus Torvalds	  <http://www.angelfire.com/ca2/dev68k/iopdesc.html> to enable direct
481da177e4SLinus Torvalds	  support for it, say 'Y' here.
491da177e4SLinus Torvalds
501da177e4SLinus Torvaldsconfig ADB_PMU68K
511da177e4SLinus Torvalds	bool "Include PMU (Powerbook) ADB driver"
521da177e4SLinus Torvalds	depends on ADB && MAC
531da177e4SLinus Torvalds	help
541da177e4SLinus Torvalds	  Say Y here if want your kernel to support the m68k based Powerbooks.
551da177e4SLinus Torvalds	  This includes the PowerBook 140, PowerBook 145, PowerBook 150,
561da177e4SLinus Torvalds	  PowerBook 160, PowerBook 165, PowerBook 165c, PowerBook 170,
571da177e4SLinus Torvalds	  PowerBook 180, PowerBook, 180c, PowerBook 190cs, PowerBook 520,
581da177e4SLinus Torvalds	  PowerBook Duo 210, PowerBook Duo 230, PowerBook Duo 250,
591da177e4SLinus Torvalds	  PowerBook Duo 270c, PowerBook Duo 280 and PowerBook Duo 280c.
601da177e4SLinus Torvalds
611da177e4SLinus Torvalds# we want to change this to something like CONFIG_SYSCTRL_CUDA/PMU
621da177e4SLinus Torvaldsconfig ADB_CUDA
631da177e4SLinus Torvalds	bool "Support for CUDA based Macs and PowerMacs"
641da177e4SLinus Torvalds	depends on (ADB || PPC_PMAC) && !PPC_PMAC64
651da177e4SLinus Torvalds	help
661da177e4SLinus Torvalds	  This provides support for CUDA based Macintosh and Power Macintosh
671da177e4SLinus Torvalds	  systems.  This includes many m68k based Macs (Color Classic, Mac TV,
681da177e4SLinus Torvalds	  Performa 475, Performa 520, Performa 550, Performa 575,
691da177e4SLinus Torvalds	  Performa 588, Quadra 605, Quadra 630, Quadra/Centris 660AV, and
701da177e4SLinus Torvalds	  Quadra 840AV), most OldWorld PowerMacs, the first generation iMacs,
711da177e4SLinus Torvalds	  the Blue&White G3 and the "Yikes" G4 (PCI Graphics).  All later
721da177e4SLinus Torvalds	  models should use CONFIG_ADB_PMU instead.  It is safe to say Y here
731da177e4SLinus Torvalds	  even if your machine doesn't have a CUDA.
741da177e4SLinus Torvalds
751da177e4SLinus Torvalds	  If unsure say Y.
761da177e4SLinus Torvalds
771da177e4SLinus Torvaldsconfig ADB_PMU
781da177e4SLinus Torvalds	bool "Support for PMU  based PowerMacs"
791da177e4SLinus Torvalds	depends on PPC_PMAC
801da177e4SLinus Torvalds	help
811da177e4SLinus Torvalds	  On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the
821da177e4SLinus Torvalds	  PMU is an embedded microprocessor whose primary function is to
831da177e4SLinus Torvalds	  control system power, and battery charging on the portable models.
841da177e4SLinus Torvalds	  The PMU also controls the ADB (Apple Desktop Bus) which connects to
851da177e4SLinus Torvalds	  the keyboard and mouse on some machines, as well as the non-volatile
861da177e4SLinus Torvalds	  RAM and the RTC (real time clock) chip.  Say Y to enable support for
871da177e4SLinus Torvalds	  this device; you should do so if your machine is one of those
881da177e4SLinus Torvalds	  mentioned above.
891da177e4SLinus Torvalds
9070c3967dSJohannes Bergconfig ADB_PMU_LED
9170c3967dSJohannes Berg	bool "Support for the Power/iBook front LED"
9270c3967dSJohannes Berg	depends on ADB_PMU
93649e8579SPaul Mackerras	select NEW_LEDS
9470c3967dSJohannes Berg	select LEDS_CLASS
9570c3967dSJohannes Berg	help
9670c3967dSJohannes Berg	  Support the front LED on Power/iBooks as a generic LED that can
9770c3967dSJohannes Berg	  be triggered by any of the supported triggers. To get the
9870c3967dSJohannes Berg	  behaviour of the old CONFIG_BLK_DEV_IDE_PMAC_BLINK, select this
9970c3967dSJohannes Berg	  and the ide-disk LED trigger and configure appropriately through
10070c3967dSJohannes Berg	  sysfs.
10170c3967dSJohannes Berg
102d1a8df91SJohannes Bergconfig ADB_PMU_LED_IDE
103d1a8df91SJohannes Berg	bool "Use front LED as IDE LED by default"
104d1a8df91SJohannes Berg	depends on ADB_PMU_LED
105*0bae35e1SJohannes Berg	depends on LEDS_CLASS
106d1a8df91SJohannes Berg	select LEDS_TRIGGERS
107d1a8df91SJohannes Berg	select LEDS_TRIGGER_IDE_DISK
108d1a8df91SJohannes Berg	help
109d1a8df91SJohannes Berg	  This option makes the front LED default to the IDE trigger
110d1a8df91SJohannes Berg	  so that it blinks on IDE activity.
111d1a8df91SJohannes Berg
1121da177e4SLinus Torvaldsconfig PMAC_SMU
1131da177e4SLinus Torvalds	bool "Support for SMU  based PowerMacs"
1141da177e4SLinus Torvalds	depends on PPC_PMAC64
1151da177e4SLinus Torvalds	help
1161da177e4SLinus Torvalds	  This option adds support for the newer G5 iMacs and PowerMacs based
1171da177e4SLinus Torvalds	  on the "SMU" system control chip which replaces the old PMU.
1181da177e4SLinus Torvalds	  If you don't know, say Y.
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvaldsconfig PMAC_APM_EMU
1211da177e4SLinus Torvalds	tristate "APM emulation"
122b3028878SJohannes Berg	select APM_EMULATION
123e358ae4dSJohannes Berg	depends on ADB_PMU && PM && PPC32
1248c870933SBenjamin Herrenschmidt
1258c870933SBenjamin Herrenschmidtconfig PMAC_MEDIABAY
1268c870933SBenjamin Herrenschmidt	bool "Support PowerBook hotswap media bay"
127bcd71fe6SAlexander Beregalov	depends on PPC_PMAC && PPC32 && BLOCK
1288c870933SBenjamin Herrenschmidt	help
1298c870933SBenjamin Herrenschmidt	  This option adds support for older PowerBook's hotswap media bay
1308c870933SBenjamin Herrenschmidt	  that can contains batteries, floppy drives, or IDE devices. PCI
1318c870933SBenjamin Herrenschmidt	  devices are not fully supported in the bay as I never had one to
1328c870933SBenjamin Herrenschmidt	  try with
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvaldsconfig PMAC_BACKLIGHT
1351da177e4SLinus Torvalds	bool "Backlight control for LCD screens"
136e01af038SMichael Hanselmann	depends on ADB_PMU && FB = y && (BROKEN || !PPC64)
137e01af038SMichael Hanselmann	select FB_BACKLIGHT
1381da177e4SLinus Torvalds	help
1395474c120SMichael Hanselmann	  Say Y here to enable Macintosh specific extensions of the generic
1405474c120SMichael Hanselmann	  backlight code. With this enabled, the brightness keys on older
1415474c120SMichael Hanselmann	  PowerBooks will be enabled so you can change the screen brightness.
1420211a9c8SFrederik Schwarzer	  Newer models should use a userspace daemon like pbbuttonsd.
1435474c120SMichael Hanselmann
1445474c120SMichael Hanselmannconfig PMAC_BACKLIGHT_LEGACY
1455474c120SMichael Hanselmann	bool "Provide legacy ioctl's on /dev/pmu for the backlight"
1465474c120SMichael Hanselmann	depends on PMAC_BACKLIGHT && (BROKEN || !PPC64)
1475474c120SMichael Hanselmann	help
1485474c120SMichael Hanselmann	  Say Y if you want to enable legacy ioctl's on /dev/pmu. This is for
1495474c120SMichael Hanselmann	  programs which use this old interface. New and updated programs
1505474c120SMichael Hanselmann	  should use the backlight classes in sysfs.
1511da177e4SLinus Torvalds
1521da177e4SLinus Torvaldsconfig ADB_MACIO
1531da177e4SLinus Torvalds	bool "Include MacIO (CHRP) ADB driver"
1541da177e4SLinus Torvalds	depends on ADB && PPC_CHRP && !PPC_PMAC64
1551da177e4SLinus Torvalds	help
1561da177e4SLinus Torvalds	  Say Y here to include direct support for the ADB controller in the
1571da177e4SLinus Torvalds	  Hydra chip used on PowerPC Macintoshes of the CHRP type.  (The Hydra
1581da177e4SLinus Torvalds	  also includes a MESH II SCSI controller, DBDMA controller, VIA chip,
1591da177e4SLinus Torvalds	  OpenPIC controller and two RS422/Geoports.)
1601da177e4SLinus Torvalds
1611da177e4SLinus Torvaldsconfig INPUT_ADBHID
1621da177e4SLinus Torvalds	bool "Support for ADB input devices (keyboard, mice, ...)"
1631da177e4SLinus Torvalds	depends on ADB && INPUT=y
1641da177e4SLinus Torvalds	help
1651da177e4SLinus Torvalds	  Say Y here if you want to have ADB (Apple Desktop Bus) HID devices
1661da177e4SLinus Torvalds	  such as keyboards, mice, joysticks, trackpads  or graphic tablets
1671da177e4SLinus Torvalds	  handled by the input layer.  If you say Y here, make sure to say Y to
1681da177e4SLinus Torvalds	  the corresponding drivers "Keyboard support" (CONFIG_INPUT_KEYBDEV),
1691da177e4SLinus Torvalds	  "Mouse Support" (CONFIG_INPUT_MOUSEDEV) and "Event interface
1701da177e4SLinus Torvalds	  support" (CONFIG_INPUT_EVDEV) as well.
1711da177e4SLinus Torvalds
1721da177e4SLinus Torvalds	  If unsure, say Y.
1731da177e4SLinus Torvalds
1741da177e4SLinus Torvaldsconfig MAC_EMUMOUSEBTN
175429722e1SDmitry Torokhov	tristate "Support for mouse button 2+3 emulation"
176429722e1SDmitry Torokhov	depends on SYSCTL && INPUT
1771da177e4SLinus Torvalds	help
1781da177e4SLinus Torvalds	  This provides generic support for emulating the 2nd and 3rd mouse
1791da177e4SLinus Torvalds	  button with keypresses.  If you say Y here, the emulation is still
1801da177e4SLinus Torvalds	  disabled by default.  The emulation is controlled by these sysctl
1811da177e4SLinus Torvalds	  entries:
1821da177e4SLinus Torvalds	  /proc/sys/dev/mac_hid/mouse_button_emulation
1831da177e4SLinus Torvalds	  /proc/sys/dev/mac_hid/mouse_button2_keycode
1841da177e4SLinus Torvalds	  /proc/sys/dev/mac_hid/mouse_button3_keycode
1851da177e4SLinus Torvalds
1861da177e4SLinus Torvalds	  If you have an Apple machine with a 1-button mouse, say Y here.
1871da177e4SLinus Torvalds
188429722e1SDmitry Torokhov	  To compile this driver as a module, choose M here: the
189429722e1SDmitry Torokhov	  module will be called mac_hid.
190429722e1SDmitry Torokhov
1911da177e4SLinus Torvaldsconfig THERM_WINDTUNNEL
1921da177e4SLinus Torvalds	tristate "Support for thermal management on Windtunnel G4s"
193a28d3af2SBenjamin Herrenschmidt	depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64
1941da177e4SLinus Torvalds	help
1951da177e4SLinus Torvalds	  This driver provides some thermostat and fan control for the desktop
1961da177e4SLinus Torvalds	  G4 "Windtunnel"
1971da177e4SLinus Torvalds
1981da177e4SLinus Torvaldsconfig THERM_ADT746X
1991da177e4SLinus Torvalds	tristate "Support for thermal mgmnt on laptops with ADT 746x chipset"
200a28d3af2SBenjamin Herrenschmidt	depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64
2011da177e4SLinus Torvalds	help
2021da177e4SLinus Torvalds	  This driver provides some thermostat and fan control for the
20309509603SMatt LaPlante          iBook G4, and the ATI based aluminium PowerBooks, allowing slightly
2041da177e4SLinus Torvalds	  better fan behaviour by default, and some manual control.
2051da177e4SLinus Torvalds
2061da177e4SLinus Torvaldsconfig THERM_PM72
2071da177e4SLinus Torvalds	tristate "Support for thermal management on PowerMac G5"
208a28d3af2SBenjamin Herrenschmidt	depends on I2C && I2C_POWERMAC && PPC_PMAC64
2091da177e4SLinus Torvalds	help
2101da177e4SLinus Torvalds	  This driver provides thermostat and fan control for the desktop
2111da177e4SLinus Torvalds	  G5 machines.
2121da177e4SLinus Torvalds
21375722d39SBenjamin Herrenschmidtconfig WINDFARM
21475722d39SBenjamin Herrenschmidt	tristate "New PowerMac thermal control infrastructure"
2156f36d17aSAl Viro	depends on PPC
21675722d39SBenjamin Herrenschmidt
21775722d39SBenjamin Herrenschmidtconfig WINDFARM_PM81
21875722d39SBenjamin Herrenschmidt	tristate "Support for thermal management on iMac G5"
21975722d39SBenjamin Herrenschmidt	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU
220a28d3af2SBenjamin Herrenschmidt	select I2C_POWERMAC
22175722d39SBenjamin Herrenschmidt	help
22275722d39SBenjamin Herrenschmidt	  This driver provides thermal control for the iMacG5
22375722d39SBenjamin Herrenschmidt
22475722d39SBenjamin Herrenschmidtconfig WINDFARM_PM91
22575722d39SBenjamin Herrenschmidt	tristate "Support for thermal management on PowerMac9,1"
22675722d39SBenjamin Herrenschmidt	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU
227a28d3af2SBenjamin Herrenschmidt	select I2C_POWERMAC
22875722d39SBenjamin Herrenschmidt	help
22975722d39SBenjamin Herrenschmidt	  This driver provides thermal control for the PowerMac9,1
23075722d39SBenjamin Herrenschmidt          which is the recent (SMU based) single CPU desktop G5
23175722d39SBenjamin Herrenschmidt
232ac171c46SBenjamin Herrenschmidtconfig WINDFARM_PM112
233ac171c46SBenjamin Herrenschmidt	tristate "Support for thermal management on PowerMac11,2"
234ac171c46SBenjamin Herrenschmidt	depends on WINDFARM && I2C && PMAC_SMU
235e5ea0a9fSLinus Torvalds	select I2C_POWERMAC
236ac171c46SBenjamin Herrenschmidt	help
237ac171c46SBenjamin Herrenschmidt	  This driver provides thermal control for the PowerMac11,2
238ac171c46SBenjamin Herrenschmidt	  which are the recent dual and quad G5 machines using the
239ac171c46SBenjamin Herrenschmidt	  970MP dual-core processor.
24075722d39SBenjamin Herrenschmidt
24180ff974dSÉtienne Bersacconfig WINDFARM_PM121
24280ff974dSÉtienne Bersac	tristate "Support for thermal management on PowerMac12,1"
24380ff974dSÉtienne Bersac	depends on WINDFARM && I2C && PMAC_SMU
24480ff974dSÉtienne Bersac	select I2C_POWERMAC
24580ff974dSÉtienne Bersac	help
24680ff974dSÉtienne Bersac	  This driver provides thermal control for the PowerMac12,1
24780ff974dSÉtienne Bersac	  which is the iMac G5 (iSight).
24880ff974dSÉtienne Bersac
2491da177e4SLinus Torvaldsconfig ANSLCD
2501da177e4SLinus Torvalds	tristate "Support for ANS LCD display"
2511da177e4SLinus Torvalds	depends on ADB_CUDA && PPC_PMAC
2521da177e4SLinus Torvalds
2533e00a5aeSBenjamin Herrenschmidtconfig PMAC_RACKMETER
2543e00a5aeSBenjamin Herrenschmidt	tristate "Support for Apple XServe front panel LEDs"
2553e00a5aeSBenjamin Herrenschmidt	depends on PPC_PMAC
2563e00a5aeSBenjamin Herrenschmidt	help
2573dde6ad8SDavid Sterba	  This driver provides some support to control the front panel
2583e00a5aeSBenjamin Herrenschmidt          blue LEDs "vu-meter" of the XServer macs.
2593e00a5aeSBenjamin Herrenschmidt
260bd5f47ecSJean Delvareconfig SENSORS_AMS
261bd5f47ecSJean Delvare	tristate "Apple Motion Sensor driver"
262bd5f47ecSJean Delvare	depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C) && EXPERIMENTAL
263bd5f47ecSJean Delvare	select INPUT_POLLDEV
264bd5f47ecSJean Delvare	help
265bd5f47ecSJean Delvare	  Support for the motion sensor included in PowerBooks. Includes
266bd5f47ecSJean Delvare	  implementations for PMU and I2C.
267bd5f47ecSJean Delvare
268bd5f47ecSJean Delvare	  This driver can also be built as a module. If so, the module
269bd5f47ecSJean Delvare	  will be called ams.
270bd5f47ecSJean Delvare
271bd5f47ecSJean Delvareconfig SENSORS_AMS_PMU
272bd5f47ecSJean Delvare	bool "PMU variant"
273bd5f47ecSJean Delvare	depends on SENSORS_AMS && ADB_PMU
274bd5f47ecSJean Delvare	default y
275bd5f47ecSJean Delvare	help
276bd5f47ecSJean Delvare	  PMU variant of motion sensor, found in late 2005 PowerBooks.
277bd5f47ecSJean Delvare
278bd5f47ecSJean Delvareconfig SENSORS_AMS_I2C
279bd5f47ecSJean Delvare	bool "I2C variant"
280bd5f47ecSJean Delvare	depends on SENSORS_AMS && I2C
281bd5f47ecSJean Delvare	default y
282bd5f47ecSJean Delvare	help
283bd5f47ecSJean Delvare	  I2C variant of motion sensor, found in early 2005 PowerBooks and
284bd5f47ecSJean Delvare	  iBooks.
285bd5f47ecSJean Delvare
2860f21712dSJan Engelhardtendif # MACINTOSH_DRIVERS
287