mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
CRIS: Move common Kconfig variable ETRAX_RTC to arch independet Kconfig.
This commit is contained in:
parent
5062969d77
commit
c3d6ddddb0
@ -259,6 +259,18 @@ menu "Drivers for built-in interfaces"
|
|||||||
source arch/cris/arch-v10/drivers/Kconfig
|
source arch/cris/arch-v10/drivers/Kconfig
|
||||||
source arch/cris/arch-v32/drivers/Kconfig
|
source arch/cris/arch-v32/drivers/Kconfig
|
||||||
|
|
||||||
|
config ETRAX_RTC
|
||||||
|
bool "Real Time Clock support"
|
||||||
|
depends on ETRAX_I2C
|
||||||
|
help
|
||||||
|
Enables drivers for the Real-Time Clock battery-backed chips on
|
||||||
|
some products. The kernel reads the time when booting, and
|
||||||
|
the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a
|
||||||
|
rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc
|
||||||
|
device. You can check the time with cat /proc/rtc, but
|
||||||
|
normal time reading should be done using libc function time and
|
||||||
|
friends.
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "RTC chip"
|
prompt "RTC chip"
|
||||||
depends on ETRAX_RTC
|
depends on ETRAX_RTC
|
||||||
|
@ -596,18 +596,6 @@ config ETRAX_PB_CHANGEABLE_BITS
|
|||||||
Bit set = changeable.
|
Bit set = changeable.
|
||||||
You probably want 00 here.
|
You probably want 00 here.
|
||||||
|
|
||||||
config ETRAX_RTC
|
|
||||||
bool "Real Time Clock support"
|
|
||||||
depends on ETRAX_ARCH_V10
|
|
||||||
help
|
|
||||||
Enables drivers for the Real-Time Clock battery-backed chips on
|
|
||||||
some products. The kernel reads the time when booting, and
|
|
||||||
the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a
|
|
||||||
rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc
|
|
||||||
device, major 121. You can check the time with cat /proc/rtc, but
|
|
||||||
normal time reading should be done using libc function time and
|
|
||||||
friends.
|
|
||||||
|
|
||||||
config ETRAX_DS1302_RST_ON_GENERIC_PORT
|
config ETRAX_DS1302_RST_ON_GENERIC_PORT
|
||||||
bool "DS1302 RST on Generic Port"
|
bool "DS1302 RST on Generic Port"
|
||||||
depends on ETRAX_DS1302
|
depends on ETRAX_DS1302
|
||||||
|
@ -497,12 +497,6 @@ config ETRAX_V32_I2C_CLK_PORT
|
|||||||
help
|
help
|
||||||
The pin to use for I2C clock.
|
The pin to use for I2C clock.
|
||||||
|
|
||||||
config ETRAX_RTC
|
|
||||||
bool "Real Time Clock support"
|
|
||||||
depends on ETRAX_ARCH_V32 && ETRAX_I2C
|
|
||||||
help
|
|
||||||
Enabled RTC support.
|
|
||||||
|
|
||||||
config ETRAX_GPIO
|
config ETRAX_GPIO
|
||||||
bool "GPIO support"
|
bool "GPIO support"
|
||||||
depends on ETRAX_ARCH_V32
|
depends on ETRAX_ARCH_V32
|
||||||
|
Loading…
Reference in New Issue
Block a user