diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-07-22 03:37:48 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-24 16:24:32 -0400 |
commit | 2240598c24683df1e1a6cdd1f461efd85547903c (patch) | |
tree | 9e7d27a68d0bc3a88c7e1e86f2111c6b0fb9fce8 /drivers | |
parent | b8c1c5da1520977cb55a358f20fc09567d40cad9 (diff) |
[SPARC32]: Deal with rtc/sun_mostek_rtc conflict.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/Kconfig | 24 | ||||
-rw-r--r-- | drivers/char/Makefile | 3 | ||||
-rw-r--r-- | drivers/sbus/char/Kconfig | 1 |
3 files changed, 27 insertions, 1 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index c8dfd18bea44..acdbcdc3e457 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -726,7 +726,7 @@ config NVRAM | |||
726 | 726 | ||
727 | config RTC | 727 | config RTC |
728 | tristate "Enhanced Real Time Clock Support" | 728 | tristate "Enhanced Real Time Clock Support" |
729 | depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC64 && (!SPARC32 || PCI) && !FRV && !ARM && !SUPERH && !S390 | 729 | depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV && !ARM && !SUPERH && !S390 |
730 | ---help--- | 730 | ---help--- |
731 | If you say Y here and create a character special file /dev/rtc with | 731 | If you say Y here and create a character special file /dev/rtc with |
732 | major number 10 and minor number 135 using mknod ("man mknod"), you | 732 | major number 10 and minor number 135 using mknod ("man mknod"), you |
@@ -750,6 +750,28 @@ config RTC | |||
750 | To compile this driver as a module, choose M here: the | 750 | To compile this driver as a module, choose M here: the |
751 | module will be called rtc. | 751 | module will be called rtc. |
752 | 752 | ||
753 | config JS_RTC | ||
754 | tristate "Enhanced Real Time Clock Support" | ||
755 | depends on SPARC32 && PCI | ||
756 | ---help--- | ||
757 | If you say Y here and create a character special file /dev/rtc with | ||
758 | major number 10 and minor number 135 using mknod ("man mknod"), you | ||
759 | will get access to the real time clock (or hardware clock) built | ||
760 | into your computer. | ||
761 | |||
762 | Every PC has such a clock built in. It can be used to generate | ||
763 | signals from as low as 1Hz up to 8192Hz, and can also be used | ||
764 | as a 24 hour alarm. It reports status information via the file | ||
765 | /proc/driver/rtc and its behaviour is set by various ioctls on | ||
766 | /dev/rtc. | ||
767 | |||
768 | If you think you have a use for such a device (such as periodic data | ||
769 | sampling), then say Y here, and read <file:Documentation/rtc.txt> | ||
770 | for details. | ||
771 | |||
772 | To compile this driver as a module, choose M here: the | ||
773 | module will be called js-rtc. | ||
774 | |||
753 | config SGI_DS1286 | 775 | config SGI_DS1286 |
754 | tristate "SGI DS1286 RTC support" | 776 | tristate "SGI DS1286 RTC support" |
755 | depends on SGI_IP22 | 777 | depends on SGI_IP22 |
diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 8fecaf4010b1..23b26b87cc32 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile | |||
@@ -109,6 +109,9 @@ obj-$(CONFIG_TCG_TPM) += tpm/ | |||
109 | 109 | ||
110 | obj-$(CONFIG_PS3_FLASH) += ps3flash.o | 110 | obj-$(CONFIG_PS3_FLASH) += ps3flash.o |
111 | 111 | ||
112 | obj-$(CONFIG_JS_RTC) += js-rtc.o | ||
113 | js-rtc-y = rtc.o | ||
114 | |||
112 | # Files generated that shall be removed upon make clean | 115 | # Files generated that shall be removed upon make clean |
113 | clean-files := consolemap_deftbl.c defkeymap.c | 116 | clean-files := consolemap_deftbl.c defkeymap.c |
114 | 117 | ||
diff --git a/drivers/sbus/char/Kconfig b/drivers/sbus/char/Kconfig index 35a73168333f..400c65bfb8c7 100644 --- a/drivers/sbus/char/Kconfig +++ b/drivers/sbus/char/Kconfig | |||
@@ -15,6 +15,7 @@ config SUN_OPENPROMIO | |||
15 | 15 | ||
16 | config SUN_MOSTEK_RTC | 16 | config SUN_MOSTEK_RTC |
17 | tristate "Mostek real time clock support" | 17 | tristate "Mostek real time clock support" |
18 | depends on SPARC32 | ||
18 | help | 19 | help |
19 | The Mostek RTC chip is used on all known Sun computers except | 20 | The Mostek RTC chip is used on all known Sun computers except |
20 | some JavaStations. For a JavaStation you need to say Y both here | 21 | some JavaStations. For a JavaStation you need to say Y both here |