rtc: Clean drivers/rtc/Makefile

Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
Michal Simek 2008-07-14 19:45:37 +02:00 committed by Wolfgang Denk
parent a4a549b4b5
commit 871c18dd30
26 changed files with 49 additions and 55 deletions

View file

@ -27,35 +27,35 @@ include $(TOPDIR)/config.mk
LIB = $(obj)librtc.a
COBJS-y += bfin_rtc.o
COBJS-$(CONFIG_RTC_BFIN) += bfin_rtc.o
COBJS-y += date.o
COBJS-y += ds12887.o
COBJS-y += ds1302.o
COBJS-y += ds1306.o
COBJS-y += ds1307.o
COBJS-y += ds1337.o
COBJS-y += ds1374.o
COBJS-y += ds1556.o
COBJS-y += ds164x.o
COBJS-y += ds174x.o
COBJS-y += ds3231.o
COBJS-$(CONFIG_RTC_DS12887) += ds12887.o
COBJS-$(CONFIG_RTC_DS1302) += ds1302.o
COBJS-$(CONFIG_RTC_DS1306) += ds1306.o
COBJS-$(CONFIG_RTC_DS1307 || CONFIG_RTC_DS1338) += ds1307.o
COBJS-$(CONFIG_RTC_DS1337) += ds1337.o
COBJS-$(CONFIG_RTC_DS1374) += ds1374.o
COBJS-$(CONFIG_RTC_DS1556) += ds1556.o
COBJS-$(CONFIG_RTC_DS164x) += ds164x.o
COBJS-$(CONFIG_RTC_DS174x) += ds174x.o
COBJS-$(CONFIG_RTC_DS3231) += ds3231.o
COBJS-$(CONFIG_RTC_ISL1208) += isl1208.o
COBJS-y += m41t11.o
COBJS-y += m41t60.o
COBJS-$(CONFIG_RTC_M41T11) += m41t11.o
COBJS-$(CONFIG_RTC_M41T60) += m41t60.o
COBJS-$(CONFIG_RTC_M41T62) += m41t62.o
COBJS-y += m48t35ax.o
COBJS-y += max6900.o
COBJS-$(CONFIG_RTC_M48T35A) += m48t35ax.o
COBJS-$(CONFIG_RTC_MAX6900) += max6900.o
COBJS-$(CONFIG_RTC_MC13783) += mc13783-rtc.o
COBJS-y += mc146818.o
COBJS-y += mcfrtc.o
COBJS-y += mk48t59.o
COBJS-y += mpc5xxx.o
COBJS-y += mpc8xx.o
COBJS-y += pcf8563.o
COBJS-y += rs5c372.o
COBJS-y += rx8025.o
COBJS-y += s3c24x0_rtc.o
COBJS-y += x1205.o
COBJS-$(CONFIG_RTC_MC146818) += mc146818.o
COBJS-$(CONFIG_MCFRTC) += mcfrtc.o
COBJS-$(CONFIG_RTC_MK48T59) += mk48t59.o
COBJS-$(CONFIG_RTC_MPC5200) += mpc5xxx.o
COBJS-$(CONFIG_RTC_MPC8xx) += mpc8xx.o
COBJS-$(CONFIG_RTC_PCF8563) += pcf8563.o
COBJS-$(CONFIG_RTC_RS5C372A) += rs5c372.o
COBJS-$(CONFIG_RTC_RX8025) += rx8025.o
COBJS-$(CONFIG_RTC_S3C24X0) += s3c24x0_rtc.o
COBJS-$(CONFIG_RTC_X1205) += x1205.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)

View file

@ -11,7 +11,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_BFIN) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#include <asm/blackfin.h>
#include <asm/mach-common/bits/rtc.h>

View file

@ -28,7 +28,7 @@
#include <config.h>
#include <rtc.h>
#if defined(CONFIG_RTC_DS12887) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#define RTC_SECONDS 0x00
#define RTC_SECONDS_ALARM 0x01

View file

@ -9,7 +9,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_DS1302) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/* GPP Pins */
#define DATA 0x200

View file

@ -36,7 +36,7 @@
#include <rtc.h>
#include <spi.h>
#if defined(CONFIG_RTC_DS1306) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#define RTC_SECONDS 0x00
#define RTC_MINUTES 0x01

View file

@ -35,8 +35,7 @@
#include <rtc.h>
#include <i2c.h>
#if (defined(CONFIG_RTC_DS1307) || defined(CONFIG_RTC_DS1338) ) && \
defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*---------------------------------------------------------------------*/
#undef DEBUG_RTC

View file

@ -32,7 +32,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_DS1337) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*---------------------------------------------------------------------*/
#undef DEBUG_RTC

View file

@ -35,7 +35,7 @@
#include <rtc.h>
#include <i2c.h>
#if (defined(CONFIG_RTC_DS1374)) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*---------------------------------------------------------------------*/
#undef DEBUG_RTC

View file

@ -36,8 +36,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_DS1556) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read( unsigned int addr );
static void rtc_write( unsigned int addr, uchar val);

View file

@ -37,7 +37,7 @@
#include <rtc.h>
#if defined(CONFIG_RTC_DS164x) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read(unsigned int addr );
static void rtc_write(unsigned int addr, uchar val);

View file

@ -33,7 +33,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_DS174x) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read( unsigned int addr );
static void rtc_write( unsigned int addr, uchar val);

View file

@ -33,7 +33,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_DS3231) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*---------------------------------------------------------------------*/
#undef DEBUG_RTC

View file

@ -43,7 +43,7 @@
#endif
*/
#if defined(CONFIG_RTC_M41T11) && defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
#if defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
static unsigned bcd2bin (uchar n)
{

View file

@ -34,8 +34,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_M41T60) && defined(CFG_I2C_RTC_ADDR) && \
defined(CONFIG_CMD_DATE)
#if defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
static unsigned bcd2bin(uchar n)
{

View file

@ -33,7 +33,7 @@
#include <rtc.h>
#include <config.h>
#if defined(CONFIG_RTC_M48T35A) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read (uchar reg);
static void rtc_write (uchar reg, uchar val);

View file

@ -32,7 +32,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_MAX6900) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#ifndef CFG_I2C_RTC_ADDR
#define CFG_I2C_RTC_ADDR 0x50

View file

@ -31,7 +31,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_MC146818) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read (uchar reg);
static void rtc_write (uchar reg, uchar val);

View file

@ -23,7 +23,7 @@
#include <common.h>
#if defined(CONFIG_MCFRTC) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#include <command.h>
#include <rtc.h>

View file

@ -33,8 +33,6 @@
#include <rtc.h>
#include <mk48t59.h>
#if defined(CONFIG_RTC_MK48T59)
#if defined(CONFIG_BAB7xx)
static uchar rtc_read (short reg)
@ -236,4 +234,3 @@ void rtc_set_watchdog(short multi, short res)
}
#endif
#endif /* CONFIG_RTC_MK48T59 */

View file

@ -32,7 +32,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_MPC5200) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*****************************************************************************
* this structure should be defined in mpc5200.h ...

View file

@ -31,7 +31,7 @@
#include <command.h>
#include <rtc.h>
#if defined(CONFIG_RTC_MPC8xx) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/* ------------------------------------------------------------------------- */

View file

@ -32,7 +32,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_PCF8563) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static uchar rtc_read (uchar reg);
static void rtc_write (uchar reg, uchar val);

View file

@ -34,7 +34,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_RS5C372A) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*
* Reads are always done starting with register 15, which requires some
* jumping-through-hoops to access the data correctly.

View file

@ -30,7 +30,7 @@
#include <rtc.h>
#include <i2c.h>
#if defined(CONFIG_RTC_RX8025) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
/*---------------------------------------------------------------------*/
#undef DEBUG_RTC

View file

@ -28,7 +28,7 @@
#include <common.h>
#include <command.h>
#if defined(CONFIG_RTC_S3C24X0) && (defined(CONFIG_CMD_DATE))
#if (defined(CONFIG_CMD_DATE))
#if defined(CONFIG_S3C2400)
#include <s3c2400.h>

View file

@ -40,7 +40,7 @@
#include <i2c.h>
#include <bcd.h>
#if defined(CONFIG_RTC_X1205) && defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
#define CCR_SEC 0
#define CCR_MIN 1