xref: /openbmc/linux/drivers/macintosh/Kconfig (revision 787255e6)
1# SPDX-License-Identifier: GPL-2.0-only
2
3menuconfig MACINTOSH_DRIVERS
4	bool "Macintosh device drivers"
5	depends on PPC || MAC || X86
6	default y if (PPC_PMAC || MAC)
7	help
8	  Say Y here to get to see options for devices used with Macintosh
9	  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_DRIVERS
14
15config ADB
16	bool "Apple Desktop Bus (ADB) support"
17	depends on MAC || (PPC_PMAC && PPC32)
18	help
19	  Apple Desktop Bus (ADB) support is for support of devices which
20	  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 or
22	  PowerBook, or a "Blue and White G3", you probably want to say Y
23	  here.  Otherwise say N.
24
25config ADB_MACII
26	bool "Include Mac II ADB driver"
27	depends on ADB && MAC
28	help
29	  Say Y here if want your kernel to support Macintosh systems that use
30	  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 and
32	  Centris 650.
33
34config ADB_IOP
35	bool "Include IOP (IIfx/Quadra 9x0) ADB driver"
36	depends on ADB && MAC
37	help
38	  The I/O Processor (IOP) is an Apple custom IC designed to provide
39	  intelligent support for I/O controllers.  It is described at
40	  <http://www.angelfire.com/ca2/dev68k/iopdesc.html> to enable direct
41	  support for it, say 'Y' here.
42
43# we want to change this to something like CONFIG_SYSCTRL_CUDA/PMU
44config ADB_CUDA
45	bool "Support for Cuda/Egret based Macs and PowerMacs"
46	depends on (ADB || PPC_PMAC) && !PPC_PMAC64
47	help
48	  This provides support for Cuda/Egret based Macintosh and
49	  Power Macintosh systems. This includes most m68k based Macs,
50	  most Old World PowerMacs, the first generation iMacs, the
51	  Blue & White G3 and the "Yikes" G4 (PCI Graphics). All later
52	  models should use CONFIG_ADB_PMU instead. It is safe to say Y
53	  here even if your machine doesn't have a Cuda or Egret device.
54
55	  If unsure say Y.
56
57config ADB_PMU
58	bool "Support for PMU based PowerMacs and PowerBooks"
59	depends on PPC_PMAC || MAC
60	help
61	  On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the
62	  PMU is an embedded microprocessor whose primary function is to
63	  control system power, and battery charging on the portable models.
64	  The PMU also controls the ADB (Apple Desktop Bus) which connects to
65	  the keyboard and mouse on some machines, as well as the non-volatile
66	  RAM and the RTC (real time clock) chip.  Say Y to enable support for
67	  this device; you should do so if your machine is one of those
68	  mentioned above.
69
70config ADB_PMU_EVENT
71	def_bool y
72	depends on ADB_PMU && INPUT=y
73
74config ADB_PMU_LED
75	bool "Support for the Power/iBook front LED"
76	depends on PPC_PMAC && ADB_PMU
77	select NEW_LEDS
78	select LEDS_CLASS
79	help
80	  Support the front LED on Power/iBooks as a generic LED that can
81	  be triggered by any of the supported triggers. To get the
82	  behaviour of the old CONFIG_BLK_DEV_IDE_PMAC_BLINK, select this
83	  and the disk LED trigger and configure appropriately through sysfs.
84
85config ADB_PMU_LED_DISK
86	bool "Use front LED as DISK LED by default"
87	depends on ADB_PMU_LED
88	depends on LEDS_CLASS
89	select LEDS_TRIGGERS
90	select LEDS_TRIGGER_DISK
91	help
92	  This option makes the front LED default to the disk trigger
93	  so that it blinks on disk activity.
94
95config PMAC_SMU
96	bool "Support for SMU  based PowerMacs"
97	depends on PPC_PMAC64
98	help
99	  This option adds support for the newer G5 iMacs and PowerMacs based
100	  on the "SMU" system control chip which replaces the old PMU.
101	  If you don't know, say Y.
102
103config PMAC_APM_EMU
104	tristate "APM emulation"
105	select APM_EMULATION
106	depends on ADB_PMU && PM && PPC32
107
108config PMAC_MEDIABAY
109	bool "Support PowerBook hotswap media bay"
110	depends on PPC_PMAC && PPC32 && BLOCK
111	help
112	  This option adds support for older PowerBook's hotswap media bay
113	  that can contains batteries, floppy drives, or IDE devices. PCI
114	  devices are not fully supported in the bay as I never had one to
115	  try with
116
117config PMAC_BACKLIGHT
118	bool "Backlight control for LCD screens"
119	depends on PPC_PMAC && ADB_PMU && FB = y && (BROKEN || !PPC64)
120	select FB_BACKLIGHT
121	help
122	  Say Y here to enable Macintosh specific extensions of the generic
123	  backlight code. With this enabled, the brightness keys on older
124	  PowerBooks will be enabled so you can change the screen brightness.
125	  Newer models should use a userspace daemon like pbbuttonsd.
126
127config PMAC_BACKLIGHT_LEGACY
128	bool "Provide legacy ioctl's on /dev/pmu for the backlight"
129	depends on PMAC_BACKLIGHT && (BROKEN || !PPC64)
130	help
131	  Say Y if you want to enable legacy ioctl's on /dev/pmu. This is for
132	  programs which use this old interface. New and updated programs
133	  should use the backlight classes in sysfs.
134
135config ADB_MACIO
136	bool "Include MacIO (CHRP) ADB driver"
137	depends on ADB && PPC_CHRP && !PPC_PMAC64
138	help
139	  Say Y here to include direct support for the ADB controller in the
140	  Hydra chip used on PowerPC Macintoshes of the CHRP type.  (The Hydra
141	  also includes a MESH II SCSI controller, DBDMA controller, VIA chip,
142	  OpenPIC controller and two RS422/Geoports.)
143
144config INPUT_ADBHID
145	bool "Support for ADB input devices (keyboard, mice, ...)"
146	depends on ADB && INPUT=y
147	help
148	  Say Y here if you want to have ADB (Apple Desktop Bus) HID devices
149	  such as keyboards, mice, joysticks, trackpads  or graphic tablets
150	  handled by the input layer.  If you say Y here, make sure to say Y to
151	  the corresponding drivers "Mouse Support" (CONFIG_INPUT_MOUSEDEV) and
152	  "Event interface support" (CONFIG_INPUT_EVDEV) as well.
153
154	  If unsure, say Y.
155
156config MAC_EMUMOUSEBTN
157	tristate "Support for mouse button 2+3 emulation"
158	depends on SYSCTL && INPUT
159	help
160	  This provides generic support for emulating the 2nd and 3rd mouse
161	  button with keypresses.  If you say Y here, the emulation is still
162	  disabled by default.  The emulation is controlled by these sysctl
163	  entries:
164	  /proc/sys/dev/mac_hid/mouse_button_emulation
165	  /proc/sys/dev/mac_hid/mouse_button2_keycode
166	  /proc/sys/dev/mac_hid/mouse_button3_keycode
167
168	  If you have an Apple machine with a 1-button mouse, say Y here.
169
170	  To compile this driver as a module, choose M here: the
171	  module will be called mac_hid.
172
173config THERM_WINDTUNNEL
174	tristate "Support for thermal management on Windtunnel G4s"
175	depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64
176	help
177	  This driver provides some thermostat and fan control for the desktop
178	  G4 "Windtunnel"
179
180config THERM_ADT746X
181	tristate "Support for thermal mgmnt on laptops with ADT 746x chipset"
182	depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64
183	help
184	  This driver provides some thermostat and fan control for the
185	  iBook G4, and the ATI based aluminium PowerBooks, allowing slightly
186	  better fan behaviour by default, and some manual control.
187
188config WINDFARM
189	tristate "New PowerMac thermal control infrastructure"
190	depends on PPC
191
192config WINDFARM_PM81
193	tristate "Support for thermal management on iMac G5"
194	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU
195	select I2C_POWERMAC
196	help
197	  This driver provides thermal control for the iMacG5
198
199config WINDFARM_PM72
200	tristate "Support for thermal management on PowerMac G5 (AGP)"
201	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && ADB_PMU
202	select I2C_POWERMAC
203	help
204	  This driver provides thermal control for the PowerMac G5
205	  "AGP" variants (PowerMac 7,2 and 7,3)
206
207config WINDFARM_RM31
208	tristate "Support for thermal management on Xserve G5"
209	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && ADB_PMU
210	select I2C_POWERMAC
211	help
212	  This driver provides thermal control for the Xserve G5
213	  (RackMac3,1)
214
215config WINDFARM_PM91
216	tristate "Support for thermal management on PowerMac9,1"
217	depends on WINDFARM && I2C && CPU_FREQ_PMAC64 && PMAC_SMU
218	select I2C_POWERMAC
219	help
220	  This driver provides thermal control for the PowerMac9,1
221	  which is the recent (SMU based) single CPU desktop G5
222
223config WINDFARM_PM112
224	tristate "Support for thermal management on PowerMac11,2"
225	depends on WINDFARM && I2C && PMAC_SMU
226	select I2C_POWERMAC
227	help
228	  This driver provides thermal control for the PowerMac11,2
229	  which are the recent dual and quad G5 machines using the
230	  970MP dual-core processor.
231
232config WINDFARM_PM121
233	tristate "Support for thermal management on PowerMac12,1"
234	depends on WINDFARM && I2C && PMAC_SMU
235	select I2C_POWERMAC
236	help
237	  This driver provides thermal control for the PowerMac12,1
238	  which is the iMac G5 (iSight).
239
240config ANSLCD
241	tristate "Support for ANS LCD display"
242	depends on ADB_CUDA && PPC_PMAC
243
244config PMAC_RACKMETER
245	tristate "Support for Apple XServe front panel LEDs"
246	depends on PPC_PMAC
247	help
248	  This driver provides some support to control the front panel
249	  blue LEDs "vu-meter" of the XServer macs.
250
251config SENSORS_AMS
252	tristate "Apple Motion Sensor driver"
253	depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C)
254	help
255	  Support for the motion sensor included in PowerBooks. Includes
256	  implementations for PMU and I2C.
257
258	  This driver can also be built as a module. If so, the module
259	  will be called ams.
260
261config SENSORS_AMS_PMU
262	bool "PMU variant"
263	depends on SENSORS_AMS && ADB_PMU
264	default y
265	help
266	  PMU variant of motion sensor, found in late 2005 PowerBooks.
267
268config SENSORS_AMS_I2C
269	bool "I2C variant"
270	depends on SENSORS_AMS && I2C
271	default y
272	help
273	  I2C variant of motion sensor, found in early 2005 PowerBooks and
274	  iBooks.
275
276endif # MACINTOSH_DRIVERS
277