hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/macintosh/Kconfig
....@@ -1,9 +1,10 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12
23 menuconfig MACINTOSH_DRIVERS
34 bool "Macintosh device drivers"
45 depends on PPC || MAC || X86
56 default y if (PPC_PMAC || MAC)
6
- ---help---
7
+ help
78 Say Y here to get to see options for devices used with Macintosh
89 computers. This option alone does not add any kernel code.
910
....@@ -43,6 +44,7 @@
4344 config ADB_CUDA
4445 bool "Support for Cuda/Egret based Macs and PowerMacs"
4546 depends on (ADB || PPC_PMAC) && !PPC_PMAC64
47
+ select RTC_LIB
4648 help
4749 This provides support for Cuda/Egret based Macintosh and
4850 Power Macintosh systems. This includes most m68k based Macs,
....@@ -56,6 +58,7 @@
5658 config ADB_PMU
5759 bool "Support for PMU based PowerMacs and PowerBooks"
5860 depends on PPC_PMAC || MAC
61
+ select RTC_LIB
5962 help
6063 On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the
6164 PMU is an embedded microprocessor whose primary function is to
....@@ -65,6 +68,10 @@
6568 RAM and the RTC (real time clock) chip. Say Y to enable support for
6669 this device; you should do so if your machine is one of those
6770 mentioned above.
71
+
72
+config ADB_PMU_EVENT
73
+ def_bool y
74
+ depends on ADB_PMU && INPUT=y
6875
6976 config ADB_PMU_LED
7077 bool "Support for the Power/iBook front LED"
....@@ -79,6 +86,7 @@
7986
8087 config ADB_PMU_LED_DISK
8188 bool "Use front LED as DISK LED by default"
89
+ depends on ATA
8290 depends on ADB_PMU_LED
8391 depends on LEDS_CLASS
8492 select LEDS_TRIGGERS
....@@ -177,7 +185,7 @@
177185 depends on I2C && I2C_POWERMAC && PPC_PMAC && !PPC_PMAC64
178186 help
179187 This driver provides some thermostat and fan control for the
180
- iBook G4, and the ATI based aluminium PowerBooks, allowing slightly
188
+ iBook G4, and the ATI based aluminium PowerBooks, allowing slightly
181189 better fan behaviour by default, and some manual control.
182190
183191 config WINDFARM
....@@ -213,7 +221,7 @@
213221 select I2C_POWERMAC
214222 help
215223 This driver provides thermal control for the PowerMac9,1
216
- which is the recent (SMU based) single CPU desktop G5
224
+ which is the recent (SMU based) single CPU desktop G5
217225
218226 config WINDFARM_PM112
219227 tristate "Support for thermal management on PowerMac11,2"
....@@ -241,12 +249,11 @@
241249 depends on PPC_PMAC
242250 help
243251 This driver provides some support to control the front panel
244
- blue LEDs "vu-meter" of the XServer macs.
252
+ blue LEDs "vu-meter" of the XServer macs.
245253
246254 config SENSORS_AMS
247255 tristate "Apple Motion Sensor driver"
248256 depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C)
249
- select INPUT_POLLDEV
250257 help
251258 Support for the motion sensor included in PowerBooks. Includes
252259 implementations for PMU and I2C.