Skip to content

Commit

Permalink
[POWERPC] todc: add support for Time-Of-Day-Clock
Browse files Browse the repository at this point in the history
This is a resubmit with a proper subject and with all comments addressed.
Applies cleanly to powerpc.git 649e857

Mark
--

The todc code from arch/ppc supports many todc/rtc chips and is needed
in arch/powerpc.  This patch adds the todc code to arch/powerpc.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
--

 arch/powerpc/Kconfig         |    7
 arch/powerpc/sysdev/Makefile |    1
 arch/powerpc/sysdev/todc.c   |  392 ++++++++++++++++++++++++++++++++++
 include/asm-powerpc/todc.h   |  487 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 887 insertions(+)
--
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Mark A. Greer authored and Paul Mackerras committed Jun 29, 2006
1 parent 16e9f99 commit c220153
Show file tree
Hide file tree
Showing 4 changed files with 887 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,13 @@ config TAU_AVERAGE
/proc/cpuinfo.

If in doubt, say N here.

config PPC_TODC
depends on EMBEDDED6xx
bool "Generic Time-of-day Clock (TODC) support"
---help---
This adds support for many TODC/RTC chips.

endmenu

source arch/powerpc/platforms/embedded6xx/Kconfig
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/sysdev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ obj-$(CONFIG_U3_DART) += dart_iommu.o
obj-$(CONFIG_MMIO_NVRAM) += mmio_nvram.o
obj-$(CONFIG_PPC_83xx) += ipic.o
obj-$(CONFIG_FSL_SOC) += fsl_soc.o
obj-$(CONFIG_PPC_TODC) += todc.o
obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o
Loading

0 comments on commit c220153

Please sign in to comment.