Commit 8d50bc14 authored by Andrzej Zaborowski's avatar Andrzej Zaborowski Committed by Tony Lindgren

Remove old OMAP RTC character-class driver

The driver comes from 2.4 when no RTC class existed.  Currently we have
drivers/rtc/rtc-omap.c which should be preferred.  Please also update
userspace and defconfig if the old driver was being used.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b141a8a8
......@@ -26,7 +26,7 @@
/*-------------------------------------------------------------------------*/
#if defined(CONFIG_OMAP_RTC) || defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE)
#if defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE)
#define OMAP_RTC_BASE 0xfffb4800
......
......@@ -841,11 +841,6 @@ config GEN_RTC_X
config EFI_RTC
bool "EFI Real Time Clock Services"
depends on IA64
config OMAP_RTC
bool "TI OMAP Real Time Clock"
depends on !RTC_DRV_OMAP && (ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730)
help
Support for TI OMAP RTC
config DS1302
tristate "DS1302 RTC support"
......
......@@ -72,7 +72,6 @@ obj-$(CONFIG_GEN_RTC) += genrtc.o
obj-$(CONFIG_EFI_RTC) += efirtc.o
obj-$(CONFIG_SGI_DS1286) += ds1286.o
obj-$(CONFIG_SGI_IP27_RTC) += ip27-rtc.o
obj-$(CONFIG_OMAP_RTC) += omap-rtc.o
obj-$(CONFIG_DS1302) += ds1302.o
ifeq ($(CONFIG_GENERIC_NVRAM),y)
obj-$(CONFIG_NVRAM) += generic_nvram.o
......
This diff is collapsed.
/*
* TI OMAP Real Time Clock header file
*
* Copyright (C) 2003 TI
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
*/
#define OMAP_RTC_BASE 0xfffb4800
#define OMAP_RTC_SIZE 128
#define OMAP_RTC_VIRT_BASE IO_ADDRESS(OMAP_RTC_BASE)
/*
* Real-Time Clock
*/
#define OMAP_RTC_SECONDS_REG (OMAP_RTC_BASE + 0x00)
#define OMAP_RTC_MINUTES_REG (OMAP_RTC_BASE + 0x04)
#define OMAP_RTC_HOURS_REG (OMAP_RTC_BASE + 0x08)
#define OMAP_RTC_DAYS_REG (OMAP_RTC_BASE + 0x0C)
#define OMAP_RTC_MONTHS_REG (OMAP_RTC_BASE + 0x10)
#define OMAP_RTC_YEARS_REG (OMAP_RTC_BASE + 0x14)
#define OMAP_RTC_WEEKS_REG (OMAP_RTC_BASE + 0x18)
#define OMAP_RTC_ALARM_SECONDS_REG (OMAP_RTC_BASE + 0x20)
#define OMAP_RTC_ALARM_MINUTES_REG (OMAP_RTC_BASE + 0x24)
#define OMAP_RTC_ALARM_HOURS_REG (OMAP_RTC_BASE + 0x28)
#define OMAP_RTC_ALARM_DAYS_REG (OMAP_RTC_BASE + 0x2c)
#define OMAP_RTC_ALARM_MONTHS_REG (OMAP_RTC_BASE + 0x30)
#define OMAP_RTC_ALARM_YEARS_REG (OMAP_RTC_BASE + 0x34)
#define OMAP_RTC_CTRL_REG (OMAP_RTC_BASE + 0x40)
#define OMAP_RTC_STATUS_REG (OMAP_RTC_BASE + 0x44)
#define OMAP_RTC_INTERRUPTS_REG (OMAP_RTC_BASE + 0x48)
#define OMAP_RTC_COMP_LSB_REG (OMAP_RTC_BASE + 0x4c)
#define OMAP_RTC_COMP_MSB_REG (OMAP_RTC_BASE + 0x50)
/* RTC Control Register bit fields: */
#define OMAP_RTC_CTRL_STOP (1<<0)
/* RTC Status Register bit fields: */
#define OMAP_RTC_STATUS_POWER_UP (1<<7)
#define OMAP_RTC_STATUS_ALARM (1<<6)
#define OMAP_RTC_STATUS_1D_EVENT (1<<5)
#define OMAP_RTC_STATUS_1H_EVENT (1<<4)
#define OMAP_RTC_STATUS_1M_EVENT (1<<3)
#define OMAP_RTC_STATUS_1S_EVENT (1<<2)
#define OMAP_RTC_STATUS_RUN (1<<1)
#define OMAP_RTC_STATUS_BUSY (1<<0)
/* RTC Interrupt Register bit fields: */
#define OMAP_RTC_INTERRUPTS_IT_ALARM (1<<3)
#define OMAP_RTC_INTERRUPTS_IT_TIMER (1<<2)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment